Starting from December 31, push API methods will be unavailable. From October 1, they may be unstable.
Requesting information about balances
Deprecated
Which method should I use instead of the outdated one?
Requests up-to-date information about the remaining items from the store.
We receive requests about each warehouse approximately once an hour.
You need to answer in 27 seconds. If you don't make it, yandex.Market will send you the request again. After several unrequited attempts, transfer the remaining funds via POST stocks it will turn off.
Up to 1,000 requests are received per request SKU. If there are more items in stock, requests for different items arrive at the same time.
Request
POST
/stocks
Body
application/json
{
"warehouseId": 0.5,
"skus": [
"example"
]
}
|
Name |
Description |
|
skus |
Type: string[] A list of your SKU products for which information about the remaining balance needs to be transmitted. Example
|
|
warehouseId |
Type: number The warehouse ID. The store's response must contain the same identifier. |
Responses
200 OK
In the response, you need to send the Market the current balances for all the requested items.
Body
application/json
{
"skus": [
{
"sku": "example",
"warehouseId": 0,
"items": [
{
"count": 0,
"type": "FIT",
"updatedAt": "2025-01-01T00:00:00Z"
}
]
}
]
}
|
Name |
Description |
||||||||||||
|
skus |
Type: object[]
Information about the remaining items specified in the Yandex.Market request. Example
|
No longer supported, please use an alternative and newer version.