Point-of-sale icon

Undo a load transaction to a gift card

Reverse a transaction that loaded funds to a gift card.

With an undo request, you can reverse a gift card transaction that loaded funds to a gift card. The amount loaded is taken off the gift card balance. However, you can only undo the most recent load transaction and this transaction must be from the past 24 hours.

You identify the transaction you want to undo by its transaction identifier. Undoing transactions is a synchronous operation, but in an asynchronous cloud integration you receive the result asynchronously in an event notification.

You can't use an undo request to cancel a gift card payment or to make a refund to a gift card.
See Cancel a payment and Make a refund to a gift card.

Before you begin

Before you make any gift card transactions, make sure that you have:

Undo a transaction

To undo the most recent load transaction made in the past 24 hours on a gift card:

  1. Get the POITransactionID.TimeStamp and POITransactionID.TransactionID of the original
  2. Make a POST request to a Terminal API endpoint,

    • MessageHeader: the standard SaleToPOIRequest.MessageHeader object. Specify:

      Parameter Required Description
      ProtocolVersion -white_check_mark- 3.0
      MessageClass -white_check_mark- Service
      MessageCategory -white_check_mark- StoredValue
      MessageType -white_check_mark- Request
      ServiceID -white_check_mark- Your unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (POIID) being used.
      SaleID -white_check_mark- Your unique ID for the POS system component to send this request from.
      POIID -white_check_mark- The unique ID of the terminal to send this request to. Format: [device model]-[serial number].
    • StoredValueRequest.SaleData.SaleTransactionID. This includes:

      Parameter Required Description
      TransactionID -white_check_mark- Your reference to identify this undo request. We recommend using a unique value.
      TimeStamp -white_check_mark- date and time of the request, in UTC format.
    • StoredValueRequest.StoredValueData. This includes:

      Parameter Required Description
      StoredValueTransactionType -white_check_mark- Reverse
      OriginalPOITransaction -white_check_mark- The details of the transaction that you want to undo:
      • POITransactionID.TimeStamp: date and time of the original transaction.
      • POITransactionID.TransactionID: transaction identifier of the original transaction, in one of the formats from the table below.
      Format Example
      tenderReference.pspReference A7sM001574852436000.NC6HT9CRT65ZGN82

      Recommended format

      pspReference .NC6HT9CRT65ZGN82

      Don't forget the leading dot (.).

      tenderReference A7sM001574852436000

      Only when using the same terminal as for the original transaction.

The undo request is sent to the Adyen payments platform for processing.


Once processed, your integration receives a result indicating the current state or balance of the gift card. This is provided in a synchronous API response, unless your integration uses asynchronous cloud communications.

If your integration uses asynchronous cloud communications, you receive the response as an event notification.

If the reversal is successful:

  • You receive a response with a StoredValueResponse object that includes:

    • POIData.POITransactionID.TransactionID: Transaction identifier for the undo request.

    • StoredValueResult:

      • StoredValueTransactionType: Reverse
      • StoredValueAccountStatus: the CurrentBalance remaining on the card after undoing a load request.

    • Response.Result: Success

    • 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.

              "StoredValueAccountStatus": {

See also