Get order receipt 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

Headers

NameTypeDescription
AuthorizationstringoAuth token with mandatory Bearer before it. Example: Bearer e***s0, where e***s0 should be replaced with your oAuth token.

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 StatusDescription
400Request parameters are malformed
403Access token doesn't have read_invoices scope
404The order is not found
405Method not allowed.
Can occur when using PUT/POST/DELETE HTTP request methods instead of GET
415Unsupported content-type: expected application/json or text/json
500Cannot retrieve the order info because of an error on the server

Error response body (optional)

FieldTypeDescription
errorMessagestringError message
Language
Authorization
Query