Create invoice header and line items
Creates an invoice along with its line items. The invoice header and items are created in separate transactions.
Features
- Create invoice header fields (date, amount, vendor, notes, etc.)
- Create new line items.
- Attach custom metadata fields to invoice header and line items (requires account-level custom field spec configuration).
Use Cases
- Programmatic invoice creation from external systems.
Headers
OAuth2 authentication flows. Auth server URLs will vary by environment
API key for authentication
API version to use (optional, defaults to latest). Supported values: 1.0.0, 1.1.0.
Client-generated unique key (UUID/ULID recommended). JSON requests: the first 2xx response is cached for 24h and replayed on a same-key retry with a matching body; a different body returns 422. Non-JSON requests (e.g. file uploads): the key is single-use — any same-key retry returns 422 regardless of body. See Idempotency for full details.
Request body
Response
Invoice created successfully. Check if 'errors' are present in the response to identify any issues during creation. For 'items' creation errors, the invoice will be created but items may be missing or incomplete. Refer to 'items' for details.