The Order Invoices API allows you to retrieve the IDs of invoices, and IDs of the external invoice apps that created them.
With the Order Invoices API, you can retrieve invoice IDs and external invoice app IDs associated with one or more orders.
Manage eCommerce order invoices
Invoice ID.
ID of the app that set the invoice.
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.
Order IDs for which to retrieve invoices.
List of order IDs and their associated invoices.
Retrieves invoices of the 2 requested order IDs
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"
]
}'
{
"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"
}
]
}
]
}