POST

List Invoices For Multiple Orders


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves the IDs of invoices associated with all specified orders.

Permissions
Manage eCommerce - all permissions
Read eCommerce - all read permissions
Manage Stores - all permissions
Read Stores - all read permissions
Manage Orders
Read Orders
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/ecom/v1/ep-invoices/list-by-ids

Body Params
orderIdsArray <string>RequiredminItems 0maxItems 100minLength 1maxLength 100

Order IDs for which to retrieve invoices.

Response Object
invoicesForOrderArray <InvoicesForOrder>

List of order IDs and their associated invoices.

List Invoices For Multiple Orders

Retrieves invoices of the 2 requested order IDs

Request
cURL
curl -X POST \ 'https://www.wixapis.com/ecom/v1/invoices/list-by-ids' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>' \ --data-binary '{ "orderIds": [ "ba2553e1-548e-4b84-96d8-4978e74d7b3b", "5887eb1a-d695-4a8b-965a-b2a9dec463a9" ] }'
Response
JSON
{ "invoicesForOrder": [ { "orderId": "5887eb1a-d695-4a8b-965a-b2a9dec463a9", "invoicesInfo": [ { "id": "5887eb1a-d695-4a8b-965a-b2a9dec463a9", "appId": "1380b703-ce81-ff05-f115-39571d94dfcd" } ] }, { "orderId": "ba2553e1-548e-4b84-96d8-4978e74d7b3b", "invoicesInfo": [ { "id": "ba2553e1-548e-4b84-96d8-4978e74d7b3b", "appId": "1380b703-ce81-ff05-f115-39571d94dfcd" } ] } ] }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?