Get product list
Gets a list of products with or without filter
Function GetProductList(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/list
1C:Enterprise/OneScript code example
ClientID = "2479669";
APIKey = "09f65e9f-262d-4aca...";
IDArray = New Array;
IDArray.Add("143210609");
IDArray.Add("1432106010");
Filter = New Structure;
Filter.Insert("visibility", "ALL");
Filter.Insert("offer_id" , IDArray);
Result = OPI_Ozon.GetProductList(ClientID, APIKey, Filter);
- Bash
- CMD/Bat
oint ozon GetProductList \
--clientid "***" \
--apikey "***" \
--filter "{'visibility':'ALL','offer_id':['143210609','1432106010']}"
oint ozon GetProductList ^
--clientid "***" ^
--apikey "***" ^
--filter "{'visibility':'ALL','offer_id':['143210609','1432106010']}"
Result
{
"result": {
"items": [
{
"product_id": 2715190545,
"offer_id": "1432106010",
"has_fbo_stocks": false,
"has_fbs_stocks": false,
"archived": false,
"is_discounted": false,
"quants": []
},
{
"product_id": 2715190682,
"offer_id": "143210609",
"has_fbo_stocks": false,
"has_fbs_stocks": false,
"archived": false,
"is_discounted": false,
"quants": []
}
],
"total": 2,
"last_id": "WzI3MTUxOTA2ODIsMjcxNTE5MDY4Ml0="
}
}