Products and categories

The catalogue as an accounting system sees it: reading every product, writing stock, prices, statuses, categories, variations and SEO.

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

ParameterWhat it does
statusactive, hidden or disabled
skuan exact sku
updated_aftereverything 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"
  }
}
FieldWhat it is
external_idyour id of the product; the product can be addressed by it
name, short_descriptiontranslatable: an object “language → text”; short_description as stored (the storefront may compose it from characteristics)
statusactive — listed and opens; hidden — not listed, but opens and sells by a link; disabled — no page
stockunits on hand
availability_statusa 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
currencythe shop’s books currency — price, cost_price and list_price are in it
pricethe 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_typedwhich currency a person typed the price in, and what number; null — typed in the books currency
cost_pricethe purchase price (never reaches the storefront)
list_pricethe recommended / “was” price
weightgrams; null — not measured (which is not 0)
dimensionsmillimetres
categoriesall of the product’s categories
variation_groupthe word shared by the variations of one product (colours, sizes); null — no variations
characteristicsthe shop’s characteristics: every language, and purpose — filter (ordinary), variation (tells variations apart) or brand
featuresthe product’s own rows (see the storefront)
seothe 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:

FieldHow it is written
stockan integer
statusactive / hidden / disabled
availability_statusa registered status’s code; an unknown code is silently skipped
skua string
external_ida string or null
price, cost_price, list_pricedecimal strings in major units ("420.50"), at most as many places as the shop keeps; more is refused with 422
price_currencythe currency the prices above are in; see below
categoriesthe whole list of categories: a number is an id, a string a category’s external_id
variation_groupa string, or null (take it out of its group)
seoan 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.