API za opcije atributa po kodu

Preuzmite sve opcije atributa tako što ćete poslati kod atributa.

Poslednje ažuriranje:

Na ovoj stranici

Pregled

Pomoću API-ja za opcije atributa po kodu preuzmite sve opcije atributa čiji kod pošaljete.

Endpoint

MetodaPutanja
POST/api/v1/search/attributeOptionsByAttributeCode
POST/api/v2/search/attributeOptionsByAttributeCode

Telo zahteva

JSON
{
   "token": "{{ token }}", //required
   "attribute_code": "color" //required
}

Uspešan odgovor

JSON
{
    "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"
            }
        ]
    }
}