Skip to main content
POST
Create + send an invoice

Authorizations

Authorization
string
header
required

OAuth 2.1 authorization code + PKCE (S256). Tokens are tenant-bound (company_id) and scoped. Discover endpoints via /.well-known/oauth-authorization-server.

Scopes

invoices:write

Create, send, and void invoices

Headers

Idempotency-Key
string

Client-chosen key; replaying the same key + body returns the original response, a different body returns 409.

Body

application/json

Invoice payload; validated + normalized server-side. Set invoiceType: 'payment_link' to create a shareable checkout link instead: no customer fields, no email. Share the returned url/hostedInvoiceUrl. Customer fields must be omitted, and paymentLinkUsage ('single_use' or 'reusable', default 'single_use') controls whether the first payer claims the link or it can collect any number of payments. (mirrors the v1 create body). Permissive.

Response

The created invoice plus its hosted/payable URL.

data
object
required

An invoice in the public shape. Permissive.

url
string

Hosted/payable URL for the created invoice.