The admin half of the catalogue is what an exchange with an accounting system
(1C, a warehouse, an ERP) works with, or an agent that runs the assortment.
Permission: catalog.manage.
Products
GET /api/v2/admin/products
GET /api/v2/admin/products/{id | external_id | sku | slug}
PATCH /api/v2/admin/products/{id | external_id | sku | slug}
Products are not created or deleted through the API — that is done in the admin or by importing a file (Data exchange → Import).
Filters and sorts
| Parameter | What it does |
|---|---|
status | active, hidden or disabled |
sku | an exact sku |
updated_after | everything changed since a moment (ISO 8601) — the basis of a sync |
order[id], order[sku], order[price], order[stock], order[created_at], order[updated_at] | sort, asc / desc |
The answer
{
"data": {
"id": 1,
"url": "https://shop.example/api/v2/admin/products/1",
"external_id": "1c-42",
"sku": "ST-1001",
"slug": "phone-alpha-256",
"name": { "en": "Phone Alpha 256GB", "ru": "Телефон Альфа 256 ГБ" },
"short_description": null,
"status": "active",
"stock": 12,
"availability_status": "in_stock",
"currency": "USD",
"price": "999.00",
"price_currency": null,
"price_typed": null,
"cost_price": 72000,
"list_price": null,
"weight": 240,
"dimensions": { "length": 160, "width": 75, "height": 8 },
"categories": [
{ "id": 1, "external_id": "1c-0042", "url": "https://shop.example/api/v2/admin/categories/1" }
],
"variation_group": "phone-alpha",
"characteristics": [
{ "code": "COLOR", "name": { "en": "Color", "ru": "Цвет" }, "purpose": "variation",
"value": { "en": "Black", "ru": "Чёрный" }, "value_code": "BLACK" },
{ "code": "BRAND", "name": { "en": "Brand", "ru": "Бренд" }, "purpose": "brand",
"value": { "en": "Alpha" }, "value_code": "ALPHA" }
],
"features": [
{ "type": "feature", "key": "Display", "value": "6.7\"", "label": null }
],
"seo": { "meta_title": null, "meta_description": null, "h1": null,
"noindex": false, "canonical_url": null },
"updated_at": "2026-10-28T00:26:04+03:00"
}
}
| Field | What it is |
|---|---|
external_id | your id of the product; the product can be addressed by it |
name, short_description | translatable: an object “language → text”; short_description as stored (the storefront may compose it from characteristics) |
status | active — listed and opens; hidden — not listed, but opens and sells by a link; disabled — no page |
stock | units on hand |
availability_status | a second axis: whether it can be bought and whether stock applies at all. Core has in_stock, out_of_stock, preorder, discontinued, unlimited; modules may add their own |
currency | the shop’s books currency — price, cost_price and list_price are in it |
price | the price in the books currency, a decimal string with as many places as the shop keeps a price ("999.00", "0.0120"). When the price was typed in another currency it is derived from price_typed by the rate and moves with it |
price_currency, price_typed | which currency a person typed the price in, and what number; null — typed in the books currency |
cost_price | the purchase price (never reaches the storefront) |
list_price | the recommended / “was” price |
weight | grams; null — not measured (which is not 0) |
dimensions | millimetres |
categories | all of the product’s categories |
variation_group | the word shared by the variations of one product (colours, sizes); null — no variations |
characteristics | the shop’s characteristics: every language, and purpose — filter (ordinary), variation (tells variations apart) or brand |
features | the product’s own rows (see the storefront) |
seo | the product page’s meta tags; an empty value means “nobody has said”, and the shop works one out itself |
Writing
PATCH changes only the fields it names, from this list:
| Field | How it is written |
|---|---|
stock | an integer |
status | active / hidden / disabled |
availability_status | a registered status’s code; an unknown code is silently skipped |
sku | a string |
external_id | a string or null |
price, cost_price, list_price | decimal strings in major units ("420.50"), at most as many places as the shop keeps; more is refused with 422 |
price_currency | the currency the prices above are in; see below |
categories | the whole list of categories: a number is an id, a string a category’s external_id |
variation_group | a string, or null (take it out of its group) |
seo | an object: meta_title, meta_description, h1 (each “language → text”), noindex, canonical_url |
Everything else — name, description, photos, the page’s address, characteristics — is kept in the admin or by import. Fields not on the list are skipped without an error.
Stock:
curl -s -X PATCH https://shop.example/api/v2/admin/products/1c-42 \
-H "Authorization: Bearer $TG_TOKEN" -H 'Content-Type: application/json' \
-d '{"stock": 12}'
A price in the books currency:
{ "price": "999.00", "cost_price": "720.00" }
A price in another currency — the shop keeps the typed number and recomputes the price on every change of the rate:
{ "price": "42000.00", "price_currency": "UAH" }
Categories — the list replaces whatever was there. If even one category is unknown, the whole write is refused — a product is never left in fewer categories than you sent:
{ "categories": [12, "1c-0042"] }
{ "message": "The shop has no such category: 1c-0042.",
"errors": { "categories": ["The shop has no such category: 1c-0042."] } }
The string "12" is the external_id “12”, not the id 12: send ids as numbers.
Variations — products sharing a variation_group are shown as variants of
one product, told apart by the characteristics with purpose: "variation". If
a product answers every such characteristic exactly as a product already in
the group, the write is refused (422, errors.variation_group names the
other product’s sku): a customer could not tell them apart.
SEO — languages are merged with those already written: send only ru and
the English stays. An empty string for a language erases it:
{ "seo": { "meta_title": { "en": "Phone Alpha 256GB — buy online" },
"h1": { "ru": "" }, "noindex": false } }
Categories and variations are written in one transaction: on an error nothing of that call changes.
Categories
GET /api/v2/admin/categories
GET /api/v2/admin/categories/{id | external_id | slug}
Read-only. Filters: parent_id, status, updated_after; sorts: order[id],
order[slug], order[sort].
{ "data": {
"id": 1, "url": "https://shop.example/api/v2/admin/categories/1",
"external_id": "1c-0042", "slug": "smartphones",
"name": { "en": "Smartphones", "ru": "Смартфоны" },
"parent_id": null, "sort": 10, "status": "active",
"updated_at": "2026-10-20T12:00:00+03:00" } }
status: active — in the menu and opens; hidden — out of the menu and the
sitemap, but its address opens; disabled — no page.
A category’s external_id is set in the admin or by import; after that
products can be put into categories by your keys.