price_sent 时,才有可能设置其可用性。offer_id 和 product_id,系统将优先根据 offer_id 应用更改。为避免歧义,建议仅使用一个参数。{
"stocks": [
{
"offer_id": "PH11042",
"product_id": 313455276,
"stock": 100,
"warehouse_id": 22142605386000
}
]
}curl --location --request POST 'https://api-seller.ozon.ru/v2/products/stocks' \
--header 'Client-Id;' \
--header 'Api-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"stocks": [
{
"offer_id": "PH11042",
"product_id": 313455276,
"stock": 100,
"warehouse_id": 22142605386000
}
]
}'{
"result": [
{
"warehouse_id": 22142605386000,
"product_id": 118597312,
"offer_id": "PH11042",
"updated": true,
"errors": []
}
]
}