# Fulfillment orders

> The lines that leave in one parcel: packaging, warehouse checks, hold and release.

Source: https://www.ninjabuy.com/business/docs/api/fulfillment-orders

The lines of an order that we pack into one parcel, with the box they go in and our check of each item.

> 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.

- Most orders have one. An order whose items arrive far apart, or that you split, has more.
- A Shopify order arrives as Shopify's own fulfillment request. We accept it when every line maps to a SKU ([Variants](https://www.ninjabuy.com/business/docs/api/variants.md)), and turn it down naming the lines that do not, so Shopify keeps it with you.
- An item that fails our check waits for your choice before it ships; [qc.issue](https://www.ninjabuy.com/business/docs/webhooks.md#qc-issue), the event that tells you, is coming soon.

Endpoints

- GET /v1/fulfillment\_orders Coming soon List fulfillment orders
- GET /v1/fulfillment\_orders/{id} Coming soon Retrieve a fulfillment order
- POST /v1/fulfillment\_orders/{id}/hold Coming soon Hold
- POST /v1/fulfillment\_orders/{id}/release Coming soon Release
- POST /v1/fulfillment\_orders/{id}/cancel Coming soon Cancel

## The Fulfillment order object

- `id` string

  Starts fo\_.

- `order` string

  The order it belongs to.

- `status` string

  open (waiting for its items), in\_progress (being packed), on\_hold, closed (shipped) or cancelled.

- `request` object|null

  For a Shopify order: Shopify's fulfillment order and our answer to it, accepted, or rejected with the store variants that are not mapped to a SKU.

- `hold` object|null

  reason and note, while on hold.

- `packaging` string|null

  The box or mailer it goes in.

- `lines[].qc` object

  Our check: pending, passed or issue, with the photos and when.

- `shipment` string|null

  Set once it leaves.

fulfillment\_order

```json
{  "id": "fo_7k2m",  "order": "ord_3n7q",  "status": "in_progress",  "request": {    "channel": "shopify",    "external_id": "gid://shopify/FulfillmentOrder/6650012",    "status": "accepted",    "unmapped": []  },  "hold": null,  "packaging": "pkg_acme_mailer",  "lines": [    {      "line": "lin_9a2c",      "sku": "5187209554",      "quantity": 1,      "qc": {        "status": "passed",        "photos": [          "https://media.ninjabuy.com/qc/ord_3n7q/1.webp",          "https://media.ninjabuy.com/qc/ord_3n7q/2.webp"        ],        "checked_at": "2026-11-02T03:20:11Z"      }    }  ],  "shipment": null,  "created_at": "2026-11-01T09:14:03Z"}
```

## List fulfillment orders

GET /v1/fulfillment\_orders Coming soon

Newest first. Filter by order or status.

Scope orders:read

### Query parameters

- `order` string

  Optional. An order id.

- `status` string

  Optional.

- `limit, cursor`

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

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

Response · 200

```
HTTP/2 200 OK​{  "data": [    {      "id": "fo_7k1x",      "order": "ord_3n6z",      "status": "on_hold",      "hold": { "reason": "combine" }    }  ],  "has_more": false,  "cursor": null}
```

## Retrieve a fulfillment order

GET /v1/fulfillment\_orders/{id} Coming soon

Its lines, our check of each, the packaging and the shipment.

Scope orders:read

### Path parameters

- `id` string required

  The fulfillment order's id.

### Errors

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

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

Response · 200

```
HTTP/2 200 OK​{  "id": "fo_7k2m",  "order": "ord_3n7q",  "status": "in_progress",  "request": {    "channel": "shopify",    "external_id": "gid://shopify/FulfillmentOrder/6650012",    "status": "accepted",    "unmapped": []  },  "hold": null,  "packaging": "pkg_acme_mailer",  "lines": [    {      "line": "lin_9a2c",      "sku": "5187209554",      "quantity": 1,      "qc": {        "status": "passed",        "photos": [          "https://media.ninjabuy.com/qc/ord_3n7q/1.webp",          "https://media.ninjabuy.com/qc/ord_3n7q/2.webp"        ],        "checked_at": "2026-11-02T03:20:11Z"      }    }  ],  "shipment": null,  "created_at": "2026-11-01T09:14:03Z"}
```

## Hold

POST /v1/fulfillment\_orders/{id}/hold Coming soon

Keeps it from shipping until you release it: to wait for another order to the same customer, or for stock you are sending in. Free storage on your shelf still runs.

Scope orders:write

### Path parameters

- `id` string required

  The fulfillment order's id.

### Body

- `reason` string required

  combine, wait\_for\_stock or other.

- `note` string

  Optional. A note for yourself, saved with the hold.

### Errors

| Status | Type          | When                                       |
| ------ | ------------- | ------------------------------------------ |
| 404    | not-found     | No such fulfillment order on this account. |
| 409    | invalid-state | It is closed or cancelled.                 |

```bash
curl -X POST "https://www.ninjabuy.com/api/v1/fulfillment_orders/fo_7k2m/hold" \  -H "Authorization: Bearer " \  -H "NinjaBuy-Version: 2026-11" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{ "reason": "combine" }'
```

Response · 200

```
HTTP/2 200 OK​{  "id": "fo_7k2m",  "order": "ord_3n7q",  "status": "on_hold",  "request": {    "channel": "shopify",    "external_id": "gid://shopify/FulfillmentOrder/6650012",    "status": "accepted",    "unmapped": []  },  "hold": {    "reason": "combine",    "note": null,    "since": "2026-11-02T04:00:00Z"  },  "packaging": "pkg_acme_mailer",  "lines": [    {      "line": "lin_9a2c",      "sku": "5187209554",      "quantity": 1,      "qc": {        "status": "passed",        "photos": [          "https://media.ninjabuy.com/qc/ord_3n7q/1.webp",          "https://media.ninjabuy.com/qc/ord_3n7q/2.webp"        ],        "checked_at": "2026-11-02T03:20:11Z"      }    }  ],  "shipment": null,  "created_at": "2026-11-01T09:14:03Z"}
```

## Release

POST /v1/fulfillment\_orders/{id}/release Coming soon

Lets a held fulfillment order go on.

Scope orders:write

### Path parameters

- `id` string required

  The fulfillment order's id.

### Errors

| Status | Type          | When                                       |
| ------ | ------------- | ------------------------------------------ |
| 404    | not-found     | No such fulfillment order on this account. |
| 409    | invalid-state | It is not on hold.                         |

```bash
curl -X POST "https://www.ninjabuy.com/api/v1/fulfillment_orders/fo_7k2m/release" \  -H "Authorization: Bearer " \  -H "NinjaBuy-Version: 2026-11" \  -H "Idempotency-Key: $(uuidgen)"
```

Response · 200

```
HTTP/2 200 OK​{  "id": "fo_7k2m",  "order": "ord_3n7q",  "status": "in_progress",  "request": {    "channel": "shopify",    "external_id": "gid://shopify/FulfillmentOrder/6650012",    "status": "accepted",    "unmapped": []  },  "hold": null,  "packaging": "pkg_acme_mailer",  "lines": [    {      "line": "lin_9a2c",      "sku": "5187209554",      "quantity": 1,      "qc": {        "status": "passed",        "photos": [          "https://media.ninjabuy.com/qc/ord_3n7q/1.webp",          "https://media.ninjabuy.com/qc/ord_3n7q/2.webp"        ],        "checked_at": "2026-11-02T03:20:11Z"      }    }  ],  "shipment": null,  "created_at": "2026-11-01T09:14:03Z"}
```

## Cancel

POST /v1/fulfillment\_orders/{id}/cancel Coming soon

Cancels the parcel while nothing has been packed into it. Its items stay on your shelf, to ship later or with another order. To cancel the purchase too, cancel the order.

Scope orders:write

### Path parameters

- `id` string required

  The fulfillment order's id.

### Errors

| Status | Type          | When                                       |
| ------ | ------------- | ------------------------------------------ |
| 404    | not-found     | No such fulfillment order on this account. |
| 409    | invalid-state | It is packed or shipped.                   |

```bash
curl -X POST "https://www.ninjabuy.com/api/v1/fulfillment_orders/fo_7k2m/cancel" \  -H "Authorization: Bearer " \  -H "NinjaBuy-Version: 2026-11" \  -H "Idempotency-Key: $(uuidgen)"
```

Response · 200

```
HTTP/2 200 OK​{  "id": "fo_7k2m",  "order": "ord_3n7q",  "status": "cancelled",  "request": {    "channel": "shopify",    "external_id": "gid://shopify/FulfillmentOrder/6650012",    "status": "accepted",    "unmapped": []  },  "hold": null,  "packaging": "pkg_acme_mailer",  "lines": [    {      "line": "lin_9a2c",      "sku": "5187209554",      "quantity": 1,      "qc": {        "status": "passed",        "photos": [          "https://media.ninjabuy.com/qc/ord_3n7q/1.webp",          "https://media.ninjabuy.com/qc/ord_3n7q/2.webp"        ],        "checked_at": "2026-11-02T03:20:11Z"      }    }  ],  "shipment": null,  "created_at": "2026-11-01T09:14:03Z"}
```

- 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)
