Overview
The How to Reward with Tango Gift Cards guide creates a gift card reward in My Extole. This page creates the same reward through the REST API. A gift card reward needs three things: the account’s gift card account, a card from the Tango catalog, and a value.The Gift Card Account
Every gift card reward draws on one gift card account. My Extole creates that account the first time someone creates a gift card reward, so an account that has never had one has no gift card account yet. Over REST, you create it yourself, once. A new gift card account has a balance of zero. A reward on it can be attached to a campaign and published, but it sends no gift card until the balance is funded. Extole funds the balance by invoice or by credit card; see Fund Your Gift Card Balance.Create a Gift Card Reward
-
Find the gift card account.
GET /v2/settings/tango/accountslists the account’s gift card accounts. If the list has one, use itsaccount_idand go to step 3. -
Create the gift card account if the list is empty.
POST /v2/settings/tango/accountswith the balance at which Extole warns that funds are low.funds_amount_warn_limitis required. My Extole uses 2500:The response carries the newaccount_id. An account can hold only a limited number of gift card accounts, and a request past the limit returnsaccount_limit_reached. -
Choose the card.
GET /v2/reward-suppliers/tango/catalogreturns the cards Tango sells today. Each brand lists itsitems. Pick the item in the currency you want and note itsutid. An item with aface_valuehas a fixed value. An item withmin_valueandmax_valuetakes any value between them. -
Create the reward.
POST /v6/reward-supplierswithreward_supplier_typeset toTANGO_V2.account_id,utidandface_value_typeare required: -
Attach the reward. Set the reward step’s Reward setting to the new reward’s
id. See Component Settings Over REST, or Change the Reward on your Program in My Extole.
