Skip to main content
When the balance of a gift card has gone below a certain amount or when you suspect fraud, you can stop further use of the card. You can:
  • Make a cashback request to take funds off the gift card and give this back to the shopper as cash. If you cash out the full remaining balance, the card is no longer active and cannot be used again.
  • Make a deactivation request to disable the card without cashing it out.

Requirements

Before you begin, take into account the following requirements, limitations, and preparations.

Cash back a gift card

Your options with a cashback request depend on the gift card provider, the scheme rules, and the applicable law. If cashbacks are allowed, you can normally only cash out the full amount remaining on the card. But if the gift card was provided by Givex, it is possible in some cases to give a cashback for a partial amount. The funds taken off the gift card can be given back to the shopper in cash, or transferred to their credit or debit card by making an unreferenced refund. To make a gift card cashback request:
  1. Determine the card entry method:
    • If you want to scan the card, do that first and use the obtained card details in your request.
    • If you want to swipe the card or use manual keyed entry (MKE), send the request first. The payment terminal will show a prompt to swipe the card or enter the card details.
  2. Check the balance remaining on the gift card.
  3. Make a payment request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to Payment.
      In SaleData.SaleToAcquirerData, specify the tender option in one of the following formats:
      • Option 1: a JSON object converted to a Base64 encoded string.
        Encode {"redemptionType": "cashback"} to Base64, and pass the resulting string:
        "SaleToAcquirerData": "eyJyZWRlbXB0aW9uVHlwZSI6ICJjYXNoYmFjayJ9"
      • Option 2: a key-value pair:
        "SaleToAcquirerData": "redemptionType=cashback"
      The format that you use here will also be the format of the AdditionalResponse that you receive. If there are more tender options (for example, ReceiptHandler ) or other data elements that you need to pass in the SaleToAcquirerData field, refer to Add information to a payment.
    • The PaymentTransaction object with:
    The example below shows how to initiate a GBP 4.50 cashback request for a scanned gift card.

    JSON

    Java

    The cashback request is sent to the Adyen payments platform for processing. Once processed, your integration receives the cashback result.
  4. In the PaymentResponse, check the following: The example below indicates that the cashback request was successful, and GBP 4.50 was removed from the balance of the gift card.

Deactivate a gift card

If the gift card was issued by Givex, you can make a deactivation request to disable the card. To make a deactivation request:
  1. Determine the card entry method:
    • If you want to scan the card, do that first and use the obtained card details in your request.
    • If you want to swipe the card or use manual keyed entry (MKE), send the request first. The payment terminal will show a prompt to swipe the card or enter the card details.
  2. Make a Terminal API stored value request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to StoredValue.
    The example below shows how to deactivate of a scanned gift card.

    JSON

    Java

  3. In the StoredValueResponse, check the following:
    • POIData.POITransactionID.TransactionID: The transaction identifier for the deactivation.
    • StoredValueResult.StoredValueTransactionType: Unload and Response.Result: Success indicate that funds were loaded.
    • StoredValueAccountStatus.CurrentBalance: The current balance on the gift card, which is 0 because the card was deactivated.
    The example below indicates that the deactivation request was successful, and card 6006491260550218157 was deactivated. This card now has a balance of GBP 0.

See also