Invoxaco API

Generate invoices, contracts and 130+ business documents programmatically. Available on the Gold plan.


Authentication

Create an API key in Settings → API Access, then send it as a Bearer token on every request:

Authorization: Bearer invx_live_xxxxxxxxxxxxxxxx

Keys are shown once at creation and stored only as a hash. Keep them secret; revoke a leaked key immediately.

Base URL

https://invoxaco.com/api/v1

Endpoints

MethodPathDescription
GET/meYour account, plan and remaining document quota.
GET/templatesList all available generators (slugs).
GET/templates/{slug}Get a generator's field schema.
POST/documentsCreate a document from a template and data.
GET/documents/{id}Retrieve a document you created.
GET/documents/{id}/pdfDownload the document as a PDF.

Example: create an invoice

curl -X POST https://invoxaco.com/api/v1/documents \
  -H "Authorization: Bearer invx_live_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "invoice-generator",
    "title": "Invoice INV-1001",
    "status": "final",
    "data": {
      "invoice_number": "INV-1001",
      "invoice_date": "2026-07-08",
      "currency": "USD",
      "from_name": { "full_name": "Acme Ltd" },
      "to_name": { "full_name": "Client Co" },
      "items": [
        { "description": "Consulting", "qty": 10, "price": 120 }
      ],
      "tax_rate": 8.5
    }
  }'

Response:

{ "id": 42, "template": "invoice-generator", "status": "created",
  "pdf_url": "https://invoxaco.com/api/v1/documents/42/pdf" }

Then download the PDF:

curl -H "Authorization: Bearer invx_live_xxxx" \
  https://invoxaco.com/api/v1/documents/42/pdf -o invoice.pdf

Errors & limits

Use GET /api/v1/templates/{slug} to discover the exact field names for each generator before creating a document.