# Inventory levels

> How many of a variant you can sell: the seller's stock plus your warehouse shelf.

Source: https://www.ninjabuy.com/business/docs/api/inventory-levels

How many of a variant you can sell right now: the seller's stock in China, plus anything you keep in our warehouse.

Levels change when we read a listing again or your shelf moves. [product.out\_of\_stock](https://www.ninjabuy.com/business/docs/webhooks.md#product-out-of-stock) tells you when one reaches 0; there is no event for a restock yet.

Endpoints

- GET /v1/inventory\_levels List inventory levels
- GET /v1/inventory\_levels/{variant} Retrieve a variant's level

## The Inventory level object

- `variant, sku` string

  What it counts: the variant id an order's lines answer, and the seller's SKU.

- `seller_in_stock` boolean

  Whether the seller can sell it, as of checked\_at.

- `seller_count` integer|null

  The seller's own count, when the listing shows one.

- `available` integer

  What your store should show: the seller's count, capped at 100, since we buy on demand. 0 when the seller is out.

- `checked_at` string|null

  When we last read the listing.

inventory\_level

```json
{  "variant": "var_d2VpZGlhbi03NzUwOTcwODU2OjUxODcyMDk1NTQ",  "sku": "5187209554",  "seller_in_stock": true,  "seller_count": 812,  "available": 100,  "checked_at": "2026-11-04T09:12:40Z"}
```

## List inventory levels

GET /v1/inventory\_levels

Every variant you sell, or one product's.

Scope inventory:read

### Query parameters

- `product` string

  Optional. A product id.

- `limit, cursor`

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

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

Response · 200

```
HTTP/2 200 OK​{  "data": [    {      "variant": "var_d2VpZGlhbi03NzUwOTcwODU2OjUxODcyMDk1NTQ",      "sku": "5187209554",      "seller_in_stock": true,      "seller_count": 812,      "available": 100,      "checked_at": "2026-11-04T09:12:40Z"    },    {      "variant": "var_41j0",      "sku": "5187209555",      "seller_in_stock": false,      "seller_count": 0,      "available": 0,      "checked_at": "2026-11-04T09:12:40Z"    }  ],  "has_more": false,  "cursor": null}
```

## Retrieve a variant's level

GET /v1/inventory\_levels/{variant}

One variant, as last read. Reading it does not read the marketplace again.

Scope inventory:read

### Path parameters

- `variant` string required

  A variant id.

### Errors

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

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

Response · 200

```
HTTP/2 200 OK​{  "variant": "var_d2VpZGlhbi03NzUwOTcwODU2OjUxODcyMDk1NTQ",  "sku": "5187209554",  "seller_in_stock": true,  "seller_count": 812,  "available": 100,  "checked_at": "2026-11-04T09:12:40Z"}
```

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