Retrieves a Invoice resource.
GET/invoices/:id
You can get an invoice in many different formats just specifying a different Accept header:
- application/json, default, you get some metadata information together with the json payload that represent the invoice
- application/xml, you get the XML format
- text/html, you get the invoice formatted with the chosen stylesheet (via X-PrintTheme header, see below)
- application/pdf, same as HTML but as a PDF file
- application/octet-stream, get the raw file (P7M or XML format)
In case of HTML and PDF you can choose the printing theme specifying the X-PrintTheme header:
- standard, default printing theme
- assosoftware, AssoSoftware printing theme
- acube, A-Cube printing theme (derived from AssoSoftware theme)
In case you choose A-Cube printing theme, you can write dynamic text within the output file, at the very beginning or in the file footer:
you must provide the URL query paramter dynamic[head-notes] or dynamic[foot-notes].
Example: GET /invoices/{uuid}?dynamic[head-notes]=some text in the header&dynamic[foot-notes]=some text in the footer
Request
Responses
- 200
- 404
Invoice resource response
Resource not found