Create an invoice
Creates a new one-time invoice with customer details, products, and payment configuration. Requires either payment method IDs or custom payment instructions.
Products can reference existing catalog products by id, product variants by
variant, or be custom line items with name and price.
Body Parameters
Invoice creation date (ISO format or Unix timestamp)
Payment due date (ISO format or Unix timestamp)
Invoice label/title
Language code for localization
Three-letter ISO currency code
Tax calculation method
accountoffInvoice number prefix (e.g., 'INV-')
Custom invoice number (auto-generated if omitted)
Send invoice to customer via email after creation
Custom payment instructions (required when no payment methods)
Payment method IDs enabled for this invoice
Shipping information and cost
Products or services to invoice
Responses
Invoice created successfully
Transaction object with invoice details
UUID of the created invoice
Bad request. Possible error_code values:
| Code | Description |
|---|---|
10245 | TransactionsQuotaFull |
Human-readable error message
Machine-readable error code
Missing or invalid API key