Update products prices
Changes the price of one or more items
Function UpdateProductsPrices(Val ClientID, Val APIKey, Val Prices) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
ClientID | --clientid | String | ✔ | Client identifier |
APIKey | --apikey | String | ✔ | API key |
Prices | --prices | Array of Structure | ✔ | Products prices. See GetProductPriceStructure |
Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API
tip
Method at API documentation: post /v1/product/import/prices
1C:Enterprise/OneScript code example
ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
ProductID = "1235184552";
Prices = New Structure;
Prices.Insert("auto_action_enabled" , "DISABLED");
Prices.Insert("currency_code" , "RUB");
Prices.Insert("min_price" , "1300");
Prices.Insert("offer_id" , "143210610");
Prices.Insert("old_price" , "1400");
Prices.Insert("price" , "1300");
Prices.Insert("price_strategy_enabled", "DISABLED");
Prices.Insert("product_id" , ProductID);
Result = OPI_Ozon.UpdateProductsPrices(ClientID, APIKey, Prices);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint ozon UpdateProductsPrices \
--clientid "***" \
--apikey "***" \
--prices "{'auto_action_enabled':'DISABLED','currency_code':'RUB','min_price':'1300','offer_id':'143210610','old_price':'1400','price':'1300','price_strategy_enabled':'DISABLED','product_id':1237069598}"
:: JSON data can also be passed as a path to a .json file
oint ozon UpdateProductsPrices ^
--clientid "***" ^
--apikey "***" ^
--prices "{'auto_action_enabled':'DISABLED','currency_code':'RUB','min_price':'1300','offer_id':'143210610','old_price':'1400','price':'1300','price_strategy_enabled':'DISABLED','product_id':1237069598}"
Result
{
"result": [
{
"product_id": 1179304145,
"offer_id": "143210610",
"updated": true,
"errors": []
}
]
}