Processes payment refunds by calling payment providers and creating refund transactions.
Supports two refund methods:
Set paymentRefunds.externalRefund = true for external refunds when you've manually processed the refund and only need to update the order's transaction records.
The method also handles restocking inventory and sending customer notifications when specified in sideEffects.
This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:
Order ID to process refunds for.
There are 6 errors with this status code.
There are 4 errors with this status code.
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.