- CategoryAPI
- ProductAPI
- Prices&StocksAPI
- Promos
- PricingStrategyAPI
- WarehouseAPI
- PolygonAPI
- FBS&rFBSMarks
- FBS
- ReturnsAPI
- CancellationAPI
- ChatAPI
- ReportAPI
- AnalyticsAPI
- FinanceAPI
更新策略
POST
/v1/pricing-strategy/update
PricingStrategyAPI
请求参数
Body 参数application/json
competitors
array[object (object) {2}]
竞争对手列表。
coefficient
number <float>
可选
0.5
到1.2
。competitor_id
integer <int64>
竞争对手ID。
strategy_id
string
策略ID。
strategy_name
string
策略名称。
示例
{
"strategy_id": "a3de1826-9c54-40f1-bb6d-1a9e2638b058",
"strategy_name": "新策略",
"competitors": [
{
"competitor_id": 1008426,
"coefficient": 1
},
{
"competitor_id": 204,
"coefficient": 1
},
{
"competitor_id": 91,
"coefficient": 1
},
{
"competitor_id": 48,
"coefficient": 1
},
{
"id": 45,
"coefficient": 1
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-seller.ozon.ru/v1/pricing-strategy/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"strategy_id": "a3de1826-9c54-40f1-bb6d-1a9e2638b058",
"strategy_name": "新策略",
"competitors": [
{
"competitor_id": 1008426,
"coefficient": 1
},
{
"competitor_id": 204,
"coefficient": 1
},
{
"competitor_id": 91,
"coefficient": 1
},
{
"competitor_id": 48,
"coefficient": 1
},
{
"id": 45,
"coefficient": 1
}
]
}'
返回响应
🟢200策略已更新
application/json
Body
object {0}
示例
{}
🔴500错误
修改于 2023-11-03 05:50:43