Search...
listInvoicesForMultipleOrders( )
Developer Preview
Retrieves the IDs of invoices associated with all specified orders.
Description
The listInvoicesForSingleOrder()
function returns a Promise that resolves when the specified order's transaction records are retrieved.
Syntax
function listInvoicesForMultipleOrders(orderIds: Array<string>): Promise<ListInvoicesForMultipleOrdersResponse>
listInvoicesForMultipleOrders Parameters
NAME
TYPE
DESCRIPTION
orderIds
Array<
string
>Order IDs for which to retrieve invoices.
Returns
Return Type:
Promise<
ListInvoicesForMultipleOrdersResponse
>NAME
TYPE
DESCRIPTION
invoicesForOrder
Array<
InvoicesForOrder
>List of order IDs and their associated invoices.
Was this helpful?
listInvoicesForMultipleOrders example
Copy Code
1import { orderInvoices } from 'wix-ecom-backend';23 async function listInvoicesForMultipleOrders(orderIds) {4 try {5 const result = await orderInvoices.listInvoicesForMultipleOrders(orderIds);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13