Я пытаюсь получить sku, name и category_ids для определенного продукта через вызов REST. К сожалению, я не знаю, как получить только category_ids
Я использую следующий вызов REST:
/ V1 / продукты? SearchCriteria [filterGroups] [0] [фильтры] [0] [поле] = ы & полей = пунктов [ы, имя, custom_attributes] & searchCriteria [filterGroups] [0] [фильтры] [0] [значение] = 66 -110101000
Я всегда получаю ответ, подобный этому:
{
"items": [
{
"sku": "66-110101000",
"name": "Fruchtgummi-Standardformen 10 g (100 Stück)",
"custom_attributes": [
{
"attribute_code": "description",
"value": "Fruchtgummi-Standardformen mit 10 % Fruchtgehalt aus Fruchtsaftkonzentrat, natürlichen Aromen und färbenden Pflanzenauszügen, farblich und geschmacklich bunt gemischt, in glänzend- oder matt-kaschiertem transparentem alternativ weißem Werbetütchen verpackt."
},
{
"attribute_code": "color",
"value": "6923"
},
{
"attribute_code": "category_ids",
"value": [
"104"
]
},
{
"attribute_code": "has_options",
"value": "0"
},
{
"attribute_code": "tax_class_id",
"value": "2"
},
{
"attribute_code": "gift_message_available",
"value": "0"
},
{
"attribute_code": "color_exact",
"value": "2508"
},
{
"attribute_code": "package_type",
"value": "Karton"
},
{
"attribute_code": "shelf_life",
"value": "ca. 12 Monate bei sachgerechter Lagerung"
},
{
"attribute_code": "supplier_sku",
"value": "110101000"
},
{
"attribute_code": "product_name_supplier",
"value": "Fruchtgummi-Standardformen 10 g (100 Stück)"
},
{
"attribute_code": "customs_tariff_number",
"value": "17049065"
},
{
"attribute_code": "dimensions",
"value": "ca. 85 x 60 mm mm"
},
{
"attribute_code": "sw_featured",
"value": "0"
},
{
"attribute_code": "keyword_variable",
"value": "Werbeartikel"
},
{
"attribute_code": "weight_with_package",
"value": "0.01"
},
{
"attribute_code": "product_weight",
"value": "1"
},
{
"attribute_code": "use_in_crosslinking",
"value": "1"
},
{
"attribute_code": "in_html_sitemap",
"value": "1"
},
{
"attribute_code": "in_xml_sitemap",
"value": "1"
}
]
}
]
}
Все, что меня интересует, это отображение sku, name и category_ids.
Надеюсь, вы можете помочь мне, как изменить мой вызов API.
Заранее спасибо!