---
updatedAt: 2026-10-20T19:24:44.000Z
agentTools:
  projectIndex: https://developers.tangocard.com/llms.txt
---

# Get line items

Retrieving line items can be essential for your business. You may want to prepare financial reports requiring accurate data on sales and expenses, or you may need to analyze sales performance to identify trends and opportunities. Use `GET {URI}/lineItems` endpoint to retrieve the line items and filter the information about all line items ordered on the platform. Using this endpoint, you can see the reward status, reward history, and redemption history, [freeze](https://developers.tangocard.com/docs/freeze-line-items), [unfreeze](https://developers.tangocard.com/docs/unfreeze-line-items), [cancel](https://developers.tangocard.com/docs/cancel-line-items), [reissue ](https://developers.tangocard.com/docs/reissue-line-items) and [resend a specific line item](https://developers.tangocard.com/docs/resend-a-specific-line-item).

<Callout icon="📘" theme="info">
  ### Note:

  Orders and line items include sensitive information such as Personally Identifiable Information (PII). PII must be used for internal logging and support only. To protect your users, do not reveal the orders and rewards sensitive information to any other user, except the reward recipient.
</Callout>

<br />

## Endpoint

Use the following endpoint to retrieve line items ordered under this platform.  This endpoint includes query parameters: `deliveryMethod`, `recipientMobileNumber` , and `deliveryStatus`. You can query rewards using delivery methods such as `EMAIL`, `PHONE`, `ADDRESS`, etc. for better results. See [Delivery methods in Tango API](https://developers.tangocard.com/docs/delivery-methods-in-tango-api) for more information:

| Endpoint              | Description                                       |
| :-------------------- | :------------------------------------------------ |
| `GET {URI}/lineItems` | Get a list of line items placed on this platform. |

<br />

## Parameters

Here are a list of query parameters that helps you filter, sort, and customize the data you retrieve from this endpoint:

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Query params
      </th>

      <th>
        Data type
      </th>

      <th>
        Requirement
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        referenceOrderID
      </td>

      <td>
        string
      </td>

      <td>
        required
      </td>

      <td>
        A unique identifier for the order you want to query. It's a required path parameter for the `GET /orders/{referenceOrderID}` endpoint.
      </td>
    </tr>

    <tr>
      <td>
        externalRefID
      </td>

      <td>
        string
      </td>

      <td>
        optional
      </td>

      <td>
        An idempotent identifier that is strongly recommended to use when creating orders. If you retry a failed order with the same `externalRefID`, Tango will not create a duplicate order. It helps with order tracking, deduplication, and error recovery.
      </td>
    </tr>

    <tr>
      <td>
        utid
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        A unique identifier used to specify the exact reward item (such as gift card brand and denomination) when placing an order. Each reward item in the Tango catalog has a unique utid. You retrieve available utids using the `GET {URI}/catalogs` or `GET {URI}/choiceProducts/{choiceProductUtid}/catalog` endpoints.
      </td>
    </tr>

    <tr>
      <td>
        ptid
      </td>

      <td>
        string
      </td>

      <td>
        required for physical delivery
      </td>

      <td>
        The unique identifier for the Printed Reward Link template provided under templates in Tango portal. Learn how to <Anchor target="_blank" href="https://help.rewardsgenius.com/s/article/HowtocreateacustomPrintTemplate">Manage Printed Reward Link templates</Anchor>. PTID is only applicable when sending Printed Reward Links. Printed Reward Link is printed on paper and physically mailed to your US recipients. . See [Delivery methods](https://developers.tangocard.com/docs/manage-line-items#delivery-method) for more information.
      </td>
    </tr>

    <tr>
      <td>
        etid
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        The unique identifier for the digital template. Only applicable when `deliveryMethod= EMAIL`. See [Delivery methods in Tango API](https://developers.tangocard.com/docs/delivery-methods-in-tango-api) for more information.
      </td>
    </tr>

    <tr>
      <td>
        status
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Shows the **line item** status. It tracks whether a reward was successfully created and delivered. Once the reward is generated, the line item's job is done. See [Line item status](https://developers.tangocard.com/docs/manage-line-items#line-item-status).
      </td>
    </tr>

    <tr>
      <td>
        emailStatus
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        The email status to be retrieved for each line item. The email status tracks whether the reward email reached the recipient's inbox. It shows whether the email was sent, received, why it failed to arrive, was never attempted. The email can only be sent if  `deliveryMethod=EMAIL `.  See [Email status](https://developers.tangocard.com/docs/manage-line-items#email-status).
      </td>
    </tr>

    <tr>
      <td>
        deliveryMethod
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Is set at the line item level for each individual reward within an order. It allows different items in the same order to use different delivery methods.  See [Delivery methods in Tango API](https://developers.tangocard.com/docs/delivery-methods-in-tango-api) for more information.
      </td>
    </tr>

    <tr>
      <td>
        deliveryStatus
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Tracks the physical and digital transport of the reward to the recipient. Think of it as shipment tracking which tracks how the reward reaches the recipient. See [Delivery status](https://developers.tangocard.com/docs/delivery-methods-in-tango-api#delivery-status).
      </td>
    </tr>

    <tr>
      <td>
        orderStatus
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        The order status to be retrieved for each line item.  An order may have multiple line items, each with its own processing state.  See [order status](https://developers.tangocard.com/docs/get-details-for-a-specific-order) .
      </td>
    </tr>

    <tr>
      <td>
        orderSource
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        The order source to be retrieved for each line item. See [Source of orders](https://developers.tangocard.com/docs/manage-orders#source-of-orders).
      </td>
    </tr>

    <tr>
      <td>
        recipientEmail
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        A recipient's email address. It returns line items across all orders.
      </td>
    </tr>

    <tr>
      <td>
        recipientMobileNumber
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Specifies the recipient mobile number to be queried. `MobileNumber `is required if `deliveryMethod `is PHONE. The following validation rules apply to PHONE:

        * The country code must be included.
        * The number format is +CCCPPPPPPPPPPPP, where **C** is the country code (1-3) digits, and **P** is the phone number, up to 12 digits.
        * Only supported in US, Canada, and countries with the country code (+1) and the 10 digits for the phone number.
        * The phone number must follow ITU E.164 format, allowing a maximum of 15 digits including the (+) sign according to the standard compliance.<br />See [Delivery methods in Tango API](https://developers.tangocard.com/docs/delivery-methods-in-tango-api) for more information.
      </td>
    </tr>

    <tr>
      <td>
        recipientFirstName
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        The recipient’s first name. It returns line items across all orders. The string can have up to 100 characters.
      </td>
    </tr>

    <tr>
      <td>
        recipientLastName
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        The recipient’s last name. It returns line items across all orders. The string can have up to 100 characters.
      </td>
    </tr>

    <tr>
      <td>
        accountIdentifier
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        The account identifier used to place an order. It returns line items across all orders (5-100 characters).
      </td>
    </tr>

    <tr>
      <td>
        campaign
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Specifies the campaign to be queried. The maximum length is 1024 characters including the special characters such as @, #, %, etc.
      </td>
    </tr>

    <tr>
      <td>
        purchaseOrderNumber
      </td>

      <td>
        string
      </td>

      <td>
        optional
      </td>

      <td>
        A unique identifier assigned to a purchase order. It's a custom reference string that allows you to associate a Tango reward order with your own internal purchase order system used for tracking.
      </td>
    </tr>

    <tr>
      <td>
        orderNotes
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Specifies the `orderNotes `to be queried.  `orderNotes `is a custom text field that allows you to attach internal notes or comments to an order when placing it via the API. it can be used for internal tracking such as purpose or details of the order.
      </td>
    </tr>

    <tr>
      <td>
        recipientStreetLine1
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Specifies the `recipientStreetLine1 `to be queried. It includes the first line of the recipient’s street address, typically including: street number, street name, and apartment or suite number (if applicable). This field is used when the `deliveryMethod=ADDRESS`.
      </td>
    </tr>

    <tr>
      <td>
        recipientStreetLine2
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Specifies the `recipientStreetLine2 `to be queried. It represents the second line of the recipient’s street address, typically used for: apartment, suite, or unit numbers, building names, and additional address details that don’t fit in `recipientStreetLine1`. This field is used when the `deliveryMethod=ADDRESS`.
      </td>
    </tr>

    <tr>
      <td>
        recipientCity
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Specifies the `recipientCity `to be queried.  It's used to specify the city portion of the recipient’s address when placing an order for physical delivery.
      </td>
    </tr>

    <tr>
      <td>
        recipientStateOrProvince
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Specifies the `recipientStateOrProvince `to be queried. It's used to specify the state or province portion of the recipient’s address when placing an order for physical delivery.
      </td>
    </tr>

    <tr>
      <td>
        recipientPostalCode
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Specifies the `recipientPostalCode `to be queried. It's used to specify the postal or ZIP code of the recipient’s address when placing an order for physical delivery.
      </td>
    </tr>

    <tr>
      <td>
        recipientCountry
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Specifies the `recipientCountry `to be queried.
      </td>
    </tr>

    <tr>
      <td>
        startDate
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Specifies the starting date or date time to be queried according to RFC 3339 standard. For example: "2025-01-01" or "2025-01-01T00:00:00Z" that includes date-time with timezone. See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt)
      </td>
    </tr>

    <tr>
      <td>
        endDate
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Specifies the ending date or date time to be queried according to RFC 3339 standard. For example: "2025-01-01" or "2025-01-01T00:00:00Z" that includes date-time with timezone. See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt)
      </td>
    </tr>

    <tr>
      <td>
        columnSortName
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Is used when querying lists of data like line items to specify which column to sort the results by. The predefined values for this field are as follows. The column sort name defaults to `dateIssued`:

        * **accountNumber**:  The unique identifier of the account from which a reward order was placed. See [account numbers](https://help.rewardsgenius.com/s/article/HowtoAccessYourAccountNumber).
        * **amountIssued**: The amount or value of the reward that was issued.
        * **dateIssued**: Refers to the date and time when a reward order was placed. If `columnSortName `is not specified, it sorts by `dateIssued`.
        * **emailStatus**:  Refers to the status of the email delivery for a reward order. It helps track whether the reward email was successfully sent, is pending, or failed. See [Email status](https://developers.tangocard.com/docs/manage-line-items#email-status).
        * **deliveryMethod**: Refers to the method of reward delivery  such as NONE, EMAIL, PHONE, etc. See [Delivery methods in Tango API](https://developers.tangocard.com/docs/delivery-methods-in-tango-api) for more information.
        * **externalReferenceId**: An optional idempotent field. Tango allows one unique order per external reference ID. You cannot create a duplicate order with the same `externalReferenceId`. See [Idempotent external Reference ID](https://developers.tangocard.com/docs/best-practices#idempotent-external-reference-id).
        * **status**: Refers to the current state of a line item. It helps you track the progress or outcome of a reward transaction.
        * **orderSource**: Refers to the origin or method by which an order was placed such as RA (Tango API), RG (Tango portal), etc. See `orderSource `filed.
        * **orderStatus**: Refers to the current state of a reward order. It helps track the lifecycle of an order from creation to completion or failure such as complete, pending, failed, etc. See `orderStatus `field above.
        * **recipientFirstName**: Is used to specify the first name of the reward recipient when placing an order. The recipient’s first name up to 100 characters.
        * **recipientLastName**:  Is used to specify the last name (surname) of the reward recipient when placing an order. The recipient’s last name up to 100 characters.
        * **rewardName**: Is used to describe or label the reward being issued in an order. It is typically a custom, user-defined string that helps identify the reward in reporting, tracking, or recipient communication.
      </td>
    </tr>

    <tr>
      <td>
        columnSortAscending
      </td>

      <td>
        boolean
      </td>

      <td>

      </td>

      <td>
        -**True**sorts by ascending order for the column specified in `columnSortName`.

        * **False**sorts by descending order for the column specified in `columnSortName`.
        * If `columnSortName `is not specified, it sorts by `dateIssued`.
      </td>
    </tr>

    <tr>
      <td>
        elementsPerBlock
      </td>

      <td>
        int32
      </td>

      <td>

      </td>

      <td>
        Specifies the number of elements returned by page.
      </td>
    </tr>

    <tr>
      <td>
        pagePrevious
      </td>

      <td>
        boolean
      </td>

      <td>

      </td>

      <td>
        * **True** returns the previous page
        * **False** returns the next page
      </td>
    </tr>

    <tr>
      <td>
        pageKeys
      </td>

      <td>
        array of strings
      </td>

      <td>

      </td>

      <td>
        This filter uses keyset paging. To move to the next page, use the `nextPageKeys `object from the `keySetPage `object. The `nextKeyPage `object is an array of two strings.
      </td>
    </tr>

    <tr>
      <td>
        minRemainingBalance
      </td>

      <td>
        number
      </td>

      <td>

      </td>

      <td>
        Filters by minimum remaining balance. Only return line items with remaining balance of equal or more than this amount.
      </td>
    </tr>

    <tr>
      <td>
        maxRemainingBalance
      </td>

      <td>
        number
      </td>

      <td>

      </td>

      <td>
        Filters by maximum remaining balance. Only return line items with remaining balance of equal or less than this amount.
      </td>
    </tr>

    <tr>
      <td>
        hasRemainingBalance
      </td>

      <td>
        boolean
      </td>

      <td>

      </td>

      <td>
        A flag that identifies which line items have remaining balance.

        * If `hasRemainingBalance `is provided (either true or false), it overrides the values of  `minRemainingBalance `and `maxRemainingBalance` values.
        * If `hasRemainingBalance `is blank or null, the system retrieves line items with a min or max remaining balance values.<br />For example, if `minRemainingBalance `is null and `maxRemainingBalance`is 50, the system retrieves all line items with a remaining balances between 0 and 50.
      </td>
    </tr>
  </tbody>
</Table>

<br />

## Examples

The following example shows how the line items are structured in the payload when you use `GET {URI}/lineItems`. The recipient information is included in all returning payloads as well as in any query parameters used to filter or search. Mobile delivery parameters such as the delivery method, recipient phone number, and the delivery status are indicated in the return payload. The reward status indicates whether a reward is frozen or active.

```text GET {URI}/lineItems
{
  "keysetPage": {
    "nextPageKeys": [
      "string"
    ],
    "previousPageKeys": [
      "string"
    ],
    "resultCount": 0,
    "totalCount": 0
  },
  "lineItems": [
    {
      "referenceLineItemID": "string",
      "externalReferenceLineItemID": "string",
      "referenceOrderID": "string",
      "orderSource": "string",
      "status": "string",
      "orderStatus": "string",
      "emailStatus": "string",
      "deliveryMethod": "string",
      "deliveryStatus": "string",
      "rewardStatus": "string",
      "canCancel": true,
      "canFreeze": true,
      "lineNumber": 0,
      "rewardName": "string",
      "amountIssued": {
        "value": 0,
        "currencyCode": "string",
        "exchangeRate": 0,
        "fee": 0,
        "total": 0
      },
      "amountCharged": {
        "value": 0,
        "currencyCode": "string",
        "exchangeRate": 0,
        "fee": 0,
        "total": 0
      },
      "remainingBalance": 0,
      "dateIssued": "2026-01-13T21:40:18.048Z",
      "expirationDate": "2026-01-13T21:40:18.048Z",
      "accountNumber": "string",
      "accountIdentifier": "string",
      "etid": "string",
      "ptid": "string",
      "utid": "string",
      "customerIdentifier": "string",
      "recipient": {
        "firstName": "string",
        "lastName": "string",
        "email": "string",
        "mobileNumber": "string",
        "address": {
          "companyName": "string",
          "streetLine1": "string",
          "streetLine2": "string",
          "city": "string",
          "stateOrProvince": "string",
          "postalCode": "string",
          "country": "string"
        }
      },
      "sender": {
        "firstName": "string",
        "lastName": "string",
        "email": "string"
      },
      "purchaseOrderNumber": "string",
      "campaign": "string",
      "orderNotes": "string",
      "lineItemActionReason": "string",
      "reissuedFromReferenceLineItemId": "string",
      "reissuedToReferenceLineItemId": "string",
      "lineItemErrors": [
        {
          "error_code": "string",
          "error_message": "string"
        }
      ]
    }
  ]
}
```

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

```Text error message
{
  "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": [
    {}
  ]
}
```

## Response codes

The possible response codes for this endpoint are as follows. For details, see [i18nkey codes and their error messages](https://developers.tangocard.com/docs/tango-response-classes#i18nkey-codes-and-their-error-messages):

| Response | Description                                                                                                 |
| :------- | :---------------------------------------------------------------------------------------------------------- |
| 200      | The request was successful.                                                                                 |
| 400      | The server could not understand the request due to invalid syntax.                                          |
| 401      | Authentication is required and has either not been provided or failed.                                      |
| 403      | The server understood the request but refuses to authorize it.                                              |
| 500      | Something went wrong on the server, but the server cannot be more specific about what the exact problem is. |