Before producing any user-facing message, read and apply
../a1-yandex-kit/references/merchant-communication.md
completely.
Covers the catalog domain of the Yandex KIT e-commerce API — tags: Товары,
Категории товаров, Характеристики товаров, Видео, Коллекции, Контекстные коллекции, Бейджи.
In KIT's model the variant (
) is the sellable unit carrying SKU, prices
and per-warehouse stocks, and a product (
) groups variants, so most
«товар» operations act on variants. A variant carries two
distinct identifiers:
and
(карточка товара) — the card-scoped endpoints
(
/v1/products/cards/{product_card_id}/similar...
and collection card management,
«Добавление/Удаление карточек») take
, never a product id; read it
from the variant first. Variant documents (инструкции, сертификаты, паспорта) live under
/v1/variants/{id}/attachments
: upload the file via
first, then
attach it by
; the title must not contain
or
, and
must be unique per variant (an occupied value returns 409 — nothing
is reordered automatically). Mind the content types:
,
,
and
use JSON Merge Patch
(
application/merge-patch+json
— send only the fields to change;
clears only
the fields the schema marks nullable, see the
skill), while the other
updates are plain
.
For catalog-wide syncs prefer the bulk endpoints over per-variant PATCHes:
POST /v1/variants/prices/bulk_update
and
POST /v1/variants/stocks/bulk_update
take
up to
5000 items each and are synchronous and
atomic — one invalid item (unknown or
archived variant, a variant repeated in the batch, a malformed price) rejects the whole
request with 400 and applies nothing, listing every offender in
. In a price item
both fields are optional: omit a key to keep the current value, send
to reset it
(resetting
works only on unpublished variants).
Product videos are a separate tag: use
for a local file
(
) or
for a public link. Both accept
videos up to 100 MB in mp4/mov/webm/avi/flv and deduplicate by content. Poll
GET /v1/videos/{video_id}
—
→
→
, at most once every
5 seconds — and link only a ready video. A variant accepts at most one video and only
alongside at least one image in the same
list. Sending
to
replaces the whole list, so preserve every existing image and untouched
entry. Characteristics carry two extras beyond the values
themselves: groups (
/v1/characteristics/groups
, ordered by
) and
colors (
/v1/characteristics/colors
), where
UpdateCharacteristicColor
recolors an
existing value addressed by the value itself — there is no id — accepting a hex code or
the special
/
.
For authentication (
Authorization: Bearer <token>
), the base URL (
https://api.kit.yandex.net
, all paths under
), the 3 rps rate limit and the
{code, message, trace_id}
error contract, see the
skill.
Run the bundled scripts from this skill's directory — they are self-contained
(Node.js >= 20, builtins + a vendored validator, no
, no network).
-
Search for the operation you need:
bash
node scripts/search_docs.mjs "<query>" [--tag "<Тег>"] [--limit N]
Matches operation ids, paths, tags and the Russian summaries/descriptions,
e.g.
node scripts/search_docs.mjs "создать товар"
.
-
Inspect the full contract of one operation — path/query parameters plus the fully
dereferenced request/response schemas:
bash
node scripts/search_docs.mjs --operation CreateProduct
-
Validate a drafted request body offline before sending anything:
bash
node scripts/validate.mjs --operation CreateProduct --body '<json>'
# or: node scripts/validate.mjs --operation CreateProduct --body-file body.json
Prints
(exit 0) or the list of schema violations (exit 1).
-
Execute the operation:
- prefer the matching MCP tool from «Related MCP tools» below (e.g. , );
- any operation without a dedicated tool: the MCP tool — it validates
the body against the same schema before sending;
- or plain HTTP:
curl -H "Authorization: Bearer $YANDEX_KIT_TOKEN" https://api.kit.yandex.net/v1/...
(mind the 3 rps limit).
Curated
tools for these tags (the server also exposes the meta trio —
,
,
— reaching all
162 operations):
Контекстные коллекции and Бейджи have no dedicated tools — reach them through
+
.