Skip to main content
You can check the funds remaining on an activated gift card, by making a balance request. This allows you to verify the gift card’s value before a transaction and determine if a partial payment is needed.

Requirements

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

Make a balance inquiry

To see the funds remaining on a gift card:
  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 balance inquiry request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to BalanceInquiry.
    The example below shows how to check the balance for a scanned gift card. It includes an optional ProtectedCardData field required for stored value solution gift cards with the SSC converted to a Base64-encoded string.

    JSON

    Java

  3. In the BalanceInquiryResponse, check the following:
    • PaymentAccountStatus.CurrentBalance: the value of the gift card balance.
    • PaymentAccountStatus.Currency: the currency of the gift card balance.
    The example below indicates that the gift card has a balance of GBP 98.75.

See also