Skip to main content

Get product structure

Gets the structure of product standard fields

Function GetProductStructure(Val Clear = False) Export

ParameterCLI optionTypeDescription
Clear--emptyBooleanTrue > structure with empty valuse, False > field descriptions at values

Returns: Structure of KeyAndValue - Product fields structure


tip

This structure should be supplemented with fields that depend on the product category from GetCategoryAttributes()

The first image in the image array (images field) will be the main image


Code example
    Result = OPI_Ozon.GetProductStructure();
CLI command example
    
oint ozon GetProductStructure --empty %empty%

Result
{
"description_category_id": "<ID category product>",
"name": "<name product>",
"offer_id": "<offer>",
"barcode": "<barcode>",
"price": "<price>",
"old_price": "<old price>",
"vat": "<VAT rate, e.g. 0.2>",
"height": "<height>",
"width": "<width>",
"depth": "<depth>",
"dimension_unit": "<unit of measure for sizes, e.g. mm>",
"weight": "<weight>",
"weight_unit": "<unit of measurement for weight, e.g. g>",
"images": "<array of product images URLs>",
"images360": "<array of 360 images URLs>",
"color_image": "<marketing color for pictures>"
}