Skip to main content

Bind barcodes

Binds barcodes to products

Function BindBarcodes(Val ClientID, Val APIKey, Val BarcodesMap) Export

ParameterCLI optionTypeRequiredDescription
ClientID--clientidStringClient identifier
APIKey--apikeyStringAPI key
BarcodesMap--barcodesMap Of KeyAndValueKey > product SKU, Value > barcode

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


tip

Method at API documentation: post /v1/barcode/add


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

BarcodesMap = New Map;
BarcodesMap.Insert(1626044001, "112233");

Result = OPI_Ozon.BindBarcodes(ClientID, APIKey, BarcodesMap);
    # JSON data can also be passed as a path to a .json file

oint ozon BindBarcodes \
--clientid "***" \
--apikey "***" \
--barcodes "{'1626044001':'112233'}"
Result
{
"errors": [
{
"barcode": "112233",
"code": "item_not_found",
"error": "sellerID of item 1626044001 is not 2128753",
"sku": 1626044001
}
]
}