Digitail API
Sales
Create ConsolidatedInvoice
1min
POST
https://developer.digitail.io/api/v1/sale/consolidate
Sandbox server (uses test data)
Authentication
Bearer
http
Body Parameters
body
object
*
customer_id
integer
*
invoice_date
string<date-time>
*
sales_ids
integer[]
Responses
200
successful operation
object
consolidatingSaleId
integer
invoice
object
invoicePreview
string
selectedSalesDetails
object[]
400
The request was invalid or contained data that was not allowed.
object
message
string
401
The authorization token is missing or invalid.
403
The user is not authorized to perform the requested operation.
422
Bad request
undefined
Example
{"key":"labels.consolidate_invoice.errors.sales_have_payments","message":"exceptions.labels.consolidate_invoice.errors.sales_have_payments","meta":[]}
429
The user has sent too many requests in a given amount of time ("rate limiting"). Max 200 requests per minute.
Updated 12 Apr 2024
Did this page help you?