get https://app.ecwid.com/api/v3//orders//invoices
Access scopes
Requires the following access scope: read_orders
Response
Information about tax invoices for the requested order ID.
Field | Type | Description |
---|---|---|
invoices | Array <Invoices> | Tax invoices created for the order |
Invoices
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) |
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 |