Get product structure
Gets the structure of product standard fields
Function GetProductStructure(Val Clear = False) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Clear | --empty | Boolean | ✖ | True > 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
1C:Enterprise/OneScript code example
Result = OPI_Ozon.GetProductStructure();
- Bash
- CMD/Bat
oint ozon GetProductStructure \
--empty false
oint ozon GetProductStructure ^
--empty false
Result
{
"description_category_id": "<Product category ID>",
"name": "<product name>",
"offer_id": "<article>",
"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>"
}