Get invoice data
Changed onRetrieve 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.
Missing, permanently deleted and other-company invoices return 404 NOT_FOUND with a generic message. Own soft-deleted invoices return 404 NOT_FOUND with "Invoice has been deleted" and no invoice data. This applies to ref and related lookups. For CORRECTION, rows come from the referenced document, without applying later corrections automatically. Reference the previous correction to use its stored after-correction state.
Request
- Base URLhttps://api.altera.co
- URLhttps://api.altera.co/sales/invoice
- AuthAPI key in header Authorization
Query parameters
InvoiceId identificator of the exact invoice we wish to retrieve
Comma delimited list of related invoices we wish to create a reference from. For CORRECTION this copies the referenced invoice, not the cumulative state after previous corrections. For a correction of a correction, pass the previous correction identifier.
Invoice type for the new invoice we wish to create based on related invoices
Response
OK
Example response
{
"data": {
"invoice": {
"basicInformation": {
"invoiceType": "SALES",
"currency": "EUR",
"language": "en"
},
"invoicePosition": [
{
"gtu": "2"
}
]
},
"relatedInvoices": [
{
"basicInformation": {
"invoiceType": "SALES",
"currency": "EUR",
"language": "en"
},
"invoicePosition": [
{
"gtu": "2"
}
]
}
]
}
}Changes
- breaking
the response property
////became nullable for the status - breaking
the response property
/////became nullable for the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
to the response with the status
- breaking
- info
added the optional property
to the response with the status
- info