Redeem a Gift Card
Introduction
This tutorial describes the processes that take place when a consumer redeems a card using a Blackhawk issued Brand Partner’s application via Blackhawk Digital Services. It summarizes steps taken by the consumer and processes undertaken in the background via Blackhawk Digital Services in support of the redemption. It also details the services and operations involved in the redemption. You can use it to help define and construct the parts of your application that enable your customers to redeem the value of a card.
Redeem Card Process Summary
A Blackhawk issued Brand Partner's (not a Distribution Partner) application lets consumers redeem gift cards. The consumer selects a card managed or purchased through the application, provides the amount to redeem from the card, and purchases an item using the application. After completing the purchase the user can verify the remaining value of the card by getting a balance. The diagram below shows the flow of a request initiated by a user to redeem a card.
Offline Processes
- The partner application calls the Read All Product Catalogs API from the Product Catalog Management Service and receives a response containing a list of product catalog IDs.
- The application calls Read Product Catalog API from the Product Catalog Management Service for all product IDs return from Step 1 above and receives a response containing a list of product IDs.
- The application calls Read Product from the Product Management Service for every productId provided by the response in Step 2. The response includes product information for each productId -- such as product image, terms and conditions, activation instructions product description, and so on -- which is cached by the application in order to display the list of products.
- If the application displays brand information, then there is a call to Read Product Line from the Product Line Management Service with the productLineId associated to every product in the product catalog, which is cached by the application in order to display the list of available brands.
Offline Processes
Offline process refers to a process used by a client application to execute a set of API calls that retrieve all brand and product metadata. Learn More
Redeem card: What Happens?
- If the user is purchasing a product for use through your application, follow the steps outlined in Create an Egift for an application to get an account. The application uses the account's entityId to redeem funds from a card created by generateEGift. Skip to Step 3.
- If the user has a physical card, then the user opens your application, either on the desktop or on a mobile device, and navigates to the feature that lets them manage a physical card.
- Using the product line data from the offline processes, the application can display a list of available Blackhawk Network brands for selection.
- The pinRequired field indicates if a PIN is required as input (with either a yes or no value).
- If the value is no, the display should indicate PIN is optional.
- Use the brandLogoImage to display the brand image for a product line.
- Use the productLineDescription to display the brand description.
- Use the defaultProductImages to display visual images of the back of card to identify the card number and PIN.
- The user selects one of the brands and provides the required card information, such as its number and PIN.
- The application calls the Verify Account API from the Account Processing services (V.1), passing the product line entityId to productLineId (from the results of the cached offline process), card number in the accountNumber field, and the PIN in pin. It also sets the accountType value to the type of the card – either CREDIT_CARD, GIFT_CARD, LOYALTY_CARD, or PHONE_CARD.
- Once the application has stored the account of the card, the user can make a purchase of an item from the application.
- The user selects an item purchases it using the stored card on the application from the step executed above.
- The application goes through the payment process and calls Redeem Account from Account Processing services (V.1) using the following:
- The entityId from the account
- The amount to redeem (which goes to amount).
- The unique 12-digit retrieval reference number (which goes to retrievalReferenceNumber).
- The unique GUID (which goes to requestId).
- Currency from the account (which goes to currency).
- The application checks the Redeem Account response to see if the redemption amount was approved (approvedAmount) and to determine the resulting balance (resultingBalance).
- If the Redeem Account does not return a response:
- Call the Redeem Account with the same parameters from Step 5 above at least three times over period of time.
- Set previousAttempts to 1 and for each subsequent call of Redeem Account increment by 1, so the next value is 2.
- If Redeem Account does not respond, contact Blackhawk Customer Service.
- If Redeem Account returns a timeout:
- Call reverseTransaction from the Acccount Processing services (V.1) and map the requestId from Step 3 to reversalTxnRequestId.
The reverseTransaction operation is time bound and usually can be called after a certain time frame. The reverseTransaction API should not be confused with voidAccount and reverseTransaction is to be used only for system exceptions.
Redeem a Card Process Flow
The following diagram shows the flow of a request initiated by a customer to redeem a card.

Digital Services - Redeem a Card Process Flow
Updated 4 months ago