- CategoryAPI
- ProductAPI
- Prices&StocksAPI
- Promos
- PricingStrategyAPI
- WarehouseAPI
- PolygonAPI
- FBS&rFBSMarks
- FBS
- ReturnsAPI
- CancellationAPI
- ChatAPI
- ReportAPI
- AnalyticsAPI
- FinanceAPI
更新价格
POST
/v1/product/import/prices
Prices&StocksAPI
old_price
或 premium_price
— 请在这些参数中输入 0
。请求参数
Header 参数
Client-Id
string
用户识别号。
示例值:
{{Client-Id}}
Api-Key
string
API-密钥。
示例值:
{{Api-Key}}
Body 参数application/json
prices
array[object (object) {8}]
商品价格信息。
auto_action_enabled
enum<string>
可选
ENABLED
— 启用;DISABLED
— 关闭;UNKNOWN
— 不做任何更改,默认赋值。UNKNOWN
。ENABLED
,在min_price
参数中设置最低价格。枚举值:
UNKNOWNENABLEDDISABLED
默认值:
UNKNOWN
currency_code
string
可选
RUB
— 俄罗斯卢布。CNY
,否则将返回错误。RUB
— 俄罗斯卢布。BYN
— 白俄罗斯卢布。KZT
— 坚戈。USD
— 美元。CNY
— 人民币。min_price
string
可选
offer_id
string
可选
old_price
string
可选
price
string
可选
old_price
值大于0,则price
与old_price
之间应为具体差额。差额取决于
price
值。price 值 | 最小差额 |
---|---|
< 400 | 20 卢布 |
400–10 000 | 5% |
> 10 000 | 500 卢布 |
price_strategy_enabled
enum<string>
可选
ENABLED
— 启用;DISABLED
— 关闭;UNKNOWN
— 不做任何更改,默认赋值。UNKNOWN
。ENABLED
,在min_price
参数中设置最低价格。DISABLED
,商品将从策略中移除。枚举值:
UNKNOWNENABLEDDISABLED
默认值:
UNKNOWN
product_id
integer <int64>
商品编号。
示例
{
"prices": [
{
"auto_action_enabled": "UNKNOWN",
"currency_code": "RUB",
"min_price": "800",
"offer_id": "",
"old_price": "0",
"price": "1448",
"price_strategy_enabled": "UNKNOWN",
"product_id": 1386
}
]
}
示例代码
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/product/import/prices' \
--header 'Client-Id: ' \
--header 'Api-Key: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"prices": [
{
"auto_action_enabled": "UNKNOWN",
"currency_code": "RUB",
"min_price": "800",
"offer_id": "",
"old_price": "0",
"price": "1448",
"price_strategy_enabled": "UNKNOWN",
"product_id": 1386
}
]
}'
返回响应
🟢200价格更新
application/json
Body
result
array[object (object) {4}]
搜索结果。
errors
array[object (object) {2}]
可选
offer_id
string
可选
product_id
integer <int64>
商品编号。
updated
boolean
可选
true
。示例
{
"result": [
{
"product_id": 1386,
"offer_id": "PH8865",
"updated": true,
"errors": []
}
]
}
🟠400参数不准确
🟠403拒绝访问
🟠404没有找到答案
🟠409请求冲突
🔴500内部服务器错误
修改于 2023-11-03 06:04:11