Get products filter structure
Gets the structure for selecting the list of products
Function GetProductsFilterStructure(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 - Filter fields structure
tip
Related functions: GetProductList, GetProductsStocks, GetProductsPrices
The description of the filter fields can be found on the documentation page for product list retrieving method: post /v2/product/list
1C:Enterprise/OneScript code example
Result = OPI_Ozon.GetProductsFilterStructure();
- Bash
- CMD/Bat
oint ozon GetProductsFilterStructure \
--empty false
oint ozon GetProductsFilterStructure ^
--empty false
Result
{
"offer_id": "<articles array>",
"product_id": "<Products IDs array>",
"visibility": "<visibility>"
}