See Cancel a payment and Make a refund to a gift card.
Requirements
Before you begin, take into account the following requirements, limitations, and preparations.Undo a transaction
To undo the most recent load transaction made in the past 24 hours on a gift card:-
Get the
POITransactionID.TimeStampandPOITransactionID.TransactionIDof the original
transaction. -
Make a Terminal API stored value request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to StoredValue.
JSON
Java
-
The standard
-
In the StoredValueResponse, check the following:
-
StoredValueTransactionType: Reverse andResponse.Result: Success indicate the loaded funds were reversed. -
In the
StoredValueResultobject,StoredValueAccountStatusindicates theCurrentBalanceremaining on the card after undoing a load request. -
POIData.POITransactionID.TransactionID: This is Transaction identifier for the undo request. -
Response.AdditionalResponse: additional transaction data. Depending on the format you used in the request, you receive either a string of form-encoded key-value pairs or a Base64 string that you need to decode to get a JSON object.
-
