Get products attributes data
Retrieves product attributes descriptions with or without filtering
Function GetProductsAttributesData(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 /v4/products/info/attributes
1C:Enterprise/OneScript code example
ClientID = "2479669";
APIKey = "09f65e9f-262d-4aca...";
IDArray = New Array;
IDArray.Add("143210609");
Filter = New Structure;
Filter.Insert("visibility", "ALL");
Filter.Insert("offer_id" , IDArray);
Result = OPI_Ozon.GetProductsAttributesData(ClientID, APIKey, Filter);
- Bash
- CMD/Bat
oint ozon GetProductsAttributesData \
--clientid "***" \
--apikey "***" \
--filter "{'visibility':'ALL','offer_id':['143210609']}"
oint ozon GetProductsAttributesData ^
--clientid "***" ^
--apikey "***" ^
--filter "{'visibility':'ALL','offer_id':['143210609']}"
Result
{
"result": [
{
"id": 2715190682,
"barcode": "",
"name": "Комплект защитных плёнок для X3 NFC. Темный хлопок",
"offer_id": "143210609",
"height": 250,
"depth": 10,
"width": 150,
"dimension_unit": "mm",
"weight": 100,
"weight_unit": "g",
"description_category_id": 17028922,
"type_id": 91565,
"primary_image": "",
"model_info": {
"model_id": 0,
"count": 0
},
"images": [
"https://hut.openintegrations.dev/test_data/picture.jpg",
"https://hut.openintegrations.dev/test_data/picture2.jpg"
],
"pdf_list": [],
"attributes": [
{
"id": 85,
"complex_id": 0,
"values": [
{
"dictionary_value_id": 5060050,
"value": "Samsung"
}
]
},
{
"id": 9048,
"complex_id": 0,
"values": [
{
"dictionary_value_id": 0,
"value": "Комплект защитных плёнок для X3 NFC. Темный хлопок"
}
]
},
{
"id": 10096,
"complex_id": 0,
"values": [
{
"dictionary_value_id": 61576,
"value": "серый"
}
]
},
{
"id": 4180,
"complex_id": 0,
"values": [
{
"dictionary_value_id": 0,
"value": "Комплект защитных плёнок для X3 NFC. Темный хлопок"
}
]
},
{
"id": 9024,
"complex_id": 0,
"values": [
{
"dictionary_value_id": 0,
"value": "143210609"
}
]
}
],
"complex_attributes": [
{
"id": 21837,
"complex_id": 100001,
"values": [
{
"dictionary_value_id": 0,
"value": "viedo1"
}
]
},
{
"id": 21841,
"complex_id": 100001,
"values": [
{
"dictionary_value_id": 0,
"value": "https://rutube.ru/video/c6cc4d620b1d4338901770a44b3e82f4/"
}
]
}
],
"color_image": "",
"sku": 0,
"barcodes": [],
"attributes_with_defaults": [
10100,
11794,
22074,
22806,
23120,
23121,
23133,
23134,
23137,
23138,
23173,
23183,
23184,
23185,
23186,
23187,
23188
]
}
],
"total": 1,
"last_id": ""
}