API
Categories

Categories API

This API is used to fetch all the categories that are present in our system.

ParameterValue
URL/api/v1/brands/{brand_id}/categories
MethodGET
URL Parameterbrand_id

Example Curl

curl 'https://m.mirrar.com/api/v1/brands/{brand_id}/categories' \
  -H 'accept: */*' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'cache-control: no-cache' \
  -H 'pragma: no-cache' \
  -H 'priority: u=1, i' \
  -H 'sec-ch-ua: "Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-site' \

Response

{
    "meta": {
        "message": "Success",
        "code": 200
    },
    "data": [
        {
            "category": "Earrings",
            "label": "Earrings",
            "type": "ear",
            "sequence": 1,
            "sets_info": [],
            "active_product_count": 16
        },
        {
            "category": "Necklaces",
            "label": "Necklaces",
            "type": "neck",
            "sequence": 2,
            "sets_info": [],
            "active_product_count": 11
        },
        {
            "category": "Sets",
            "label": "Sets",
            "type": "set",
            "sequence": 3,
            "sets_info": [
                {
                    "set_category": "Sets",
                    "category": "Earrings",
                    "type": "ear",
                    "category_singular": "earring",
                    "data_key": "earring_data",
                    "code_key": "earring"
                },
                {
                    "set_category": "Sets",
                    "category": "Necklaces",
                    "type": "neck",
                    "category_singular": "necklace",
                    "data_key": "necklace_data",
                    "code_key": "necklace"
                }
            ],
            "active_product_count": 3
        },
        {
            "category": "Rings",
            "label": "Rings",
            "type": "finger",
            "sequence": 4,
            "sets_info": [],
            "active_product_count": 24
        },
        {
            "category": "Bracelets",
            "label": "Bracelets",
            "type": "wrist",
            "sequence": 5,
            "sets_info": [],
            "active_product_count": 8
        },
        {
            "category": "Maangtika",
            "label": "Maangtika",
            "type": "forehead",
            "sequence": 5,
            "sets_info": [],
            "active_product_count": 0
        },
        {
            "category": "Nosering",
            "label": "Nosering",
            "type": "nose",
            "sequence": 6,
            "sets_info": [],
            "active_product_count": 0
        },
        {
            "category": "Mathapatti",
            "label": "Mathapatti",
            "type": "forehead",
            "sequence": 7,
            "sets_info": [],
            "active_product_count": 0
        },
        {
            "category": "Eyewear",
            "label": "Eyewear",
            "type": "eye",
            "sequence": 8,
            "sets_info": [],
            "active_product_count": 0
        },
        {
            "category": "Watch",
            "label": "Watch",
            "type": "wrist",
            "sequence": 9,
            "sets_info": [],
            "active_product_count": 19
        },
        {
            "category": "Handbag",
            "label": "Handbag",
            "type": "handbag",
            "sequence": 99,
            "sets_info": [],
            "active_product_count": 0
        }
    ]
}