ym_set_price
Set the base price for one Yandex Market offer across all cabinet shops and optionally define a strikethrough discount price; requires confirmation before writing.
Instructions
Set the base price of ONE offer for all shops of the cabinet (POST /v2/businesses/{businessId}/offer-prices/updates). WRITE.
Requires confirm_write=true. discount_base is the strikethrough price (must be higher than price); 0 = no discount shown.
Args: business_id: cabinet id. offer_id: seller's SKU (offerId). price: new price, e.g. 1499. discount_base: pre-discount price, or 0 to clear. currency: RUR (default) — Yandex uses "RUR", not "RUB". confirm_write: must be true to send. Returns JSON: {"ok": true, "data": {"status": "OK"}} on success.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"business_id": "<business_id>",
"offer_id": "<offer_id>",
"price": "<price>"
},
"name": "ym_set_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| currency | No | RUR | |
| offer_id | Yes | ||
| business_id | Yes | ||
| confirm_write | No | ||
| discount_base | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |