Before producing any user-facing message, read and apply
../a1-yandex-kit/references/merchant-communication.md
completely.
Covers the promotions domain of the Yandex KIT e-commerce API — tags: Скидки,
Промокоды, Группы промокодов, Подарки. Promotions are created first and then bound to
objects: discounts, promocodes and promocode groups to variants, categories or
collections via their
and
endpoints (a
promocode-group request carries either variants or categories+collections, not both),
gifts to variants via
/
DELETE /v1/gifts/{id}/variants
. Промокоды and
Группы промокодов are separate models: a promocode is one standalone code, while a
group holds the discount rules plus its codes — type
(one shared code) or
(single-use coupon codes managed via
/v1/promocode_groups/{group_id}/codes
). End-of-life differs per kind —
only
discounts can be archived (
/
, status
/
/
; archived discounts stop applying but stay
restorable). Promocodes and gifts have no archive endpoints and only two statuses,
/
— pause them by PATCHing
to
via
/
. Promocode groups also report
/
,
but
is a full PUT replace with
no field — every
field is required, so resend the current values when changing anything.
removes a gift
permanently, with no restore — prefer deactivation;
likewise permanently deletes the group
with all its codes.
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 CreateDiscount
-
Validate a drafted request body offline before sending anything:
bash
node scripts/validate.mjs --operation CreateDiscount --body '<json>'
# or: node scripts/validate.mjs --operation CreateDiscount --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):
Подарки (gifts) and Группы промокодов have no dedicated tools — manage them through
+
.