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:
- Tango API v2 is a RESTful JSON API.
- Tango API authentication is handled via HTTP Basic Auth or OAuth 2.0
- Sandbox URI: https://integration-api.tangocard.com/raas/v2
- Production URI: https://api.tangocard.com/raas/v2
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.
Endpoints | Description |
---|---|
GET {URI}/customers | Get a list of all Customers on this Platform. |
POST {URI}/customers | Create a new Customer on this Platform. |
GET {URI}/customers/{customerIdentifier} | Get details for a specific Customer on this Platform. |
GET {URI}/customers/{customerIdentifier}/accounts | Get a list of all Accounts created for a specific Customer on this Platform. |
POST{URI}/customers/{customerIdentifier}/accounts | Create 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.
Endpoints | Description |
---|---|
GET {URI}/accounts | Get 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.
Endpoints | Description |
---|---|
POST {URI}/creditCardDeposits | Fund an Account. |
GET {URI}/creditCardDeposits/{depositId} | Get details for a specific Credit Card Deposit. |
POST {URI}/creditCardUnregisters | Unregister a Credit Card. |
GET {URI}/creditCards | List all credit cards registered on this Platform. |
POST {URI}/creditCards | Register a new Credit Card. |
GET {URI}/creditCards/{token} | Get details for a specific Credit Card. |
GET {URI}/transferFunds | Transfer 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.
Endpoint | Description |
---|---|
GET {URI}/credentialtypes | Get 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.
Endpoints | Description |
---|---|
GET {URI}/orders | Get a list of Orders placed under this Platform. |
POST {URI}/orders | Create an Order under a specific Account. |
GET {URI}/orders/{referenceOrderID} | Get details for a specific Order. |
POST {URI}/orders/{referenceOrderID}/resends | Resend 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.
Endpoint | Description |
---|---|
GET {URI}/catalogs | Get 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).
Endpoint | Description |
---|---|
GET {URI}/brandCategories | Get 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).
Endpoint | Description |
---|---|
GET {URI}/choiceProducts | Get all available Choice products. |
GET {URI}/choiceProducts/{choiceProductUtid}/catalog | Get 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:
Endpoint | Description |
---|---|
GET {URI}/rewardCountries | Get 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.
Endpoints | Description |
---|---|
GET {URI}/emailTemplates | Get a list of all email templates on this platform. |
POST {URI}/emailTemplates | Create 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.
Endpoints | Description |
---|---|
GET {URI}/lineItems | Get a list of line items placed on this platform. |
GET {URI}/lineItems/reasonCodes | Get 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}/cancel | Cancel a line item on this platform. |
POST {URI}/line-items/{referenceLineItemid}/freeze | Freeze a line item on this platform. |
POST {URI}/line-items/{referenceLineItemID}/unfreeze | Unfreeze a line item on this platform. |
POST {URI}/lineItems/{referenceLineItemID}/reissue | Reissue a line item on this platform. |
POST {URI}/lineItems/{referenceLineItemId}/resends | Resend 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.
Endpoint | Description |
---|---|
GET {URI}/exchangerates | Get 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.
Response | Description |
---|---|
200 | OK |
201 | Created |
202 | Accepted |
400 | Bad request |
401 | Unauthorized |
402 | Insufficient funds |
403 | Forbidden |
404 | Not Found |
409 | Conflict, duplicate exists |
422 | Unprocessable entity |
429 | Exceeded the allowable TPS rate limit |
500 | Internal server error |
503 | Service unavailable |
See Tango response classes for more information.
Updated 6 days ago