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:-
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.
-
Make a Terminal API balance inquiry request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to BalanceInquiry.
ProtectedCardDatafield required for stored value solution gift cards with the SSC converted to a Base64-encoded string.JSON
Java
-
The standard
-
In the BalanceInquiryResponse, check the following:
PaymentAccountStatus.CurrentBalance: the value of the gift card balance.PaymentAccountStatus.Currency: the currency of the gift card balance.
