The Invoicora invoice API

Post JSON, get back a numbered document, a PDF and a link you can send. The free generator at invoicora.com still needs no account and uploads nothing; this is the optional, account based side.

Every money value is an integer in minor units. 1250 means 12.50, never 12.5. Nothing can be silently rounded, because there is nowhere to put a decimal.

What it does

  • POST /render turns a document into a PDF and stores nothing at all
  • POST /documents creates a numbered, saved document with a hosted link
  • POST /calculate returns the subtotal, tax bands and total, for a live preview inside your own form
  • Webhooks tell your system when a document is sent, viewed, paid or overdue
  • Recurring schedules create and email the same invoice every month, in your own timezone

Where to start

Entry points
Base URL
https://app.invoicora.com/api/v1
Authentication
Authorization: Bearer ik_test_YOUR_KEY
OpenAPI 3.1 description
https://app.invoicora.com/api/v1/openapi.json
First request
curl https://app.invoicora.com/api/v1/documents -H "Authorization: Bearer ik_test_YOUR_KEY"

Make a key in the dashboard under API keys. A key beginning ik_test_ never sends real email.

The full specification, for a code generator or an agent: openapi.json

The parts people get wrong, handled

A create takes an Idempotency-Key, so a request that timed out after succeeding does not become a second invoice with a second number. A number comes from a series under a row lock, so two requests at the same moment never collide. Every error has one shape, with a fields object naming each problem by its path, so one handler covers all of them.

The same document, wherever it is made

A PDF from the API is byte for byte the PDF the browser builds from the same input: the same engine, the same templates, the same ten designs, the same bilingual Arabic layout. There is no second renderer to drift.

Testing without invoicing anyone

A key beginning ik_test_ marks everything it creates as a test and never sends real email. Build the integration against it, then swap the key.