a1-yandex-kit-orders
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseA1 Yandex KIT — Orders
A1 Yandex KIT — 订单管理
Communication
沟通规范
Before producing any user-facing message, read and apply
completely.
../a1-yandex-kit/references/merchant-communication.mdCovers the order-management domain of the Yandex KIT e-commerce API — tags: Заказы,
Клиенты, Подарочные карты, Услуги. Orders are created by buyers on the storefront;
through the API you list and inspect them, confirm or cancel them, close out their delivery
( — for pickup and the store's own delivery when
delivery automation is off), write «Честный знак» marking codes onto order items
( — one code per item, null removes a code), and read
the attached additional services (addons), customer records and gift cards. A customer record also carries the marketing-consent pair
+ — read it before adding anyone to a mailing list
and mirror it into your CRM. All datetimes are UTC, and list endpoints paginate with
/ (max 100).
POST /v1/orders/{id}/delivery/completePOST /v1/orders/{id}/marking-codesagreement_for_promoagreement_atpageper_pageFor authentication (), the base URL (, all paths under ), the 3 rps rate limit and the error contract, see the skill.
Authorization: Bearer <token>https://api.kit.yandex.net/v1/{code, message, trace_id}a1-yandex-kit在生成任何面向用户的消息之前,请完整阅读并遵循
中的内容。
../a1-yandex-kit/references/merchant-communication.md本文档涵盖Yandex KIT电商API的订单管理领域——标签:Заказы(订单)、Клиенты(客户)、Подарочные карты(礼品卡)、Услуги(服务)。订单由买家在店铺前台创建;通过API你可以列出并查看订单、确认或取消订单、完成订单配送(——适用于自提和店铺自主配送且配送自动化关闭的场景)、将«Честный знак»(诚信标识)编码写入订单项(——每个商品对应一个编码,null表示移除编码),还可以查看附加服务(addons)、客户记录和礼品卡信息。客户记录中还包含营销许可字段对 + ——在将客户添加到邮件列表前请读取该字段,并同步到你的CRM系统中。所有日期时间均为UTC时区,列表接口通过/进行分页(最大100条)。
POST /v1/orders/{id}/delivery/completePOST /v1/orders/{id}/marking-codesagreement_for_promoagreement_atpageper_page关于认证方式()、基础URL(,所有路径均在下)、每秒3次的请求速率限制以及错误格式,请参考技能文档。
Authorization: Bearer <token>https://api.kit.yandex.net/v1/{code, message, trace_id}a1-yandex-kitWorkflow
工作流程
Run the bundled scripts from this skill's directory — they are self-contained
(Node.js >= 20, builtins + a vendored validator, no , no network).
npm install-
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 ConfirmOrder -
Validate a drafted request body offline before sending anything:bash
node scripts/validate.mjs --operation ConfirmOrder --body '<json>' # or: node scripts/validate.mjs --operation ConfirmOrder --body-file body.jsonPrints(exit 0) or the list of schema violations (exit 1).VALID -
Execute the operation:
- prefer the matching MCP tool from «Related MCP tools» below (e.g.
mcp-yandex-kit,list_orders);confirm_order - any operation without a dedicated tool: the MCP tool — it validates the body against the same schema before sending;
kit_request - or plain HTTP:
(mind the 3 rps limit).
curl -H "Authorization: Bearer $YANDEX_KIT_TOKEN" https://api.kit.yandex.net/v1/...
- prefer the matching
从本技能目录中运行内置脚本——这些脚本是独立的(需要Node.js >= 20,仅使用内置模块和内置验证器,无需,无需网络连接)。
npm install-
搜索所需操作:bash
node scripts/search_docs.mjs "<query>" [--tag "<Тег>"] [--limit N]匹配操作ID、路径、标签以及俄文摘要/描述,例如:。node scripts/search_docs.mjs "подтвердить заказ" -
查看单个操作的完整契约——包括路径/查询参数以及完全解引用的请求/响应 schema:bash
node scripts/search_docs.mjs --operation ConfirmOrder -
离线验证拟发送的请求体:bash
node scripts/validate.mjs --operation ConfirmOrder --body '<json>' # 或:node scripts/validate.mjs --operation ConfirmOrder --body-file body.json验证通过时输出(退出码0),否则输出schema违规列表(退出码1)。VALID -
执行操作:
- 优先使用下方“相关MCP工具”中对应的工具(例如
mcp-yandex-kit、list_orders);confirm_order - 对于没有专用工具的操作:使用MCP工具——它会在发送前根据相同的schema验证请求体;
kit_request - 或使用普通HTTP请求:
(注意每秒3次的请求速率限制)。
curl -H "Authorization: Bearer $YANDEX_KIT_TOKEN" https://api.kit.yandex.net/v1/...
- 优先使用下方“相关MCP工具”中对应的
Endpoints (23 operations)
接口(共23个操作)
Заказы
Заказы(订单)
| Method | Path | OperationId | Summary (RU) |
|---|---|---|---|
| GET | | | Получение списка заказов по ID клиента |
| GET | | | Получение списка заказов |
| GET | | | Получение заказа по ID |
| GET | | | Получение списка услуг заказа |
| POST | | | Подтверждение заказа |
| POST | | | Отмена заказа |
| POST | | | Завершение доставки заказа |
| POST | | | Запись кодов маркировки «Честный знак» |
| 方法 | 路径 | 操作ID | 摘要(俄文/中文) |
|---|---|---|---|
| GET | | | Получение списка заказов по ID клиента(根据客户ID获取订单列表) |
| GET | | | Получение списка заказов(获取订单列表) |
| GET | | | Получение заказа по ID(根据ID获取订单) |
| GET | | | Получение списка услуг заказа(获取订单附加服务列表) |
| POST | | | Подтверждение заказа(确认订单) |
| POST | | | Отмена заказа(取消订单) |
| POST | | | Завершение доставки заказа(完成订单配送) |
| POST | | | Запись кодов маркировки «Честный знак»(写入诚信标识编码) |
Клиенты
Клиенты(客户)
| Method | Path | OperationId | Summary (RU) |
|---|---|---|---|
| GET | | | Получение списка клиентов |
| GET | | | Получение клиента по ID |
| PATCH | | | Обновление клиента |
| 方法 | 路径 | 操作ID | 摘要(俄文/中文) |
|---|---|---|---|
| GET | | | Получение списка клиентов(获取客户列表) |
| GET | | | Получение клиента по ID(根据ID获取客户) |
| PATCH | | | Обновление клиента(更新客户信息) |
Подарочные карты
Подарочные карты(礼品卡)
| Method | Path | OperationId | Summary (RU) |
|---|---|---|---|
| GET | | | Получение списка подарочных карт |
| GET | | | Получение подарочной карты по ID |
| 方法 | 路径 | 操作ID | 摘要(俄文/中文) |
|---|---|---|---|
| GET | | | Получение списка подарочных карт(获取礼品卡列表) |
| GET | | | Получение подарочной карты по ID(根据ID获取礼品卡) |
Услуги
Услуги(服务)
| Method | Path | OperationId | Summary (RU) |
|---|---|---|---|
| GET | | | Получение списка услуг |
| POST | | | Создание услуги |
| GET | | | Получение услуги по ID |
| PATCH | | | Обновление услуги |
| DELETE | | | Удаление услуги |
| GET | | | Получение уникальных идентификаторов товаров услуги |
| GET | | | Получение идентификаторов категорий услуги |
| GET | | | Получение идентификаторов коллекций услуги. |
| POST | | | Добавление объектов в услугу |
| POST | | | Удаление объектов из услуги |
| 方法 | 路径 | 操作ID | 摘要(俄文/中文) |
|---|---|---|---|
| GET | | | Получение списка услуг(获取服务列表) |
| POST | | | Создание услуги(创建服务) |
| GET | | | Получение услуги по ID(根据ID获取服务) |
| PATCH | | | Обновление услуги(更新服务) |
| DELETE | | | Удаление услуги(删除服务) |
| GET | | | Получение уникальных идентификаторов товаров услуги(获取服务商品唯一ID) |
| GET | | | Получение идентификаторов категорий услуги(获取服务分类ID) |
| GET | | | Получение идентификаторов коллекций услуги.(获取服务集合ID) |
| POST | | | Добавление объектов в услугу(向服务中添加对象) |
| POST | | | Удаление объектов из услуги(从服务中移除对象) |
Related MCP tools
相关MCP工具
Curated tools for these tags (the server also exposes the meta trio —
, , — reaching all
162 operations):
mcp-yandex-kitsearch_operationsget_operation_schemakit_request- — List orders of the store (paginated), newest first.
list_orders - — Get a single order by its ID, including line items, delivery chunks, payment and status.
get_order - — Confirm an order.
confirm_order - — Cancel an order.
cancel_order - — Mark the delivery of an order as fully completed.
complete_order_delivery - — Write «Честный знак» (Chestny ZNAK) marking codes onto order items, or remove them.
set_order_marking_codes - — List additional services (addons) attached to an order by the order ID.
get_order_addons - — List customers of the store (paginated).
list_customers - — Get a single customer by their ID.
get_customer - — Update a customer (plain JSON PATCH).
update_customer - — List order IDs of a customer by their customer ID (paginated).
get_customer_orders - — List gift cards of the store (paginated), with optional status and purchase-date filters.
list_gift_cards - — Get a single gift card by its ID, including status, balance and purchase info.
get_gift_card
Услуги (addons) beyond have no dedicated tools — manage them through + .
get_order_addonssearch_operationskit_request以下是为上述标签精选的工具(服务器还提供三个元工具——、、——可覆盖全部162个操作):
mcp-yandex-kitsearch_operationsget_operation_schemakit_request- — 列出店铺订单(分页),按最新排序。
list_orders - — 根据ID获取单个订单详情,包括订单项、配送段、支付信息和状态。
get_order - — 确认订单。
confirm_order - — 取消订单。
cancel_order - — 将订单配送标记为已完成。
complete_order_delivery - — 将«Честный знак»(诚信标识)编码写入订单项,或移除编码。
set_order_marking_codes - — 根据订单ID获取附加服务(addons)列表。
get_order_addons - — 列出店铺客户(分页)。
list_customers - — 根据ID获取单个客户详情。
get_customer - — 更新客户信息(纯JSON PATCH方式)。
update_customer - — 根据客户ID列出客户的订单ID(分页)。
get_customer_orders - — 列出店铺礼品卡(分页),支持按状态和购买日期筛选。
list_gift_cards - — 根据ID获取单个礼品卡详情,包括状态、余额和购买信息。
get_gift_card
除外,Услуги(服务)相关操作没有专用工具——需通过 + 进行管理。
get_order_addonssearch_operationskit_request