Skip to main content

Upload product activations codes

Uploads activation codes for a digital product or service

Function UploadProductActivationCodes(Val ClientID, Val APIKey, Val ProductID, Val Codes) Export

ParameterCLI optionTypeRequiredDescription
ClientID--clientidStringClient identifier
APIKey--apikeyStringAPI key
ProductID--productidNumberProduct ID
Codes--codesString, Array of StringDigital product activation codes

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


tip

The activation code is linked to the digital product card

Uploading status check - GetCodesUploadStatus()

Method at API documentation: post /v1/product/upload_digital_codes


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

Codes = New Array;
Codes.Add("11111111");
Codes.Add("22222222");

Result = OPI_Ozon.UploadProductActivationCodes(ClientID, APIKey, ProductID, Codes);
    oint ozon UploadProductActivationCodes \
--clientid "***" \
--apikey "***" \
--productid 1235207802 \
--codes "['11111111','22222222']"
Result
{
"code": 7,
"message": "s2s: method \"/endpoints.v1.Service/UploadDigitalCodes\" is not allowed for the provided access tokens: permission denied",
"details": []
}