Sales invoices
Get all sales invoices
Get all sales invoices in the given administration.
This endpoint requires the sales-invoice:read scope for all the sales invoices in the administration.
path Parameters
administrationIdThe ID of the administration.
query Parameters
pageThe one-based index of the page to return.
per_pageThe number of sales invoices to return per page. Clamped to the maximum page size of 100.
Get all sales invoices › Responses
OK
An array containing the elements of the page.
Create a sales invoice
Create a new sales invoice in the given administration.
This endpoint requires the sales-invoice:write scope for the given administration, and the contact:read scope for the contact.
path Parameters
administrationIdThe ID of the administration.
Create a sales invoice › Request Body
contactIdThe ID of the contact this invoice should be addressed to.
The lines that make up the invoice.
Create a sales invoice › Responses
Created
idThe ID of the sales invoice.
statusThe status of the invoice.
contactIdThe ID of the contact this invoice is addressed to, or null if no contact is associated.
invoiceNumberThe invoice number, or null if the invoice has not yet been finalized.
The lines that make up the invoice.
Attach a file to the sales invoice.
Attach a file to the sales debit invoice in the given administration.
Send this as a multipart/form-data request with a single file part holding the file.
This endpoint requires the sales-invoice:write scope for the sales invoice, and the file:write scope for the administration.
path Parameters
administrationIdThe ID of the administration.
salesInvoiceIdThe ID of the sales invoice.
Attach a file to the sales invoice. › Request Body
fileThe file to attach.
Attach a file to the sales invoice. › Responses
OK
Get a sales invoice by ID
Get a single sales invoice by its ID.
This endpoint requires the sales-invoice:read scope for the sales invoice.
path Parameters
administrationIdThe ID of the administration.
salesInvoiceIdThe ID of the sales invoice.
Get a sales invoice by ID › Responses
OK
idThe ID of the sales invoice.
statusThe status of the invoice.
contactIdThe ID of the contact this invoice is addressed to, or null if no contact is associated.
invoiceNumberThe invoice number, or null if the invoice has not yet been finalized.
The lines that make up the invoice.