Update products prices
Changes the price of one or more items
Function UpdateProductsPrices(Val ClientID, Val APIKey, Val Prices) Export
Parameter | CLI option | Type | 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
Code example
ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
ProductID = "1111588191";
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);
CLI command example
oint ozon UpdateProductsPrices --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --prices %prices%
Result
{
"result": [
{
"product_id": 1179230269,
"offer_id": "143210608",
"updated": true,
"errors": []
}
]
}