- CategoryAPI
- ProductAPI
- Prices&StocksAPI
- Promos
- PricingStrategyAPI
- WarehouseAPI
- PolygonAPI
- FBS&rFBSMarks
- FBS
- ReturnsAPI
- CancellationAPI
- ChatAPI
- ReportAPI
- AnalyticsAPI
- FinanceAPI
- DeliveryFBS
- DeliveryrFBS
- Pass
- RFBSReturnsAPI
- BetaMethod
- Examples
- ReviewAPI
更新价格
POST
/v1/product/import/prices
Prices&StocksAPI
old_price
,请将此参数设为0。offer_id
和 product_id
,系统将优先根据 offer_id
应用更改。为避免歧义,建议仅使用一个参数。请求参数
Header 参数
Client-Id
string
用户识别号。
Api-Key
string
API-密钥。
Body 参数application/json
prices
array[object (object) {11}]
商品价格信息。
<= 1000 items
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
可选
min_price_for_auto_actions_enabled
boolean
可选
true
,如果为 Ozon 在添加到促销时会考虑最低价格。如果不传递任何值,价格计算的状态将保持不变。net_price
string
产品成本价。
offer_id
string
可选
product_id
。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>
可选
product_id
。vat
string
可选
0
— 免除增值税,0.05
— 5%,0.07
— 7%,0.1
— 10%,0.2
— 20%。示例
{
"prices": [
{
"auto_action_enabled": "UNKNOWN",
"currency_code": "RUB",
"min_price": "800",
"min_price_for_auto_actions_enabled": true,
"net_price": "650",
"offer_id": "",
"old_price": "0",
"price": "1448",
"price_strategy_enabled": "UNKNOWN",
"product_id": 1386,
"vat": "0.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/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",
"min_price_for_auto_actions_enabled": true,
"net_price": "650",
"offer_id": "",
"old_price": "0",
"price": "1448",
"price_strategy_enabled": "UNKNOWN",
"product_id": 1386,
"vat": "0.1"
}
]
}'
返回响应
🟢200成功
application/json
Body
result
array[object (object) {4}]
搜索结果。
errors
array[object (object) {2}]
可选
offer_id
string
可选
product_id
integer <int64>
可选
product_id
。updated
boolean
可选
true
。示例
{
"result": [
{
"product_id": 1386,
"offer_id": "PH8865",
"updated": true,
"errors": []
}
]
}
🟠400请求有误
🟠403禁止访问
🟠404记录不存在
🟠409409
🔴500服务器错误
修改于 2025-06-10 08:30:17