# Products

> List, update, delete and push your NinjaBuy Business products to Shopify.

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

A listing you saved from an [import](https://www.ninjabuy.com/business/docs/api/imports.md), with your title and prices and the stores it sells on.

- Shopify is where products are pushed. Orders from the marketplaces your Shopify store sells on reach us through Shopify too: [Connect a store](https://www.ninjabuy.com/business/docs/channels/shopify.md).
- A WooCommerce or Wix store keeps its own products and sends its orders with [Create an order](https://www.ninjabuy.com/business/docs/api/orders.md#create-order).

Endpoints

- GET /v1/products List products
- GET /v1/products/{id} Retrieve a product
- PATCH /v1/products/{id} Coming soon Update a product
- POST /v1/products/{id}/push Coming soon Push to Shopify
- DELETE /v1/products/{id} Coming soon Delete a product

## The Product object

- `id` string

  Starts prd\_.

- `title` string

  Your title. The seller's stays on the import.

- `status` string

  Saved products are active. Check each variant for current seller stock.

- `source` object

  Marketplace, listing link and supplier.

- `options[]` array

  Option names from the source listing.

- `channels[]` array

  Empty until a channel push is supported by this API.

- `import` string

  The import it was saved from.

- `store` string|null

  The connected WooCommerce site that saved it; null for a key you made yourself. Every site of the team can sell it.

product

```json
{  "id": "prd_8f2k",  "title": "Heavyweight Washed Hoodie",  "status": "active",  "source": {    "marketplace": "weidian",    "url": "https://weidian.com/item.html?itemID=7750970856",    "seller": "Ruoyi Studio"  },  "options": ["Color", "Size"],  "variants_count": 6,  "channels": [],  "import": "imp_2c9d",  "store": null,  "created_at": "2026-11-04T09:20:01Z",  "updated_at": "2026-11-04T09:20:03Z"}
```

## List products

GET /v1/products

Your products, newest first.

Scope products:read

### Query parameters

- `limit, cursor`

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

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

Response · 200

```
HTTP/2 200 OK​{  "data": [    {      "id": "prd_8f2k",      "title": "Heavyweight Washed Hoodie",      "status": "active",      "variants_count": 6    },    {      "id": "prd_1x0a",      "title": "Canvas Tote",      "status": "active",      "variants_count": 3    }  ],  "has_more": true,  "cursor": "c_1x0a"}
```

## Retrieve a product

GET /v1/products/{id}

One product with its source. Its variants, prices and stock are on their own route.

Scope products:read

### Path parameters

- `id` string required

  The product's id.

### Errors

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

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

Response · 200

```
HTTP/2 200 OK​{  "id": "prd_8f2k",  "title": "Heavyweight Washed Hoodie",  "status": "active",  "source": {    "marketplace": "weidian",    "url": "https://weidian.com/item.html?itemID=7750970856",    "seller": "Ruoyi Studio"  },  "options": ["Color", "Size"],  "variants_count": 6,  "channels": [],  "import": "imp_2c9d",  "store": null,  "created_at": "2026-11-04T09:20:01Z",  "updated_at": "2026-11-04T09:20:03Z"}
```

## Update a product

PATCH /v1/products/{id} Coming soon

Change the title or description, or pause and resume it. Send only what changes. Prices are per variant ([Variants](https://www.ninjabuy.com/business/docs/api/variants.md)); a pushed product carries the change to your store on its next push.

Scope products:write

### Path parameters

- `id` string required

  The product's id.

### Body

- `title` string

  Optional.

- `description` string

  Optional. HTML your store shows.

- `sync_rule` string

  Optional. A sync rule id; the default rule when null.

### Errors

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

```bash
curl -X PATCH "https://www.ninjabuy.com/api/v1/products/prd_8f2k" \  -H "Authorization: Bearer " \  -H "NinjaBuy-Version: 2026-11" \  -H "Content-Type: application/json" \  -d '{ "status": "paused" }'
```

Response · 200

```
HTTP/2 200 OK​{  "id": "prd_8f2k",  "title": "Heavyweight Washed Hoodie",  "status": "paused",  "source": {    "marketplace": "weidian",    "url": "https://weidian.com/item.html?itemID=7750970856",    "seller": "Ruoyi Studio"  },  "options": ["Color", "Size"],  "variants_count": 6,  "channels": [],  "import": "imp_2c9d",  "store": null,  "created_at": "2026-11-04T09:20:01Z",  "updated_at": "2026-11-04T09:20:03Z"}
```

## Push to Shopify

POST /v1/products/{id}/push Coming soon

Lists the product on your linked Shopify store: one Shopify product, a variant per SKU you kept, its photos, each variant stocked at the Fulfilled by NinjaBuy location, so the orders for it come to us.

- The first push creates it as a draft: the title and photos came from the supplier's listing, so read them before your buyers do, then publish in Shopify.
- Pushing again updates the same Shopify product: prices and stock are set again, variants you dropped are removed. Status, title, description and photos stay as you left them in Shopify unless you send new ones.
- Stock is the seller's count, capped at 100: we buy on demand, so it is how many orders Shopify takes before it shows sold out.
- Your store must sell in US$, since that is what the prices are in. Sold-out variants are skipped and named in skipped\[].

Scope products:write

### Path parameters

- `id` string required

  The product's id.

### Body

- `shop` string

  Which linked store, as acme-goods.myshopify.com. Needed only when you linked several.

- `title, description` string

  Optional. Sent to Shopify only when you send them.

### Errors

| Status | Type             | When                                                                                                 |
| ------ | ---------------- | ---------------------------------------------------------------------------------------------------- |
| 409    | no-linked-store  | No Shopify store is linked to this account, or several are and `shop` is missing.                    |
| 409    | store-not-ready  | The store's access lapsed, or our location is not set up yet: open the NinjaBuy app in Shopify once. |
| 422    | store-currency   | The store does not sell in US$.                                                                      |
| 422    | too-many-options | The listing has more than three options; Shopify takes three.                                        |
| 422    | unprocessable    | Every variant is sold out, or Shopify refused a field; detail passes its words on.                   |

```bash
curl -X POST "https://www.ninjabuy.com/api/v1/products/prd_8f2k/push" \  -H "Authorization: Bearer " \  -H "NinjaBuy-Version: 2026-11" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{ "shop": "acme-goods.myshopify.com" }'
```

Response · 200

```
HTTP/2 200 OK​{  "channel": "shopify",  "shop": "acme-goods.myshopify.com",  "external_id": "gid://shopify/Product/8812042",  "status": "draft",  "created": true,  "variants": 5,  "skipped": [{ "sku": "5187209555", "reason": "sold_out" }],  "admin_url": "https://admin.shopify.com/store/acme-goods/products/8812042"}
```

## Delete a product

DELETE /v1/products/{id} Coming soon

Stops syncing it and sets its stock to 0 on your channels; the Shopify product stays for you to archive. Orders already placed still ship.

Scope products:write

### Path parameters

- `id` string required

  The product's id.

### Errors

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

```bash
curl -X DELETE "https://www.ninjabuy.com/api/v1/products/prd_8f2k" \  -H "Authorization: Bearer " \  -H "NinjaBuy-Version: 2026-11"
```

Response · 200

```
HTTP/2 200 OK​{ "id": "prd_8f2k", "deleted": true }
```

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