Category Tree

  • Through this service; You can view the product category tree of Modanisa.
  • GET https://marketplace-stg.modanisa.com/api/marketplace/categories

    Response:
    {
        "success": true,
        "data": {
            "categories": [
                {
                    "id": 1071,
                    "name": "Başörtüsü",
                    "parent_id": 0,
                    "fabric_mandatory": true,
                    "sub_categories": [
                        {
                            "id": 1075,
                            "name": "Eşarp Aksesuarı",
                            "parent_id": 1071,
                            "fabric_mandatory": true,
                            "sub_categories": null
                        },
                        {
                            "id": 1978,
                            "name": "Kaymaz Bone",
                            "parent_id": 1071,
                            "fabric_mandatory": true,
                            "sub_categories": null
                        }
                    ]
                },
                {
                    "id": 1077,
                    "name": "Tesettür Giyim",
                    "parent_id": 0,
                    "fabric_mandatory": false,
                    "sub_categories": [
                        {
                            "id": 1144,
                            "name": "Triko",
                            "parent_id": 1077,
                            "fabric_mandatory": false,
                            "sub_categories": [
                                {
                                    "id": 1932,
                                    "name": "Triko Tunik",
                                    "parent_id": 1144,
                                    "fabric_mandatory": false,
                                    "sub_categories": null
                                },
                                {
                                    "id": 1933,
                                    "name": "Triko Tesettür Elbise",
                                    "parent_id": 1144,
                                    "fabric_mandatory": false,
                                    "sub_categories": null
                                }
                            ]
                        },
                        {
                            "id": 1624,
                            "name": "Elbiseler",
                            "parent_id": 1077,
                            "sub_categories": [
                                {
                                    "id": 1078,
                                    "name": "Tesettür Elbise",
                                    "parent_id": 1624,
                                    "sub_categories": null
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "errors": null
    }
    
    
    Answer Parameters:
    Parameter Explanation
    id Category id
    name Category name
    sub_categories Sub categories
    parent_id Top category id