Search...
listTransactionsForSingleOrder( )
Developer Preview
Retrieves information about payments and refunds associated with a specified order.
Description
The listTransactionsForSingleOrder()
function returns a Promise that resolves when the specified order's 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 listTransactionsForSingleOrder(orderId: string): Promise<ListTransactionsForSingleOrderResponse>
listTransactionsForSingleOrder Parameters
NAME
TYPE
DESCRIPTION
orderId
string
Order ID.
Returns
Return Type:
Promise<
ListTransactionsForSingleOrderResponse
>NAME
TYPE
DESCRIPTION
orderTransactions
OrderTransactions
Order ID and its associated transactions.
Was this helpful?
listTransactionsForSingleOrder example
Copy Code
1import { orderTransactions } from 'wix-ecom-backend';23 async function listTransactionsForSingleOrder(orderId) {4 try {5 const result = await orderTransactions.listTransactionsForSingleOrder(orderId);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13