get https://app.ecwid.com/api/v3//orders//invoice-pdf
Request a receipt for the specified order in PDF file format. If order has several receipts, API will return the latest one. Please note, that order receipt is not the same as a tax invoice. Similar functionality is available in the Control Panel: link
Access scopes
Requires the following access scope: read_orders
Response
Tax invoice in PDF format
Errors
Error response example:
HTTP/1.1 405 Method Not Allowed
In case of error, Ecwid responds with an error HTTP status code and, optionally, JSON-formatted body containing error description
HTTP codes
HTTP Status | Description |
---|---|
400 | Request parameters are malformed |
403 | Access token doesn't have read_invoices scope |
404 | The order is not found |
405 | Method not allowed. Can occur when using PUT/POST/DELETE HTTP request methods instead of GET |
415 | Unsupported content-type: expected application/json or text/json |
500 | Cannot retrieve the order info because of an error on the server |
Error response body (optional)
Field | Type | Description |
---|---|---|
errorMessage | string | Error message |