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.
The listInvoicesForSingleOrder()
function returns a Promise that resolves when the specified order's transaction records are retrieved.
function listInvoicesForMultipleOrders(
orderIds: Array<string>,
): Promise<ListInvoicesForMultipleOrdersResponse>;
Order IDs for which to retrieve invoices.
import { orderInvoices } from "wix-ecom-backend";
async function listInvoicesForMultipleOrders(orderIds) {
try {
const result = await orderInvoices.listInvoicesForMultipleOrders(orderIds);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.