Get product stocks structure
Gets the data structure for udpating product stocks in the UpdateProductsStocks function
Function GetProductStocksStructure(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
The description of the filter fields can be found on the documentation page for product list retrieving method: post /v2/products/stocks
1C:Enterprise/OneScript code example
Result = OPI_Ozon.GetProductStocksStructure();
- Bash
- CMD/Bat
oint ozon GetProductStocksStructure \
--empty false
oint ozon GetProductStocksStructure ^
--empty false
Result
{
"offer_id": "<article>",
"product_id": "<Product ID>",
"stock": "<amount>",
"warehouse_id": "<Warehouse ID>"
}