Name | Type | Description |
---|
Authorization | string | oAuth token with mandatory Bearer before it. Example: Bearer e***s0 , where e***s0 should be replaced with your oAuth token. |
Information about tax invoices for the requested order ID.
Field | Type | Description |
---|
invoices | Array <Invoices> | Tax invoices created for the order |
Field | Type | Description |
---|
internalId | number | Internal ID of the tax invoice |
id | string | Public invoice ID showed in the tax invoice |
created | string | Date and time of tax invoice creation in UTC |
link | string | Download link for the tax invoice in PDF format |
type | string | Tax invoice type. Supported values "SALE" (regular), "FULL_CANCEL" (refund) |
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 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 |
Field | Type | Description |
---|
errorMessage | string | Error message |