Get products stocks
Gets the number of items in the balance with or without filtering
Function GetProductsStocks(Val ClientID, Val APIKey, Val Filter = "", Val LastID = 0) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
ClientID | --clientid | String | ✔ | Client identifier |
APIKey | --apikey | String | ✔ | API key |
Filter | --filter | Structure of KeyAndValue | ✖ | Product selection filter. See GetProductsFilterStructure |
LastID | --last | String, Number | ✖ | ID of the last value (last_id) from the previous response |
Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API
tip
Method at API documentation: post /v3/product/info/stocks
1C:Enterprise/OneScript code example
ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
IDArray = New Array;
IDArray.Add("143210608");
Filter = New Structure;
Filter.Insert("visibility" , "ALL");
Filter.Insert("offer_id" , IDArray);
Result = OPI_Ozon.GetProductsStocks(ClientID, APIKey, Filter);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint ozon GetProductsStocks \
--clientid "***" \
--apikey "***" \
--filter "{'visibility':'ALL','offer_id':['143210608']}"
:: JSON data can also be passed as a path to a .json file
oint ozon GetProductsStocks ^
--clientid "***" ^
--apikey "***" ^
--filter "{'visibility':'ALL','offer_id':['143210608']}"
Result
{
"result": {
"items": [],
"total": 0,
"last_id": ""
}
}