The Order Transactions API allows you to manage records and details of payments and refunds associated with your orders.
With the Order Transactions API you can:
To use the Order Transactions API, import { orderTransactions }
from the wix-ecom-backend
module:
Functions in the Order Transactions API are restricted and only run if you elevate permissions using the wix-auth
elevate()
function.
Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.