Invoice format
A-Cube accepts two formats of the Invoice: XML and JSON.
Dashboard
In user's panel, A-Cube Platform lists all outgoing and incoming invoices. There is also basic details screen showing most important information. Additionally, filter panel has been provided to browse invoices by dates, status and type.
It is also possible to view rendered invoice as HTML in the browser using URL from Dashboard:
- Sandbox:
https://dashboard-sandbox.acubeapi.com/de/invoices/:InvoiceUuid - Production:
https://dashboard.acubeapi.com/de/invoices/:InvoiceUuid
Invoice Details
All details about the invoice can be fetched individually by API.
A-Cube can return invoice in following type: HTML, PDF or JSON. This can be achieved by specifying proper Accept
header during the query.
(application/json, text/html, application/pdf, application/xml)
curl --header 'Accept: application/json' --header 'Authorization: Bearer TOKEN' https://de-sandbox.api.acubeapi.com/invoices/{invoiceUUID}
curl --header 'Accept: application/pdf' --header 'Authorization: Bearer TOKEN' https://de-sandbox.api.acubeapi.com/invoices/{invoiceUUID}
curl --header 'Accept: text/html' --header 'Authorization: Bearer TOKEN' https://de-sandbox.api.acubeapi.com/invoices/{invoiceUUID}
To fetch original structured XML invoice, use following endpoint:
curl --header 'Accept: application/xml' --header 'Authorization: Bearer TOKEN' https://de-sandbox.api.acubeapi.com/invoices/{invoiceUUID}