Skip to main content

Create products by Ozon ID

Creates a product by specified Ozon ID

Function CreateProductByOzonID(Val ClientID, Val APIKey, Val ProductsArray) Export

ParameterCLI optionTypeRequiredDescription
ClientID--clientidStringClient identifier
APIKey--apikeyStringAPI key
ProductsArray--itemsArray Of StringArray or one simplified structure of product fields

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


tip

You can get an empty structure using the GetSimplifiedProductStructure method()

It is not possible to update a product fields by Ozon ID

Method at API documentation: post /v1/product/import-by-sku


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

ItemStructure = New Structure;
ItemStructure.Insert("name" , "New imported product");
ItemStructure.Insert("sku" , 1626044001);
ItemStructure.Insert("offer_id" , "91132");
ItemStructure.Insert("price" , "1100");
ItemStructure.Insert("old_price" , "1100");
ItemStructure.Insert("vat" , "0.1");
ItemStructure.Insert("currency_code", "RUB");

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

oint ozon CreateProductByOzonID \
--clientid "***" \
--apikey "***" \
--items "{'name':'New imported product','sku':1626044001,'offer_id':'91132','price':'1100','old_price':'1100','vat':'0.1','currency_code':'RUB'}"
Result
{
"result": {
"task_id": 1347188275,
"unmatched_sku_list": []
}
}