/voidTransaction endpoint of our Stored Value API lets you undo transactions made with this API in the past 24 hours. Refer to Transaction per provider and channel to see what transactions you can and cannot undo. Undoing transactions is a synchronous operation.
Not for cancellations or refunds
Because/voidTransaction is not related to a payment, you cannot use it to cancel a gift card payment or to make a refund to a gift card. Refer to:
Transaction per provider and channel
Online
In-person payments
Undo a transaction
To undo an/issue, /changeStatus, /load, or /mergeBalance transaction made in the past 24 hours for a gift card or other stored-value card:
-
Make a POST request to the
/voidTransactionendpoint, specifying:-
merchantAccount: ID of the merchant account that you want to process the transaction with. -
store: Optional For transactions flagged as in-store, the ID of the physical store that you want to process the transaction for. -
originalReference: ThepspReferenceof the Stored Value API transaction that you want to undo. -
reference: Your reference to uniquely identify this transaction. To provide multiple references for a transaction, separate them with hyphens (”-”). Maximum length: 80 characters.
-
Response
You receive a response containing:currentBalance: Thecurrencyand totalvalueof the funds stored on the card.pspReference: Adyen’s 16-character unique reference associated with the request.resultCode: Indicates the state of the request. Refer to Result codes for the values that you can receive.
Related transactions
Issue
Issue a new gift card.
Load
Add funds to a gift card.
Merge balance
Transfer the value from one gift card to another of the same type.

