Skip to main content

Set product discount

Sets the amount of discount on discounted products sold under the FBS scheme

Function SetProductDiscount(Val ClientID, Val APIKey, Val ProductID, Val Discount) Export

ParameterCLI optionTypeRequiredDescription
ClientID--clientidStringClient identifier
APIKey--apikeyStringAPI key
ProductID--productidString, NumberProduct identifier
Discount--discountString, NumberDiscount amount

Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API


tip

Method at API documentation: post /v1/product/update/discount


1C:Enterprise/OneScript code example
    ClientID  = "2128753";
APIKey = "7cc90d26-33e4-499b...";
ProductID = 1156646653;

Discount = 10;

Result = OPI_Ozon.SetProductDiscount(ClientID, APIKey, ProductID, Discount);
    oint ozon SetProductDiscount \
--clientid "***" \
--apikey "***" \
--productid 1156646653 \
--discount 10
Result
{
"code": 5,
"message": "item discount not found",
"details": []
}