Search...
listTransactionsForMultipleOrders( )
Developer Preview
Retrieves information about payments and refunds associated with all specified orders.
Description
The listTransactionsForMultipleOrders()
function returns a Promise that resolves when the specified orders' transaction records are retrieved.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function listTransactionsForMultipleOrders(orderIds: Array<string>): Promise<ListTransactionsForMultipleOrdersResponse>
listTransactionsForMultipleOrders Parameters
NAME
TYPE
DESCRIPTION
orderIds
Array<
string
>Order IDs for which to retrieve transactions.
Returns
Return Type:
Promise<
ListTransactionsForMultipleOrdersResponse
>NAME
TYPE
DESCRIPTION
orderTransactions
Array<
OrderTransactions
>List of order IDs and their associated transactions.
Was this helpful?
listTransactionsForMultipleOrders example
Copy Code
1import { orderTransactions } from 'wix-ecom-backend';23 async function listTransactionsForMultipleOrders(orderIds) {4 try {5 const result = await orderTransactions.listTransactionsForMultipleOrders(orderIds);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13