This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Voids a membership charge, returning the redeemed balance to the membership.
Wix calls this method to reverse a charge, for example when an order is canceled or refunded, after Get Membership Voidability has reported the charge as voidable.
Your implementation should: Reverse the charge identified by transactionId and restore the
balance it consumed. Treat a repeat request for a charge you've already voided as
TRANSACTION_ALREADY_VOIDED rather than restoring the balance a second time.
Error handling: Report an unrecognized transactionId as TRANSACTION_NOT_FOUND, a charge
that can no longer be reversed as TRANSACTION_CANNOT_BE_VOIDED, and one already reversed as
TRANSACTION_ALREADY_VOIDED.