# Shipments

> Parcels on their way, with tracking sent back to your store.

Source: https://www.ninjabuy.com/business/docs/api/shipments

A parcel on its way to your customer. Its tracking goes back to the store the order came from, so your customer hears from you, not from us.

> Coming soon
>
> This is the plan for these routes, and they answer 404 until they are built. The [orders](https://www.ninjabuy.com/business/docs/api/orders.md), [balance](https://www.ninjabuy.com/business/docs/api/balance.md) and [inventory level](https://www.ninjabuy.com/business/docs/api/inventory-levels.md) routes work today.

[order.shipped](https://www.ninjabuy.com/business/docs/webhooks.md#order-shipped) fires when the parcel's tracking is on the order in your store, with the tracking.

Endpoints

- GET /v1/shipments Coming soon List shipments
- GET /v1/shipments/{id} Coming soon Retrieve a shipment
- GET /v1/shipments/{id}/tracking Coming soon Retrieve tracking events

## The Shipment object

- `id` string

  Starts shp\_.

- `order, fulfillment_order` string

  What it carries.

- `lane` string

  saver or fast.

- `carrier, tracking_number, tracking_url` string

  Tracking, ready for your customer.

- `weight_g` integer

  What the parcel weighed when we packed it.

- `shipping_charged` money

  Shipping, handling fee and tax for the weighed parcel, in CN¥: what your balance paid.

- `pushed_to_channel` boolean

  Whether the store the order came from has the tracking. Shopify then emails it to your customer.

- `status` string

  in\_transit, out\_for\_delivery, delivered, or exception (held, returned, lost).

- `shipped_at, delivered_at` string|null

  When it left us, and when the carrier says it arrived.

shipment

```json
{  "id": "shp_5r8w",  "order": "ord_3n7q",  "fulfillment_order": "fo_7k2m",  "lane": "saver",  "carrier": "YunExpress",  "tracking_number": "YT2630812345678",  "tracking_url": "https://t.17track.net/en#nums=YT2630812345678",  "weight_g": 176,  "shipping_charged": { "amount": "133.38", "currency": "CNY" },  "pushed_to_channel": true,  "status": "in_transit",  "shipped_at": "2026-11-03T06:00:00Z",  "delivered_at": null}
```

## List shipments

GET /v1/shipments Coming soon

Newest first. Filter by status to find the ones that need you.

Scope orders:read

### Query parameters

- `status` string

  Optional.

- `order` string

  Optional. An order id.

- `shipped_since` string

  Optional. A time.

- `limit, cursor`

  [Pagination](https://www.ninjabuy.com/business/docs/api.md#pagination)

```bash
curl "https://www.ninjabuy.com/api/v1/shipments?status=exception" \  -H "Authorization: Bearer " \  -H "NinjaBuy-Version: 2026-11"
```

Response · 200

```
HTTP/2 200 OK​{  "data": [    {      "id": "shp_5q1d",      "order": "ord_3m2b",      "tracking_number": "YT2630811190042",      "status": "exception"    }  ],  "has_more": false,  "cursor": null}
```

## Retrieve a shipment

GET /v1/shipments/{id} Coming soon

One parcel, with its tracking.

Scope orders:read

### Path parameters

- `id` string required

  The shipment's id.

### Errors

| Status | Type      | When                              |
| ------ | --------- | --------------------------------- |
| 404    | not-found | No such shipment on this account. |

```bash
curl "https://www.ninjabuy.com/api/v1/shipments/shp_5r8w" \  -H "Authorization: Bearer " \  -H "NinjaBuy-Version: 2026-11"
```

Response · 200

```
HTTP/2 200 OK​{  "id": "shp_5r8w",  "order": "ord_3n7q",  "fulfillment_order": "fo_7k2m",  "lane": "saver",  "carrier": "YunExpress",  "tracking_number": "YT2630812345678",  "tracking_url": "https://t.17track.net/en#nums=YT2630812345678",  "weight_g": 176,  "shipping_charged": { "amount": "133.38", "currency": "CNY" },  "pushed_to_channel": true,  "status": "in_transit",  "shipped_at": "2026-11-03T06:00:00Z",  "delivered_at": null}
```

## Retrieve tracking events

GET /v1/shipments/{id}/tracking Coming soon

The carrier's scans, oldest first, in English.

Scope orders:read

### Path parameters

- `id` string required

  The shipment's id.

### Errors

| Status | Type      | When                              |
| ------ | --------- | --------------------------------- |
| 404    | not-found | No such shipment on this account. |

```bash
curl "https://www.ninjabuy.com/api/v1/shipments/shp_5r8w/tracking" \  -H "Authorization: Bearer " \  -H "NinjaBuy-Version: 2026-11"
```

Response · 200

```
HTTP/2 200 OK​{  "shipment": "shp_5r8w",  "status": "in_transit",  "events": [    {      "at": "2026-11-03T06:00:00Z",      "where": "Shenzhen, CN",      "status": "in_transit",      "description": "Left the NinjaBuy warehouse"    },    {      "at": "2026-11-05T22:10:00Z",      "where": "Shenzhen, CN",      "status": "in_transit",      "description": "Departed the origin country"    },    {      "at": "2026-11-09T19:40:00Z",      "where": "Los Angeles, US",      "status": "in_transit",      "description": "Arrived in the destination country"    }  ]}
```

- The API is open on request. Our team sets up your Business account and issues its API keys.

  [Contact sales](https://www.ninjabuy.com/business#contact)
