API endpoint overview

Tango API has numerous endpoints to help you perform a variety of activities in your Tango platform. These endpoints are presented here at an overview level. For detailed information on each endpoint, refer to their related article in this guide.

📘

Notes:


Customers

Use the following endpoints to create and view customers (groups) on the platform. These calls include details for all customers and accounts under a platform but not the balance and contact information for the accounts.

EndpointsDescription
GET {URI}/customersGet a list of all Customers on this Platform.
POST {URI}/customersCreate a new Customer on this Platform.
GET {URI}/customers/{customerIdentifier}Get details for a specific Customer on this Platform.
GET {URI}/customers/{customerIdentifier}/accountsGet a list of all Accounts created for a specific Customer on this Platform.
POST{URI}/customers/{customerIdentifier}/accountsCreate an Account under a specific Customer on this Platform.
PATCH {URI}/customers/{customerIdentifier}/accounts/{accountIdentifier}Update an account under a specific customer

For details, refer to our document on Manage customers.


Accounts

Use the following endpoints to get detailed information, such as balance, for the accounts in your platform.

EndpointsDescription
GET {URI}/accountsGet a list of Accounts created on this Platform.
GET {URI}/accounts/{accountIdentifier}Get details for a specific Account on this Platform.

For details, refer to our document on Manage accounts.


Fund

Use the following endpoints to register, fund, and un-register credit cards.

EndpointsDescription
POST {URI}/creditCardDepositsFund an Account.
GET {URI}/creditCardDeposits/{depositId}Get details for a specific Credit Card Deposit.
POST {URI}/creditCardUnregistersUnregister a Credit Card.
GET {URI}/creditCardsList all credit cards registered on this Platform.
POST {URI}/creditCardsRegister a new Credit Card.
GET {URI}/creditCards/{token}Get details for a specific Credit Card.
GET {URI}/transferFundsTransfer funds

For details, refer to our document on Fund your account.


Credential types

Use GET {URI}/credentialtypes to get a list of credential types. There is no parameters for this endpoint.

EndpointDescription
GET {URI}/credentialtypesGet a List of Credential Types

For details, refer to our document on Get credential types.


Orders

Use the following endpoints to create, view, and resend orders.

EndpointsDescription
GET {URI}/ordersGet a list of Orders placed under this Platform.
POST {URI}/ordersCreate an Order under a specific Account.
GET {URI}/orders/{referenceOrderID}Get details for a specific Order.
POST {URI}/orders/{referenceOrderID}/resendsResend a specific Order.

For details. refer to our document on Manage orders.


Catalogs

Use the following endpoint to view the items in your catalog, along with the details to order items and display the item information.

📘

Note:

UTID is Unique Tango ID {{utid}} for the item being ordered such as Gift Cards or NPO or nonprofit donations.

EndpointDescription
GET {URI}/catalogsGet all items in the platform's catalog.

For details, refer to our document on Manage catalog.


Brand categories

Use the following endpoint to filter a catalog by category such as grocery, beauty, health and wellness, etc. Categories have a Universal Unique Identifier (UUID).

EndpointDescription
GET {URI}/brandCategoriesGet all brand categories

For details, refer to our document Get brand categories.


Choice products

Use the following endpoint to manage Choice Products such as: Reward Link® (RL), Promo Link ™(PL), and Disbursement Link (DL).

EndpointDescription
GET {URI}/choiceProductsGet all available Choice products.
GET {URI}/choiceProducts/{choiceProductUtid}/catalogGet catalog for a specific Choice product utid.
GET {URI}/choiceProducts/{utid}Get details for a specific Choice Product.

For details, refer to our document Manage Choice products.


Countries and currencies

Use the following endpoints to get a list of countries and their preferred currency:

EndpointDescription
GET {URI}/rewardCountriesGet a list of countries in your catalog.

For details, refer to our document Manage countries and currencies.


Email templates

Use the following endpoints to create, view, update and delete email templates for reward delivery.

EndpointsDescription
GET {URI}/emailTemplatesGet a list of all email templates on this platform.
POST {URI}/emailTemplatesCreate a new email template on this platform.
GET {URI}/emailTemplates/{etid}Get details for a specific email template on this platform.
DELETE {URI}/emailTemplates/{etid}Delete a specific email template on this platform.
PATCH {URI}/emailTemplates/{etid}Update details for a specific email template on this platform.

For details, refer to our document on Manage email templates.


Line items

Orders consist of one or more line items. Each line item represents a single gift card, reward, disbursement, or promotional link and has its unique reference number, customer's first name, last name, email address, dollar amount, etc. Each line item can be managed separately when a request fails due to an undeliverable email or a misspelled recipient's name, for example.

Use the following endpoints to page through or filter a list of line items, including their non-sensitive details and reward status. You can also view details for a specific line item, including sensitive details, reward history, reward redemption, or resend a specific line item.

EndpointsDescription
GET {URI}/lineItemsGet a list of line items placed on this platform.
GET {URI}/lineItems/reasonCodesGet all reason codes for the reward action (freeze, unfreeze, cancel, and reissue) on this platform.
GET {URI}/lineItems/{referenceLineItemId}Get details for a specific line item on this platform.
PATCH {URI}/lineItems/{referenceLineItemID}Update a line item on this platform.
POST {URI}/line-items/{referenceLineItemID}/cancelCancel a line item on this platform.
POST {URI}/line-items/{referenceLineItemid}/freezeFreeze a line item on this platform.
POST {URI}/line-items/{referenceLineItemID}/unfreezeUnfreeze a line item on this platform.
POST {URI}/lineItems/{referenceLineItemID}/reissueReissue a line item on this platform.
POST {URI}/lineItems/{referenceLineItemId}/resendsResend a specific line item on this platform.

For details, refer to our document on Manage line items.


Exchange rates

Use GET {URI}/exchangerates endpoint to provide a list of exchange rates currently set in the Tango system. Use the following endpoint to calculate the cost of international rewards.

EndpointDescription
GET {URI}/exchangeratesGet a list of exchange rates available for this platform.

For details, refer to our document on Get exchange rates.


Webhooks

We support webhooks in or API. Check out Webhook endpoints for the latest.


Response codes

We provide the following response codes and messages in our API. For the health check of above functions, use '/pulse' endpoint to determine whether the system is healthy or not. When the response is 200, for example, the system is OK.

ResponseDescription
200OK
201Created
202Accepted
400Bad request
401Unauthorized
402Insufficient funds
403Forbidden
404Not Found
409Conflict, duplicate exists
422Unprocessable entity
429Exceeded the allowable TPS rate limit
500Internal server error
503Service unavailable

See Tango response classes for more information.


Rewards as a Service™ and the RaaS® API are provided by Tango Card, Inc. © 2024 Tango Card, Inc.