Pregled
Pomoću API-ja za opcije atributa po kodu preuzmite sve opcije atributa čiji kod pošaljete.
Endpoint
| Metoda | Putanja |
|---|---|
POST | /api/v1/search/attributeOptionsByAttributeCode |
POST | /api/v2/search/attributeOptionsByAttributeCode |
Telo zahteva
{
"token": "{{ token }}", //required
"attribute_code": "color" //required
}
Uspešan odgovor
{
"data": {
"id": 38518077,
"attribute_id": 93,
"attribute_code": "color",
"default_attribute_code": "color",
"options": [
{
"id": 38518078,
"option_id": "49",
"option_label": "Black",
"option_value": "black"
},
{
"id": 38518079,
"option_id": "50",
"option_label": "Blue",
"option_value": "blue"
}
]
}
}