API reference
Products
On this page
Products with their sizes, prices and stock. A product made through the API starts as a draft unless it is complete and you ask to publish it. Nothing is deleted: removing a product archives it, and it can be restored in the admin. Stock and order amounts are never accepted here.
The product object#
The fields marked expand=full are only included when you add ?expand=full to the read calls. Answers to writes and webhooks always include them.
| Field | Type | Included | Meaning |
|---|---|---|---|
id | integer | Always | The product id. Ids never change and are never reused. |
sku | string or null | Always | The product SKU. null when the product has none. |
name | string | Always | The product name. |
slug | string | Always | The web address part of the product page. |
active | boolean | Always | true when the product is published. false for a draft or an archived product (status tells which). |
category | string or null | Always | The name of the category. |
url | string | Always | The address of the product page in the shop. |
short | string or null | Always | The short description. |
images | array | Always | Addresses of the product pictures. |
variants | array | Always | The sizes of the product. |
variants[].id | integer | Always | The size id. |
variants[].label | string | Always | The size label, for example "250 g". |
variants[].price | integer | Always | Selling price, in whole units of the store's currency. |
variants[].mrp | integer | Always | MRP, in whole units of the store's currency. |
variants[].stock | integer | Always | Units available to sell. Read only: stock changes only through stock adjustments. |
status | string | expand=full | published, draft or archived. |
category_id | integer or null | expand=full | The category id. |
hsn | string or null | expand=full | HSN code used on GST invoices. |
gst_rate | number or null | expand=full | GST rate in percent. null means the store default applies. |
sort | integer | expand=full | Position in lists (lower first). |
created_at | string | expand=full | When the product was created (ISO 8601, UTC). |
updated_at | string | expand=full | When the product was last changed (ISO 8601, UTC). |
description | string | expand=full | The description as plain text. |
List products#
GET/api/v1/productsread:products
Products with their sizes (variants), prices and stock, in id order. Drafts and archived products are included (see the active field, or use expand=full for status). The default answer is exactly the one this API has always given; expand=full adds fields.
Query parameters
| Name | Type | Meaning |
|---|---|---|
sku | string | Only the product with this SKU. |
status | string | published, draft or archived. One of: published, draft, archived |
category_id | integer | Only products in this category. |
expand | string | full: add status, category_id, hsn, gst_rate, sort, created_at, updated_at and description. One of: full |
limit | integer | Rows per page, 1 to 100 (default 25). per_page works too. |
page | integer | Page number, starting at 1. |
updated_since | string | Only rows changed at or after this time (ISO 8601, for example 2026-11-21T10:00:00Z, or a date). |
Example request
curl -s "https://yourstore.example.com/api/v1/products?status=published&expand=full&limit=25" \
-H "Authorization: Bearer YOUR_API_KEY"<?php
$ch = curl_init('https://yourstore.example.com/api/v1/products?status=published&expand=full&limit=25');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
],
]);
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($status >= 400) {
// $response['error']['code'] and $response['error']['message'] say what to fix
}// Node.js 18 or newer (fetch is built in). Save as call.mjs and run: node call.mjs
const res = await fetch('https://yourstore.example.com/api/v1/products?status=published&expand=full&limit=25', {
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const json = await res.json();
if (!res.ok) {
// json.error.code and json.error.message say what to fix
}# Python 3 with the requests library (pip install requests)
import requests
res = requests.get(
"https://yourstore.example.com/api/v1/products?status=published&expand=full&limit=25",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
data = res.json()
if not res.ok:
# data["error"]["code"] and data["error"]["message"] say what to fix
print(data["error"])Example answer (200 OK)
{
"data": [
{
"id": 7,
"sku": "SAMPLE-001",
"name": "Sample Product",
"slug": "sample-product",
"active": false,
"category": "Sample Category",
"url": "https://example.com/product/sample-product",
"short": "A short description of the product.",
"images": [
"https://example.com/img/products/sample-product.jpg"
],
"variants": [
{
"id": 31,
"label": "250 g",
"price": 399,
"mrp": 449,
"stock": 120
},
{
"id": 32,
"label": "500 g",
"price": 749,
"mrp": 849,
"stock": 60
}
]
}
],
"meta": {
"page": 1,
"per_page": 25,
"total": 1,
"last_page": 1
},
"links": {
"first": "https://yourstore.example.com/api/v1/products?page=1",
"last": "https://yourstore.example.com/api/v1/products?page=1",
"prev": null,
"next": null
}
}Errors
| Status | Code | When |
|---|---|---|
| 401 | missing_api_key, invalid_api_key, revoked_api_key, expired_api_key | The key is missing, not valid, revoked or expired. |
| 403 | insufficient_scope | The key does not have the read:products scope. error.required_scope names it. (api_key_disabled and ip_not_allowed also give 403.) |
| 422 | validation_failed | updated_since could not be read as a date or time. |
| 429 | rate_limited | More requests than the key's limit in a minute. Wait for Retry-After. |
Example error answer (403):
{
"error": {
"code": "insufficient_scope",
"message": "This API key does not have the \"read:products\" scope. Add it to the key in the admin (API & webhooks > API keys), or use a key that has it.",
"required_scope": "read:products"
}
}Get a product#
GET/api/v1/products/{id}read:products
One product by id. Add expand=full for the extra fields (status, category_id, hsn, gst_rate, sort, dates and the description text).
Address parameters
| Name | Type | Meaning |
|---|---|---|
id | integer | The product id (a whole number). |
Query parameters
| Name | Type | Meaning |
|---|---|---|
expand | string | full: add status, category_id, hsn, gst_rate, sort, created_at, updated_at and description. One of: full |
Example request
curl -s "https://yourstore.example.com/api/v1/products/7?expand=full" \
-H "Authorization: Bearer YOUR_API_KEY"<?php
$ch = curl_init('https://yourstore.example.com/api/v1/products/7?expand=full');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
],
]);
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($status >= 400) {
// $response['error']['code'] and $response['error']['message'] say what to fix
}// Node.js 18 or newer (fetch is built in). Save as call.mjs and run: node call.mjs
const res = await fetch('https://yourstore.example.com/api/v1/products/7?expand=full', {
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const json = await res.json();
if (!res.ok) {
// json.error.code and json.error.message say what to fix
}# Python 3 with the requests library (pip install requests)
import requests
res = requests.get(
"https://yourstore.example.com/api/v1/products/7?expand=full",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
data = res.json()
if not res.ok:
# data["error"]["code"] and data["error"]["message"] say what to fix
print(data["error"])Example answer (200 OK)
{
"data": {
"id": 7,
"sku": "SAMPLE-001",
"name": "Sample Product",
"slug": "sample-product",
"active": false,
"category": "Sample Category",
"url": "https://example.com/product/sample-product",
"short": "A short description of the product.",
"images": [
"https://example.com/img/products/sample-product.jpg"
],
"variants": [
{
"id": 31,
"label": "250 g",
"price": 399,
"mrp": 449,
"stock": 120
},
{
"id": 32,
"label": "500 g",
"price": 749,
"mrp": 849,
"stock": 60
}
]
},
"meta": {}
}Errors
| Status | Code | When |
|---|---|---|
| 401 | missing_api_key, invalid_api_key, revoked_api_key, expired_api_key | The key is missing, not valid, revoked or expired. |
| 403 | insufficient_scope | The key does not have the read:products scope. error.required_scope names it. (api_key_disabled and ip_not_allowed also give 403.) |
| 404 | not_found | That product does not exist. |
| 429 | rate_limited | More requests than the key's limit in a minute. Wait for Retry-After. |
Example error answer (403):
{
"error": {
"code": "insufficient_scope",
"message": "This API key does not have the \"read:products\" scope. Add it to the key in the admin (API & webhooks > API keys), or use a key that has it.",
"required_scope": "read:products"
}
}Create a product#
POST/api/v1/productswrite:products
Creates a product as a DRAFT, the same as the product import does. Send published: true to publish it at once: that only works when the product passes the import's checks (valid HSN, no duplicate size, a price above zero and a price not above the MRP). Stock cannot be sent: new sizes start at 0 and are filled with POST /inventory/adjustments.
The answer is the full product. If some points did not stop the product from being created, they are listed in meta.warnings.
Send published: true only when the product is complete. If it is not, nothing is created and you get 422 cannot_publish with the points to fix.
Request body (JSON)
| Field | Type | Required | Limits | Meaning |
|---|---|---|---|---|
name | string | Yes | at most 190 characters | Product name. Example: Sample Product |
sku | string or null | No | at most 100 characters | Product SKU (unique). Example: SAMPLE-001 |
slug | string or null | No | at most 190 characters | Web address part. Made from the name when left out; a number is added if it is taken. Example: sample-product |
category_id | integer or null | No | Category id (see GET /categories). Left out: the General category. An archived category is refused. Example: 3 | |
short | string or null | No | at most 2000 characters | Short description. Example: A short description of the product. |
description | string or null | No | at most 20000 characters | Description. Blank lines make paragraphs; HTML is cleaned. Example: A longer description of the product. |
hsn | string or null | No | at most 8 characters | HSN code for GST invoices: exactly 4, 6 or 8 digits. A 7-digit code is refused (a leading zero was probably lost): send 01234567, not 1234567. Example: 01234567 |
gst_rate | number or null | No | 0 to 40 | GST rate in percent (for example 5 or 18). Left empty: the store default applies. Example: 5 |
sort | integer or null | No | 0 to 100000 | Position in lists (lower first). Example: 10 |
published | boolean | No | false (default): create as a draft. true: publish now (only if the product is complete). Example: false | |
variants | array | Yes | 1 to 50 items | The sizes (at least one). Each: label, price, mrp, sku, weight_grams. |
variants[].label | string | Yes | at most 100 characters | Size label, for example "250 g". Example: 250 g |
variants[].price | integer | Yes | at least 0 | Selling price in whole units of the store's currency. Example: 399 |
variants[].mrp | integer | Yes | at least 0 | MRP (the printed maximum price) in whole units of the store's currency. Example: 449 |
variants[].sku | string or null | No | at most 100 characters | SKU of this size (unique). Used by POST /inventory/adjustments. Example: SAMPLE-001-250 |
variants[].weight_grams | integer or null | No | 0 to 1000000 | Shipping weight in grams. Example: 250 |
Any field not listed here is refused with 422. Send an Idempotency-Key header so a retry is safe (see Requests).
Example request
curl -s -X POST "https://yourstore.example.com/api/v1/products" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6f1c0b3e-0d5a-4a52-9d5e-1f6c2a7b9e10" \
-d '{
"name": "Sample Product",
"sku": "SAMPLE-001",
"category_id": 3,
"hsn": "01234567",
"gst_rate": 5,
"short": "A short description of the product.",
"variants": [
{
"label": "250 g",
"price": 399,
"mrp": 449,
"sku": "SAMPLE-001-250",
"weight_grams": 250
}
]
}'<?php
$ch = curl_init('https://yourstore.example.com/api/v1/products');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Sample Product',
'sku' => 'SAMPLE-001',
'category_id' => 3,
'hsn' => '01234567',
'gst_rate' => 5,
'short' => 'A short description of the product.',
'variants' => [
[
'label' => '250 g',
'price' => 399,
'mrp' => 449,
'sku' => 'SAMPLE-001-250',
'weight_grams' => 250,
],
],
]),
]);
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($status >= 400) {
// $response['error']['code'] and $response['error']['message'] say what to fix
}// Node.js 18 or newer (fetch is built in). Save as call.mjs and run: node call.mjs
import { randomUUID } from 'node:crypto';
const res = await fetch('https://yourstore.example.com/api/v1/products', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
name: 'Sample Product',
sku: 'SAMPLE-001',
category_id: 3,
hsn: '01234567',
gst_rate: 5,
short: 'A short description of the product.',
variants: [
{
label: '250 g',
price: 399,
mrp: 449,
sku: 'SAMPLE-001-250',
weight_grams: 250,
},
],
}),
});
const json = await res.json();
if (!res.ok) {
// json.error.code and json.error.message say what to fix
}# Python 3 with the requests library (pip install requests)
import uuid
import requests
res = requests.post(
"https://yourstore.example.com/api/v1/products",
headers={"Authorization": "Bearer YOUR_API_KEY", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Sample Product",
"sku": "SAMPLE-001",
"category_id": 3,
"hsn": "01234567",
"gst_rate": 5,
"short": "A short description of the product.",
"variants": [
{
"label": "250 g",
"price": 399,
"mrp": 449,
"sku": "SAMPLE-001-250",
"weight_grams": 250,
},
],
},
timeout=30,
)
data = res.json()
if not res.ok:
# data["error"]["code"] and data["error"]["message"] say what to fix
print(data["error"])Example answer (201 Created)
{
"data": {
"id": 7,
"sku": "SAMPLE-001",
"name": "Sample Product",
"slug": "sample-product",
"active": false,
"category": "Sample Category",
"url": "https://example.com/product/sample-product",
"short": "A short description of the product.",
"images": [
"https://example.com/img/products/sample-product.jpg"
],
"variants": [
{
"id": 31,
"label": "250 g",
"price": 399,
"mrp": 449,
"stock": 120
},
{
"id": 32,
"label": "500 g",
"price": 749,
"mrp": 849,
"stock": 60
}
],
"status": "draft",
"category_id": 3,
"hsn": "01234567",
"gst_rate": 5,
"sort": 10,
"created_at": "2026-11-01T09:00:00Z",
"updated_at": "2026-11-21T10:00:00Z",
"description": "A longer description of the product."
},
"meta": {}
}Errors
| Status | Code | When |
|---|---|---|
| 401 | missing_api_key, invalid_api_key, revoked_api_key, expired_api_key | The key is missing, not valid, revoked or expired. |
| 403 | insufficient_scope | The key does not have the write:products scope. error.required_scope names it. (api_key_disabled and ip_not_allowed also give 403.) |
| 422 | validation_failed | A field is missing or wrong. error.fields says which and why. |
| 422 | cannot_publish | The product failed the import's checks, so it was not published. |
| 409 | idempotency_key_reuse, idempotency_in_progress | The Idempotency-Key was used for a different request, or the first request with it is still running. |
| 429 | rate_limited | More requests than the key's limit in a minute. Wait for Retry-After. |
Example error answer (422):
{
"error": {
"code": "validation_failed",
"message": "The request could not be accepted. See \"fields\" for what to fix.",
"fields": {
"name": [
"The name field is required."
]
}
}
}Update a product#
PATCH/api/v1/products/{id}write:products
Changes only the fields you send. active: true publishes the product (an archived product cannot be published; weight is set on each size, see the variants endpoints). Stock and the payment or order amounts are never accepted here.
Only the fields you send are changed. The answer is the full product.
Weight is set on each size, not on the product: see PATCH /products/{id}/variants/{variantId}.
Address parameters
| Name | Type | Meaning |
|---|---|---|
id | integer | The product id (a whole number). |
Request body (JSON)
| Field | Type | Required | Limits | Meaning |
|---|---|---|---|---|
name | string | No | at most 190 characters | Product name. Example: Sample Product |
category_id | integer or null | No | Category id (see GET /categories). Left out: the General category. An archived category is refused. Example: 3 | |
short | string or null | No | at most 2000 characters | Short description. Example: A short description of the product. |
description | string or null | No | at most 20000 characters | Description. Blank lines make paragraphs; HTML is cleaned. Example: A longer description of the product. |
hsn | string or null | No | at most 8 characters | HSN code for GST invoices: exactly 4, 6 or 8 digits. A 7-digit code is refused (a leading zero was probably lost): send 01234567, not 1234567. Example: 01234567 |
gst_rate | number or null | No | 0 to 40 | GST rate in percent (for example 5 or 18). Left empty: the store default applies. Example: 5 |
sort | integer or null | No | 0 to 100000 | Position in lists (lower first). Example: 10 |
active | boolean | No | true: publish. false: set back to draft. Example: true |
Any field not listed here is refused with 422. Send an Idempotency-Key header so a retry is safe (see Requests).
Example request
curl -s -X PATCH "https://yourstore.example.com/api/v1/products/7" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6f1c0b3e-0d5a-4a52-9d5e-1f6c2a7b9e10" \
-d '{
"gst_rate": 5,
"hsn": "01234567",
"active": true
}'<?php
$ch = curl_init('https://yourstore.example.com/api/v1/products/7');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Content-Type: application/json',
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'gst_rate' => 5,
'hsn' => '01234567',
'active' => true,
]),
]);
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($status >= 400) {
// $response['error']['code'] and $response['error']['message'] say what to fix
}// Node.js 18 or newer (fetch is built in). Save as call.mjs and run: node call.mjs
import { randomUUID } from 'node:crypto';
const res = await fetch('https://yourstore.example.com/api/v1/products/7', {
method: 'PATCH',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
gst_rate: 5,
hsn: '01234567',
active: true,
}),
});
const json = await res.json();
if (!res.ok) {
// json.error.code and json.error.message say what to fix
}# Python 3 with the requests library (pip install requests)
import uuid
import requests
res = requests.patch(
"https://yourstore.example.com/api/v1/products/7",
headers={"Authorization": "Bearer YOUR_API_KEY", "Idempotency-Key": str(uuid.uuid4())},
json={
"gst_rate": 5,
"hsn": "01234567",
"active": True,
},
timeout=30,
)
data = res.json()
if not res.ok:
# data["error"]["code"] and data["error"]["message"] say what to fix
print(data["error"])Example answer (200 OK)
{
"data": {
"id": 7,
"sku": "SAMPLE-001",
"name": "Sample Product",
"slug": "sample-product",
"active": false,
"category": "Sample Category",
"url": "https://example.com/product/sample-product",
"short": "A short description of the product.",
"images": [
"https://example.com/img/products/sample-product.jpg"
],
"variants": [
{
"id": 31,
"label": "250 g",
"price": 399,
"mrp": 449,
"stock": 120
},
{
"id": 32,
"label": "500 g",
"price": 749,
"mrp": 849,
"stock": 60
}
],
"status": "draft",
"category_id": 3,
"hsn": "01234567",
"gst_rate": 5,
"sort": 10,
"created_at": "2026-11-01T09:00:00Z",
"updated_at": "2026-11-21T10:00:00Z",
"description": "A longer description of the product."
},
"meta": {}
}Errors
| Status | Code | When |
|---|---|---|
| 401 | missing_api_key, invalid_api_key, revoked_api_key, expired_api_key | The key is missing, not valid, revoked or expired. |
| 403 | insufficient_scope | The key does not have the write:products scope. error.required_scope names it. (api_key_disabled and ip_not_allowed also give 403.) |
| 404 | not_found | That product does not exist. |
| 422 | validation_failed | A field is missing or wrong. error.fields says which and why. |
| 422 | product_archived | An archived product cannot be published through the API. |
| 422 | cannot_publish | The product failed the import's checks, so it was not published. |
| 409 | idempotency_key_reuse, idempotency_in_progress | The Idempotency-Key was used for a different request, or the first request with it is still running. |
| 429 | rate_limited | More requests than the key's limit in a minute. Wait for Retry-After. |
Example error answer (422):
{
"error": {
"code": "validation_failed",
"message": "The request could not be accepted. See \"fields\" for what to fix.",
"fields": {
"name": [
"The name field is required."
]
}
}
}Archive a product#
DELETE/api/v1/products/{id}write:products
Archives the product: it disappears from the shop but stays in the admin and on old orders, and can be restored there. Nothing is ever deleted through the API.
The answer is the archived product. To bring it back, restore it from the archive in the admin.
Address parameters
| Name | Type | Meaning |
|---|---|---|
id | integer | The product id (a whole number). |
Example request
curl -s -X DELETE "https://yourstore.example.com/api/v1/products/7" \
-H "Authorization: Bearer YOUR_API_KEY"<?php
$ch = curl_init('https://yourstore.example.com/api/v1/products/7');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
],
]);
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($status >= 400) {
// $response['error']['code'] and $response['error']['message'] say what to fix
}// Node.js 18 or newer (fetch is built in). Save as call.mjs and run: node call.mjs
const res = await fetch('https://yourstore.example.com/api/v1/products/7', {
method: 'DELETE',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const json = await res.json();
if (!res.ok) {
// json.error.code and json.error.message say what to fix
}# Python 3 with the requests library (pip install requests)
import requests
res = requests.delete(
"https://yourstore.example.com/api/v1/products/7",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
data = res.json()
if not res.ok:
# data["error"]["code"] and data["error"]["message"] say what to fix
print(data["error"])Example answer (200 OK)
{
"data": {
"id": 7,
"sku": "SAMPLE-001",
"name": "Sample Product",
"slug": "sample-product",
"active": false,
"category": "Sample Category",
"url": "https://example.com/product/sample-product",
"short": "A short description of the product.",
"images": [
"https://example.com/img/products/sample-product.jpg"
],
"variants": [
{
"id": 31,
"label": "250 g",
"price": 399,
"mrp": 449,
"stock": 120
},
{
"id": 32,
"label": "500 g",
"price": 749,
"mrp": 849,
"stock": 60
}
],
"status": "draft",
"category_id": 3,
"hsn": "01234567",
"gst_rate": 5,
"sort": 10,
"created_at": "2026-11-01T09:00:00Z",
"updated_at": "2026-11-21T10:00:00Z",
"description": "A longer description of the product."
},
"meta": {}
}Errors
| Status | Code | When |
|---|---|---|
| 401 | missing_api_key, invalid_api_key, revoked_api_key, expired_api_key | The key is missing, not valid, revoked or expired. |
| 403 | insufficient_scope | The key does not have the write:products scope. error.required_scope names it. (api_key_disabled and ip_not_allowed also give 403.) |
| 404 | not_found | That product does not exist. |
| 429 | rate_limited | More requests than the key's limit in a minute. Wait for Retry-After. |
Example error answer (403):
{
"error": {
"code": "insufficient_scope",
"message": "This API key does not have the \"write:products\" scope. Add it to the key in the admin (API & webhooks > API keys), or use a key that has it.",
"required_scope": "write:products"
}
}