Yandex Market: get stocks
ym_stocks_getGet Yandex Market stock levels with available and reserved quantities. Use campaign_id for Market warehouses or omit it for seller warehouses; call both to see all stock.
Instructions
Returns Yandex Market stock levels: available to order and reserved. Read-only. Market stock types (AVAILABLE/FIT/FREEZE/DEFECT/…) are normalized: sellable quantity is kept separate from reserved and defective stock. IMPORTANT: Yandex Market splits stocks across two methods and a single call does NOT cover both. Without campaign_id you get seller warehouses (FBS/DBS/Express). With campaign_id you get Market warehouses (FBY, i.e. the FBO model), which is also the only working path for accounts with warehouse groups. To see all stock, call it twice: without campaign_id and with it (shop ids come from ym_campaigns_list).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, max 100 | |
| cursor | No | ||
| seller_sku | No | Filter by seller article (offerId) | |
| business_id | No | Business account id (businessId). If omitted, taken from the connection or resolved via ym_campaigns_list. | |
| campaign_id | No | Shop id (campaignId). Required for stocks in Market warehouses (FBY/LaaS) and for accounts that use warehouse groups. Discover it via ym_campaigns_list. | |
| connection_id | No | Yandex Market connection id. Required when more than one is configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes | ||
| success | Yes | ||
| marketplace | Yes | ||
| connection_id | Yes |