> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# trackerExportStart

> Write the store's trackers to a CSV in the background and return the export at once; poll `trackerExport` for the file, which usually takes seconds to a few minutes. It takes the filters `trackers` takes and matches them as the Shipments page does: the file lists the trackers `trackers` lists for them, except that trackingNumber ignores letter case. The file is in no set order, and a tracker created or changed in the last few seconds may not be in it yet. No email is sent, and a store may run several exports at once; each start counts against a per-store export quota shared with segment exports, and over it returns THROTTLED. A retry that returns the export an earlier attempt with its idempotencyKey started doesn't use up the quota, but is still refused with THROTTLED while the quota is empty. Throws IDEMPOTENCY_KEY_REUSED and TRY_AGAIN as idempotencyKey describes.

**Required scopes:** [`orders_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-orders_read)

**Store must have one of:** `ORDER_TRACKING`

## Arguments

**columns** `[\[TrackerExportColumn!\]](/docs/api-reference/v3/reference/orders/tracker-export-column)`

The columns to write, in this order. Omitted: every column, starting with TRACKER\_ID.

**createdAtAfter** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Only return trackers created at or after this ISO-8601 instant.

**createdAtBefore** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Only return trackers created at or before this ISO-8601 instant.

**idempotencyKey** `String`

A key you choose, 1 to 400 characters, that makes a retry safe. It never expires: repeating the start with the same key returns the export it started instead of starting another, even once that export has FAILED; start again with a new key. When an export with a key couldn't start, the start throws TRY\_AGAIN (503) and keeps the export; repeat it with the same key to start that export. The same key with another request, such as other filters or a segment export, throws IDEMPOTENCY\_KEY\_REUSED (422).

**status** `[TrackerStatus](/docs/api-reference/v3/reference/orders/tracker-status)`

Only return trackers with this status. `UNKNOWN` also matches trackers whose stored status Redo does not recognize.

**trackingNumber** `String`

Only export trackers with this carrier tracking number, in any letter case, as the Shipments page matches it. `trackers` matches it exactly, so the file can list a tracker whose number differs only in case.

**updatedAtAfter** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Only return trackers updated at or after this ISO-8601 instant.

**updatedAtBefore** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Only return trackers updated at or before this ISO-8601 instant.

## Returns

**trackerExportStart** `[TrackerExport!](/docs/api-reference/v3/reference/orders/tracker-export)` *required*

A CSV of the store's trackers, one row per tracker, written in the background with the columns the Shipments page's export writes plus each tracker's id. The file is available for 7 days after the export starts; after that the export reads FAILED with RESULT\_EXPIRED.

**fields**

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the job was started.

**error** `[JobError](/docs/api-reference/v3/reference/common/job-error)`

Why the job failed. Null unless `status` is FAILED.

**fields**

**code** `String!` *required*

A stable code in SCREAMING\_SNAKE\_CASE. Branch on it, not on `message`.

**message** `String!` *required*

What went wrong, in words.

**file** `[File](/docs/api-reference/v3/reference/common/file)`

The CSV, once SUCCEEDED. Its link works for up to an hour; read the export again for a fresh one. Null otherwise.

**fields**

**contentType** `String!` *required*

The file's media type, such as text/csv.

**fileName** `String`

The name the file downloads as. Null when the file has none.

**height** `Int`

An image's height in pixels. Null for other files.

**sizeBytes** `Int`

The file's size in bytes. Null when it wasn't recorded.

**url** `String!` *required*

Where to download the file. Signed and short-lived for a private file (see `urlExpiresAt`); stable for a public one.

**urlExpiresAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When `url` stops working. Null for a public file, whose `url` doesn't expire.

**width** `Int`

An image's width in pixels. Null for other files.

**finishedAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the job finished. Null while it is going.

**id** `ID!` *required*

Poll the job again with this id.

**rowCount** `Int`

How many trackers the file has. Null until SUCCEEDED.

**status** `[JobStatus!](/docs/api-reference/v3/reference/common/job-status)` *required*

Where the job stands.

## Errors

Besides the [errors any request can return](https://developers.redo.com/docs/api-reference/v3/errors.md), this operation fails with these codes in `extensions.code`.

| Code | HTTP status | Meaning | Retry |
| - | - | - | - |
| `BAD_USER_INPUT` | `400` | An argument is invalid, or names something the store doesn't have. The message says which. Nothing was written. | Fix the input the message names, then send it again. |
| `IDEMPOTENCY_KEY_REUSED` | `422` | The idempotencyKey was already used for a different request. Nothing was written. | Send the new request with a new idempotencyKey, or resend the first request unchanged to get its result. |
| `TRY_AGAIN` | `503` | The change couldn't start for a passing reason, and nothing was written or sent. | Send the same request again after a short wait, with the same idempotencyKey if it has one. |

## Example

```graphql theme={null}
mutation {
  trackerExportStart(columns: CARRIER, createdAtAfter: "...", createdAtBefore: "...", idempotencyKey: "...", status: AVAILABLE_FOR_PICKUP, trackingNumber: "...", updatedAtAfter: "...", updatedAtBefore: "...") {
    createdAt
    finishedAt
    id
    rowCount
    status
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.