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
Customer UUID
Billing address UUID (uses default if omitted)
Shipping address UUID (uses default if omitted)
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
Shipping method name
Shipping cost in smallest currency unit
Products or services to invoice
Product UUID from catalog
Product variant UUID
Custom product name (required if no id or variant)
Price in smallest currency unit (required if no id or variant)
Quantity
Responses
Invoice created successfully
Transaction object with invoice details
UUID of the created invoice
Validation or business-logic error.
| Code | Description |
|---|---|
10245 | Transaction quota has been reached |
Human-readable error message
Machine-readable error code
Missing or invalid API key