---
updatedAt: 2025-11-11T23:06:20.000Z
agentTools:
  projectIndex: https://developers.shipup.co/llms.txt
---

# Batch create or update trackers

## POST /v1/trackers

Trackers can be created or updated via a POST method to <https://api.shipup.co/v1/trackers>, which accepts an array of JSON objects, each describing a tracker.

Trackers not found via <code>order\_number</code> and <code>tracking\_number</code> will be created, and those that are found will be updated.

> 🚧
>
> This endpoint offers a simplified way to send data to Shipup. The payload includes data relative to the order (e.g. <code>order\_number</code>) and the tracker (e.g. <code>tracking\_number</code>). Shipup will thus create or update an order, a fulfillment, and a tracker for each tracker of your payload. Please use the [create or update an order](https://developers.shipup.co/reference/create-or-update-an-order) endpoint if you wish to send fulfillment and line item data. You can read more about the differences between those two endpoints [here](https://developers.shipup.co/docs/sending-orders-or-trackers).

## Request payload:

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

      <th>
        DESCRIPTION
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **trackers**
        array of objects, required
      </td>

      <td>
        An array of trackers as described in the next table.\
        The maximum allowed tracker count is 1000.
      </td>
    </tr>
  </tbody>
</Table>

The below table shows which fields you can send per tracker to create or update it

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

      <th>
        DESCRIPTION
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **address\_city**
        string, optional
      </td>

      <td>
        City, town or village
      </td>
    </tr>

    <tr>
      <td>
        **address\_country**\
        string, optional, 2 letter [ISO code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), e.g. <code>FR</code> or <code>GB</code>
      </td>

      <td>
        Country code
      </td>
    </tr>

    <tr>
      <td>
        **address\_name**\
        string, optional
      </td>

      <td>
        Address full name
      </td>
    </tr>

    <tr>
      <td>
        **address\_state**\
        string, optional
      </td>

      <td>
        State code (US and Canada only)
      </td>
    </tr>

    <tr>
      <td>
        **address\_street**\
        string, optional, can include <br /> to have jump of lines
      </td>

      <td>
        Street address, including street number
      </td>
    </tr>

    <tr>
      <td>
        **address\_zip**\
        string, optional
      </td>

      <td>
        Postal code (zip, postcode, Eircode, …)
      </td>
    </tr>

    <tr>
      <td>
        **carrier\_code**\
        string, optional (but highly recommended, see below note)
      </td>

      <td>
        Code uniquely identifying a shipping carrier
      </td>
    </tr>

    <tr>
      <td>
        **carrier\_service\_code**\
        string, optional (but highly recommended, see below note)
      </td>

      <td>
        Code uniquely identifying a shipping carrier's delivery service
      </td>
    </tr>

    <tr>
      <td>
        **custom\_variables**\
        object, optional
      </td>

      <td>
        Tracker custom variables
      </td>
    </tr>

    <tr>
      <td>
        **email**\
        string, optional
      </td>

      <td>
        Customer's email address
      </td>
    </tr>

    <tr>
      <td>
        **expected\_delivery\_at**\
        datetime, optional
      </td>

      <td>
        Expected delivery time for the package  

        If provided, this date will be used as the `merchant` expected delivery. Read more about [sending expected deliveries](https://developers.shipup.co/reference/sending-expected-deliveries)
      </td>
    </tr>

    <tr>
      <td>
        **first\_name**\
        string, optional
      </td>

      <td>
        Customer's first name
      </td>
    </tr>

    <tr>
      <td>
        **language\_code**\
        string, optional,\
        see [available values](https://developers.shipup.co/reference/available-languages)
      </td>

      <td>
        Customer's language\
        Defaults to your company's main language if not provided
      </td>
    </tr>

    <tr>
      <td>
        **last\_name**\
        string, optional
      </td>

      <td>
        Customer's last name
      </td>
    </tr>

    <tr>
      <td>
        **mute\_notifications**\
        boolean, optional
      </td>

      <td>
        If set to <code>true</code>, no notification will be sent for this tracker. Defaults to <code>false</code>
      </td>
    </tr>

    <tr>
      <td>
        **order\_date**\
        datetime, optional
      </td>

      <td>
        Time at which the order was placed
      </td>
    </tr>

    <tr>
      <td>
        **order\_number**\
        string, required
      </td>

      <td>
        Shop order reference
      </td>
    </tr>

    <tr>
      <td>
        **phone**\
        string, optional
      </td>

      <td>
        Customer's mobile phone. The format will be handled by Shipup.
      </td>
    </tr>

    <tr>
      <td>
        **tracking\_number**\
        string, required
      </td>

      <td>
        Package tracking number
      </td>
    </tr>

    <tr>
      <td>
        **untracked\_carrier\_name**\
        string, optional
      </td>

      <td>
        Carrier name to be displayed as a fallback if Shipup can't find a matching carrier
      </td>
    </tr>
  </tbody>
</Table>

```json valid payload
{
  "trackers": [
    {
      "address_city": "Paris",
      "address_country": "France",
      "address_name": "Alice Dubois",
      "address_state": null,
      "address_street": "12, rue de Cléry",
      "address_zip": "75002",
      "carrier_code": "dpd_fr",
      "custom_variables": {
        "internal_variable": 3
      },
      "expected_delivery_at": 1530468000,
      "email": "alice@gmail.com",
      "first_name": "Alice",
      "language_code": "fr",
      "last_name": "Dubois",
      "mute_notifications": false,
      "order_date": 1530208800,
      "order_number": "1234",
      "tracking_number": "250059116919212260",
      "untracked_carrier_name": "DPD France"
    },
    {
      "carrier_code": "ups",
      "email": "max@gmail.com",
      "tracking_number": "1Z498710°3884902342"
    }
  ]
}
```
```json response
// status
201
```

```json invalid payload
// ⚠️ This payload is invalid.
// Do not use it as an example

{ 
   "trackers": [{
     "email": 123,
     "tracking_number": 456,
     "order_date": 1530208800
   }]
}
```
```json response
// status
400

// body
{ 
   "error": "Wrong data type for keys: tracking_number, email"
}
```

> 📘 Importance of carrier\_code
>
> When you import tracker data into Shipup using our tracker FTP integration, it's important to include the <code>carrier\_code</code> field. You can find available values for this field [here](https://developers.shipup.co/reference/carrier-codes). If you fail to do so, Shipup will try to guess the carrier based on the tracking number but this process is prone to error.