Get a list of orders placed on this platform

You can review and manage previously paced orders using Tango API. Use the following endpoint to get a list of orders placed under your platform:

EndpointPurpose
GET {URI}/ordersGet a list of Orders placed under this platform.

πŸ“˜

Note:

GET {URI}/orders currently only returns 10K results. Use Tango API query parameters to better filter your search results.

Here is a list of query parameters offered with this endpoint to better filter your search results:

Query paramsData typeDescription
accountIdentifierstringSpecify the account to be queried.
The string must have 5-100 characters.
customerIdentifierstringSpecify the customer to be queried.
The string must have 5-100 characters.
externalRefIDstringSpecify the external reference ID to be queried.
The string may have up to 100 alphanumeric characters.
startDatestringSpecify the starting date or date time to be queried according to RFC 3339, i.e. "2016-01-01" or "2016-01-01T00:00:00Z". See https://www.ietf.org/rfc/rfc3339.txt
endDatestringSpecify the ending date or date time to be queried according to RFC 3339, i.e. "2016-01-01" or "2016-01-01T00:00:00Z". See https://www.ietf.org/rfc/rfc3339.txt
elementsPerBlockint32Specify the number of elements in a block.
pageint32Specify the page number to return.
minAmountdoubleSpecify the minimum face value of the reward to be queried.
πŸ‘ Best practice: When you are searching for an amount, we recommend you to enter a minimum and a maximum amount for the search.
maxAmountdoubleSpecify the maximum face value of the reward to be queried.
πŸ‘ Best practice: When you are searching for an amount, we recommend you to enter a minimum and a maximum amount for the search.
currencyCodestringSpecify the currency code of the reward to be queried.
The string must be three characters. We accept AUD (🚧 coming soon), CAD, EUR, GBP, or USD. Only one currency can be specified. Currency can never be changed. The currency defaults to USD if no currency is specified.
utidstringSpecify the unique identifier of the reward to be queried.
ptidstring Specify the unique identifier of the physical delivery template to be queried. ptid is required for orders where the UTID is Reward Type = Reward Link, Fulfillment Type = Physical.
rewardNamestringSpecify the reward name of the reward to be queried.
senderFirstNamestringSpecify the sender's first name to be queried. This information is for tracking purposes only and doesn’t change the email address the reward is sent from when sendEmail: true.
The senderFirstName may have up to 100 characters. You cannot use < or > or / in the name.
senderLastNamestringSpecify the sender's last name to be queried. This information is for tracking purposes only and doesn’t change the email address the reward is sent from when sendEmail: true.
The senderlastName may have up to 100 characters. You cannot use < or > or / in the name..
senderEmailstringSpecify the sender email address to be queried. This information is for tracking purposes only and doesn’t change the email address the reward is sent from when sendEmail: true.
recipientEmailstringSpecify the recipient’s email address to be queried.
recipientFirstNamestringSpecify the recipient’s first name to be queried.
The recipientFirstName may have up to 100 characters. You cannot use < or > or / in the name.
recipientLastNamestringSpecify the recipient’s last name to be queried.
The recipientLastName may have up to 100 characters. You cannot use < or > or / in the name.
sendEmailbooleanSpecify if sendEmail is true or false to be queried.
❗️ Disclaimer: When placing orders, you are responsible to deliver rewards if sendEmail=false. Tango does not deliver the reward email when sendEmail= false.
orderStatusstringSpecify the status to be queried. See order status.
-COMPLETE
-PENDING
-FAILED
-CANCELLED
-PARTIAL
lineItemStatusstringSpecify the status to be queried. See line item status .
-COMPLETE
-PENDING
-FAILED
-CANCELLED
campaignstringSpecify the campaign to be queried.
The string may have up to 100 characters.
notesstringSpecify the notes to be queried.
The string may have up to 150 characters.
lineItemNotesstringSpecify the notes to be queried.
purchaseOrderNumberstringspecify the purchaseOrderNumber to be queried.

The following example shows the payload including pagination when you use GET {URI}/orders:

{
  "page": {
    "number": 0,
    "elementsPerBlock": 0,
    "resultCount": 0,
    "totalCount": 0
  },
  "orders": [
    {
      "referenceOrderID": "string",
      "externalRefID": "string",
      "customerIdentifier": "string",
      "accountIdentifier": "string",
      "accountNumber": "string",
      "amountCharged": {
        "value": 0,
        "currencyCode": "string",
        "exchangeRate": 0,
        "fee": 0,
        "total": 0
      },
      "denomination": {
        "value": 0,
        "currencyCode": "string",
        "exchangeRate": 0,
        "fee": 0,
        "total": 0
      },
      "utid": "string",
      "ptid": "string",
      "rewardName": "string",
      "sender": {
        "firstName": "string",
        "lastName": "string",
        "email": "string"
      },
      "recipient": {
        "email": "string",
        "firstName": "string",
        "lastName": "string",
        "address": {
          "streetLine1": "string",
          "streetLine2": "string",
          "city": "string",
          "stateOrProvince": "string",
          "postalCode": "string",
          "country": "string"
        }
      },
      "emailSubject": "string",
      "message": "string",
      "sendEmail": true,
      "etid": "string",
      "status": "string",
      "campaign": "string",
      "createdAt": "2023-10-12T16:28:34.439Z",
      "notes": "string",
      "orderClientSource": "string",
      "purchaseOrderNumber": "string"
    }
  ]
}

Here's an example payload for when you receive an error:

{
  "timestamp": "2025-02-21T23:23:13.930Z",
  "requestId": "string",
  "path": "string",
  "httpCode": 0,
  "httpPhrase": "string",
  "i18nKey": "string",
  "message": "The error message will show here for error codes ",
  "errors": [
    {}
  ]
}

The possible response codes for this endpoint are:

  • 200 OK
  • 400 Bad request
  • 401 Unauthorized
  • 403 Forbidden

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