Sales
Get invoice data
Retrieve data for a particular invoice available in the system
This endpoint may be used as a base for new invoice data that we wish to create based on a set of related invoices
If you wish to generate such object base you will need to provide both:
- related parameter, listing the related invoices
- invoiceType of the new invoice we wish to create
The return object will be a temporary invoice object you may further extend before saving it.
get/sales/invoice
Query parameters
refinteger
Example:36891
InvoiceId identificator of the exact invoice we wish to retrieve
Comma delimited list of related invoices we wish to create a reference from
invoiceType'SALES' | 'CORRECTION' | 'INTERIM_FINAL'
Example:CORRECTION
Invoice type for the new invoice we wish to create based on related invoices
Response
OK
Example response
{
"data": {
"invoice": {
"basicInformation": {
"invoiceType": "SALES"
}
},
"relatedInvoices": [
{
"basicInformation": {
"invoiceType": "SALES"
}
}
]
}
}