Generate invoice from charge baskets
Charging: Baskets
Generate invoice from charge baskets
Creates one AR document (invoice) per account from the selected charge baskets’ line items. All documents are created with status ‘draft’.
POST
Generate invoice from charge baskets
Behavior
- Creates one AR document (invoice) per account from the charge basket line items
- All documents are created with status ‘draft’
- The request body is flat JSON (not JSON:API format)
- Returns an array of created AR documents
Important Notes
invoice_statuson charge baskets is automatically recalculated after invoice generation- Baskets must be in CLOSED status before generating invoices
Authorizations
OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.
The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.
Body
application/json
Array of charge basket IDs to generate invoices from
Minimum array length:
1Response
Invoices generated successfully

