Create an invoice
Creates an ad-hoc invoice for a customer. Callers can supply line items, a billing period, purchase order number, and an initial status (draft or issued). Requesting issued releases the invoice for issuance, which completes asynchronously — the response returns the invoice in processing and it settles to issued shortly after, observable via the get-invoice endpoint. Alternatively, pass tax_calculation_id to turn a persisted tax calculation into an invoice: its line items, tax, and buyer are pinned and the invoice is issued synchronously; add a payment and status: paid to record settlement and mark it paid in the same call.
Authorizations
API key authentication. Pass your API key as a Bearer token.
Headers
2026-04-01 A unique string used to ensure the request is processed exactly once. If you retry a request with the same idempotency key within 24 hours, the original response is returned without re-executing the operation.
255"ik_a1b2c3d4e5f6"
Body
End of the billing period
Start of the billing period
ISO 4217 currency code; required unless tax_calculation_id is set
"USD"
Existing customer to bill. On the tax_calculation_id path, leave empty to mint a guest customer from the calculation's buyer.
Invoice description or memo
Date to issue the invoice
Line items to include on the invoice
Record the customer's already-settled payment and mark the invoice paid in the same call; requires tax_calculation_id
Purchase order number
Initial invoice status. Defaults to draft. Setting issued releases the invoice for issuance, which completes asynchronously: the response returns the invoice in processing, and it settles to issued shortly after — poll the get-invoice endpoint to observe the final status. paid is only valid on the tax_calculation_id path and must be sent together with a payment.
draft, issued, paid Id of a persisted tax calculation; its stored line items, tax amounts, and buyer become the invoice, which is issued synchronously with no recalculation. Mutually exclusive with line_items (the calculation supplies them). Leave status unset or set it to issued to issue the invoice; set status to paid together with a payment to also mark it paid.
Response
Success
Amount that has been paid
"0.00"
Remaining amount due
"110.00"
Formatted billing period string
Timestamp when the invoice was created
ISO 4217 currency code
"USD"
Customer this invoice belongs to
Invoice description or memo
Unique identifier for the invoice
Line items on this invoice
Current status of the invoice
draft, upcoming, pending_approval, scheduled, processing, issued, void, paid, canceled, overdue Sum of all line item totals before tax
"100.00"
Total tax amount
"10.00"
Total amount including tax
"110.00"
Timestamp when the invoice was last updated
End of the billing period
Start of the billing period
Date the invoice payment is due
Identifier in the external payment provider
External payment provider name
Customer-facing invoice reference number
URL to the invoice in the external system
Date the invoice is scheduled for processing
Date the invoice was issued
Date the invoice was paid
Purchase order number