The Billing & Invoices API lets external systems submit sales transactions, query bill states, issue credit/debit notes, and void bills in compliance with fiscal regulations.
Invoice Lifecycle & State Transitions
Invoices move through distinct financial states from initial submission to final settlement or cancellation:
1. List Invoices
Retrieve a list of sales order bills/invoices.
Query Parameters
Success Response (200 OK)
Error Responses
Invalid Date Range (400 Bad Request)
2. Create Invoice
Create a new sales order bill/invoice.
Request Body Example
Success Response (201 Created)
Error Responses
Line Items Validation Error (400 Bad Request)
Customer Not Found (404 Not Found)
3. Void Invoice
Void an existing invoice.
Path Parameters
id (string, required): The UUID of the invoice.
Request Body
Success Response (200 OK)
Error Responses
Invoice Already Voided (400 Bad Request / 409 Conflict)
Invalid ID Parameter (400 Bad Request)
4. List Credit Notes
Retrieve credit notes.
Success Response (200 OK)
Error Responses
Missing or Invalid Client ID (401 Unauthorized)
5. Create Credit Note
Create a new credit note.
Request Body Example
Success Response (201 Created)
Error Responses
Credit Amount Exceeds Total (400 Bad Request)
6. List Debit Notes
Retrieve debit notes.
Success Response (200 OK)
7. Create Debit Note
Create a new debit note.
Request Body Example
Success Response (201 Created)
Error Responses
Invoice Not Found (404 Not Found)
Last modified on July 27, 2026