Upload product activations codes
Uploads activation codes for a digital product or service
Function UploadProductActivationCodes(Val ClientID, Val APIKey, Val ProductID, Val Codes) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
ClientID | --clientid | String | ✔ | Client identifier |
APIKey | --apikey | String | ✔ | API key |
ProductID | --productid | Number | ✔ | Product ID |
Codes | --codes | String, Array of String | ✔ | Digital 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);
- Bash
- CMD/Bat
oint ozon UploadProductActivationCodes \
--clientid "***" \
--apikey "***" \
--productid 1235207802 \
--codes "['11111111','22222222']"
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": []
}