Last 7 days, UTC

Average Latency
133ms

Average Uptime
100.0%

Current Status
Online

  • No information
  • Outage
  • Disruption
  • Normal
Average latency determined from Mashape to API Response time
Basic Authentication
 

Use your Platform name for username and Platform key for the password. Please email sdk@tangocard.com to get a Platform name and key created for you. You need to accept the Terms & Conditions to consume the Tango Card Rewards-as-a-Service API


Authentication
Description
Parameter
String

HTTP basic username

Username

Required

String

HTTP basic password

Password

Endpoints

HTTP 200 : Account response POST/accounts
						{
  "account": {
    "customer": "String Value",
    "email": "String Value",
    "identifier": "String Value",
    "available_balance": 10
  },
  "success": true
}						
1. Create an account

Request Body

HTTP 200 : Account response GET/accounts/{customer}/{account_identifier}
						{
  "account": {
    "customer": "String Value",
    "email": "String Value",
    "identifier": "String Value",
    "available_balance": 10
  },
  "success": true
}						
2. Get Account Information

Get the information for an account created under a Customer


Test console
Description
Parameter
string

customer

Required

string

account_identifier

Required

HTTP 200 : Funding response POST/funds
Model for a funding response
						{
  "amount": 10,
  "fund_id": "String Value",
  "success": true,
  "denial_code": "String Value",
  "denial_message": "String Value"
}						
3. Fund account

Funds the given account


Request Body

HTTP 200 : List of brands GET/rewards
Model for list of brands and rewards for each branch
						{
  "brands": [
    {
      "description": "String Value",
      "image_url": "String Value",
      "rewards": [
        {
          "available": true,
          "currency_type": "String Value",
          "description": "String Value",
          "sku": "String Value",
          "unit_price": 10,
          "max_price": 10,
          "min_price": 10
        }
      ]
    }
  ],
  "success": "String Value"
}						
4. Get list of rewards

Gets the list of rewards available for the platform


HTTP 200 : Order response POST/orders
						{
  "success": "String Value",
  "error_message": "String Value",
  "invalid_inputs": [
    {
      "error": "String Value",
      "field": "String Value"
    }
  ],
  "order": {
    "account_identifier": "String Value",
    "amount": 10,
    "customer": "String Value",
    "delivered_at": "String Value",
    "order_id": "String Value",
    "sku": "String Value",
    "reward": {
      "number": "String Value",
      "pin": "String Value",
      "token": "String Value"
    },
    "reward_from": "String Value",
    "reward_message": "String Value",
    "reward_subject": "String Value",
    "recipient": {
      "email": "String Value",
      "name": "String Value"
    }
  }
}						
5. Place an order for a reward

Order a rewar


Request Body

HTTP 200 : Order response GET/orders/{order_id}
						{
  "success": "String Value",
  "error_message": "String Value",
  "invalid_inputs": [
    {
      "error": "String Value",
      "field": "String Value"
    }
  ],
  "order": {
    "account_identifier": "String Value",
    "amount": 10,
    "customer": "String Value",
    "delivered_at": "String Value",
    "order_id": "String Value",
    "sku": "String Value",
    "reward": {
      "number": "String Value",
      "pin": "String Value",
      "token": "String Value"
    },
    "reward_from": "String Value",
    "reward_message": "String Value",
    "reward_subject": "String Value",
    "recipient": {
      "email": "String Value",
      "name": "String Value"
    }
  }
}						
6. Get order information

Get more information about an order


Test console
Description
Parameter
string

order_id

Required

HTTP 200 : Orders response GET/orders
Model for orders response
						{
  "orders": [
    {
      "account_identifier": "String Value",
      "amount": 10,
      "customer": "String Value",
      "delivered_at": "String Value",
      "order_id": "String Value",
      "sku": "String Value",
      "reward": {
        "number": "String Value",
        "pin": "String Value",
        "token": "String Value"
      },
      "reward_from": "String Value",
      "reward_message": "String Value",
      "reward_subject": "String Value",
      "recipient": {
        "email": "String Value",
        "name": "String Value"
      }
    }
  ],
  "success": "String Value"
}						
7. Get order history

Get more information about all the orders placed on this customer and account


Test console
Description
Parameter
string

customer

Required

string

account_identifier

Required

number

offset

Optional

number

limit

Optional

string

start_date

Optional

string

end_date

Optional

Consume this API completely for free!


By joining the mashape API marketplace you can start using Rewards as a Service API today!

Login to your account or signup: Create Account

or
   Signup with GitHub

By signing up you agree to our terms of service.