Ecommerce
Category

List

Get all category list by GET method with filter function customized option for you. below list of route with parameter

https://ecom.coderorbit.com/api/category
 
headers:{ 
    "Accept": "application/json",   
    "App-Master-Key": `${app_token}`
}

Result

{
  "current_page": 1,
  "data": [
    {
      "id": 1,
      "unique_id": "sLJvIENyg100Pxk",
      "parent_id": null,
      "name": "Apple",
      "slug": "apple",
      "banner": "",
      "icon": "",
      "thumbnails": "",
      "commission": 10,
      "commission_type": "fixed",
      "status": 1,
      "description": "this is description",
      "extend_props": {
        "test": "theis extend props 02"
      },
      "created_by": {
        "id": 1,
        "role_id": 1,
        "country_id": 18,
        "name": "Admin",
        "email": "admin@gmail.com",
        "extend_props": {
          "address": null,
          "city_id": 1,
          "thana_id": 494
        },
        "email_verified_at": null,
        "created_at": "2023-09-16T20:19:46.000000Z",
        "updated_at": "2025-01-07T14:41:12.000000Z",
        "unique_id": "8660998812",
        "otp": 874613,
        "status": 1,
        "description": null,
        "created_by": 0,
        "updated_by": 0,
        "deleted_at": null
      },
      "updated_by": {
        "id": 1,
        "role_id": 1,
        "country_id": 18,
        "name": "Admin",
        "email": "admin@gmail.com",
        "extend_props": {
          "address": null,
          "city_id": 1,
          "thana_id": 494
        },
      "created_at": "2023-09-16T20:19:46.000000Z",
      "updated_at": "2025-01-07T14:41:12.000000Z",
      "props": []
    },
    .........
    }
  ],
  "first_page_url": "",
  "from": 1,
  "last_page": 1,
  "last_page_url": "",
  "links": [
    {
      "url": null,
      "label": "« Previous",
      "active": false
    },
    {
      "url": "",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next »",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "",
  "per_page": 15,
  "prev_page_url": null,
  "to": 6,
  "total": 6
}
 

If you want to get by pagination to the list by GET method Here we have this featuer for you in ths route with parameter like: limit_per_page

http://ecom.coderorbit.com/api/category?limit_per_page=1
 
headers:{ 
    "Accept": "application/json",    
    "App-Master-Key" : `${app_token}`
}

Result

{
"data" : [
    {
      "id": 1,
      "unique_id": "sLJvIENyg100Pxk",
      "parent_id": null,
      "name": "Test Category",
      "slug": "Test Category",
      "banner": "",
      "icon": "",
      "thumbnails": "",
      "commission": 10,
      "commission_type": "fixed",
      "status": 1,
      "description": "this is description",
      "extend_props": {
        "test": "theis extend props 02"
      },
      "created_by": {
        "id": 1,
        "role_id": 1,
        "country_id": 18,
        "name": "Admin",
        "email": "admin@gmail.com",
        "extend_props": {
          "address": null,
          "city_id": 1,
          "thana_id": 494
        },
        "email_verified_at": null,
        "created_at": "2023-09-16T20:19:46.000000Z",
        "updated_at": "2025-01-07T14:41:12.000000Z",
        "unique_id": "8660998812",
        "otp": 874613,
        "status": 1,
        "description": null,
        "created_by": 0,
        "updated_by": 0,
        "deleted_at": null
      },
      "updated_by": {
        "id": 1,
        "role_id": 1,
        "country_id": 18,
        "name": "Admin",
        "email": "admin@gmail.com",
        "extend_props": {
          "address": null,
          "city_id": 1,
          "thana_id": 494
        },
        "email_verified_at": null,
        "created_at": "2023-09-16T20:19:46.000000Z",
        "updated_at": "2025-01-07T14:41:12.000000Z",
        "unique_id": "8660998812",
        "otp": 874613,
        "status": 1,
        "description": null,
        "created_by": 0,
        "updated_by": 0,
        "deleted_at": null
      },
      "created_at": "2023-09-16T20:19:46.000000Z",
      "updated_at": "2025-01-07T14:41:12.000000Z",
      "props": []
    },
    .........
 
  ],
  ,
  "first_page_url": "",
  "from": 1,
  "last_page": 1,
  "last_page_url": "",
  "links": [
    {
      "url": null,
      "label": "« Previous",
      "active": false
    },
    {
      "url": "",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next »",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "",
  "per_page": 15,
  "prev_page_url": null,
  "to": 100,
  "total": 100
}

=== Query Parameters ===

limit_per_page = 1 // Default 15
name = ''
page = 1 // number of page for pagination
data = all

Here is example url:

==============================================================================================================
GET = https://ecom.coderorbit.com/api/category
==============================================================================================================
GET = https://ecom.coderorbit.com/api/category?limit_per_page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/api/category?name=apple
==============================================================================================================
GET = https://ecom.coderorbit.com/api/category?page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/api/category?data=all&limit_per_page=1&name=admin&page=1
==============================================================================================================

Single Category Show

Category with relative data/product GET Method allow for category

https://ecom.coderorbit.com/api/category/with_data/{{id}}
headers:{ 
    "Accept": "application/json"    
    "App-Master-Key" : `${app_token}`
}

Result

{
  "category": {
    "id": 3,
    "unique_id": "KKL301176854",
    "parent_id": 0,
    "name": "Formal Shirt",
    "slug": "formal-shirt",
    "sequence": 0,
    "commission": 12,
    "commission_type": "parcentage",
    "icon": null,
    "thumbnails": null,
    "banner": null,
    "description": "Formal Shirt,",
    "status": 1,
    "extend_props": null,
    "created_by": 1,
    "updated_by": 1,
    "created_at": "2023-01-17T04:41:05.000000Z",
    "updated_at": "2023-01-17T04:41:05.000000Z",
    "props": []
  },
  "products": [
    {
      "id": 72,
      "unique_id": "xX3lDrKR6nVC7Rs",
      "category": [
        3
      ],
      "brand_id": 24,
      "vendor_id": 2,
      "country_id": 18,
      "district_id": null,
      "police_station_id": null,
      "name": "আড়াই মিঠাই (খেজুরের নলেন দানাদার গুঁড়) | Arai Mithai",
      "slug": "arai_mithai_khejurer_nlen_danadar_gunnd_arai_mithai_xX3lDrKR6nVC7Rs",
      "icon": "",
      "icon_small": "",
      "feature": "",
      "feature_small": "",
      "gallery": [
        ""
      ],
      "gallery_small": [
        ""
      ],
      "sequence": null,
      "description": {
        "time": 1736673761492,
        "blocks": [],
        "version": "2.29.1"
      },
      "attributes": {
        "colors": "regular",
        "sizes": "2.5kg"
      },
      "minimum_order": 1,
      "start_offer": null,
      "end_offer": null,
      "extend_props": null,
      "status": null,
      "shipping_cost": null,
      "regular_price": 1750,
      "current_price": 1650,
      "discount": null,
      "discount_type": 1,
      "stock": null,
      "seo_tag": null,
      "seo_description": null,
      "additional": null,
      "shipping": null,
      "payment_method": [],
      "created_by": 1,
      "updated_by": 1,
      "created_at": "2025-01-12T09:25:23.000000Z",
      "updated_at": "2025-01-12T09:25:23.000000Z",
      "deleted_at": null
    },
    {
      "id": 68,
      "unique_id": "FtQJURvlJVvAUKD",
      "category": [
        2,
        3,
        8
      ],
      "brand_id": 7,
      "vendor_id": 3,
      "country_id": 18,
      "district_id": 7,
      "police_station_id": 194,
      "name": "Random Product",
      "slug": "random_product_FtQJURvlJVvAUKD",
      "icon": "",
      "icon_small": "",
      "feature": "",
      "feature_small": "",
      "gallery": [
        "",
        ""
      ],
      "gallery_small": [
        "",
        ""
      ],
      "sequence": null,
      "description": {
        "time": 1737348841520,
        "blocks": [
          {
            "id": "L9sUyM7RFU",
            "type": "paragraph",
            "data": {
              "text": "    Adaptability is the ability to adjust and thrive in changing circumstances, and it is essential to navigating the complexities of life. Whether it's adapting to new technologies, social norms, or personal challenges, adaptability allows us to stay resilient and flexible in the face of change.  "
            }
          }
        ],
        "version": "2.29.1"
      },
      "attributes": {
        "colors": "Green,Olive",
        "sizes": "S_40,M_42,L_44"
      },
      "minimum_order": 1,
      "start_offer": null,
      "end_offer": null,
      "extend_props": null,
      "status": 1,
      "shipping_cost": null,
      "regular_price": 1200,
      "current_price": 1000,
      "discount": "200",
      "discount_type": 1,
      "stock": 20,
      "seo_tag": null,
      "seo_description": null,
      "additional": null,
      "shipping": null,
      "payment_method": null,
      "created_by": 1,
      "updated_by": 1,
      "created_at": "2025-01-07T05:39:58.000000Z",
      "updated_at": "2025-01-20T08:38:20.000000Z",
      "deleted_at": null
    },
    {
      "id": 59,
      "unique_id": "IY7fNVZmD2UuZnX",
      "category": [
        1,
        3
      ],
      "brand_id": 1,
      "vendor_id": 1,
      "country_id": 18,
      "district_id": 1,
      "police_station_id": 493,
      "name": "This is final product in dashboard",
      "slug": "this_is_final_product_in_dashboard_IY7fNVZmD2UuZnX",
      "icon": "",
      "icon_small": "",
      "feature": "",
      "feature_small": ""
      "gallery": [
        "",
        ""
      ],
      "gallery_small": [
        "",
        ""
      ],
      "sequence": null,
      "description": null,
      "attributes": {
        "colors": "White,Gray",
        "sizes": "S_small,M_medium,L_large"
      },
      "minimum_order": 1,
      "start_offer": "2024-07-16 16:19:37",
      "end_offer": "2024-09-30 16:19:37",
      "extend_props": [
        {
          "field_name": "test_field",
          "value": "test value"
        }
      ],
      "status": 1,
      "shipping_cost": null,
      "regular_price": 220,
      "current_price": 150,
      "discount": "70",
      "discount_type": 1,
      "stock": 22,
      "seo_tag": "this,test, product, tag,asfddsaf",
      "seo_description": "this,test, product, tag,asfddsaf",
      "additional": {
        "colors": "White,Gray",
        "sizes": "S_small,M_medium,L_large"
      },
      "shipping": null,
      "payment_method": null,
      "created_by": 1,
      "updated_by": 1,
      "created_at": "2024-07-21T09:44:47.000000Z",
      "updated_at": "2025-01-20T04:58:28.000000Z",
      "deleted_at": null
    },
    {
      "id": 58,
      "unique_id": "TERxMGUnRyqtAfY",
      "category": [
        1,
        3
      ],
      "brand_id": 1,
      "vendor_id": 1,
      "country_id": 18,
      "district_id": 1,
      "police_station_id": 493,
      "name": "This is final product in dashboard",
      "slug": "this_is_final_product_in_dashboard_TERxMGUnRyqtAfY",
      "icon": "",
      "icon_small": "",
      "feature": "",
      "feature_small": "",
      "gallery": [
        ""
      ],
      "gallery_small": [
        ""
      ],
      "sequence": null,
      "description": null,
      "attributes": {
        "colors": "White,Gray",
        "sizes": "S_small,M_medium,L_large"
      },
      "minimum_order": 1,
      "start_offer": "2024-07-16 16:19:37",
      "end_offer": "2024-09-30 16:19:37",
      "extend_props": [
        {
          "field_name": "check field",
          "value": "check value"
        },
        {
          "field_name": "check field 2",
          "value": "check value 2"
        }
      ],
      "status": 1,
      "shipping_cost": null,
      "regular_price": 22000,
      "current_price": 15000,
      "discount": "7000",
      "discount_type": 1,
      "stock": 2200,
      "seo_tag": "this,test, product, tag,asfddsaf",
      "seo_description": "this,test, product, tag,asfddsaf",
      "additional": {
        "colors": "White,Gray",
        "sizes": "S_small,M_medium,L_large"
      },
      "shipping": null,
      "payment_method": null,
      "created_by": 1,
      "updated_by": 1,
      "created_at": "2024-07-21T09:43:47.000000Z",
      "updated_at": "2024-10-25T00:46:44.000000Z",
      "deleted_at": null
    },
    {
      "id": 57,
      "unique_id": "40dEASR2QU0Lniv",
      "category": [
        1,
        3
      ],
      "brand_id": 1,
      "vendor_id": 2,
      "country_id": 18,
      "district_id": 1,
      "police_station_id": 493,
      "name": "This is final product in dashboard",
      "slug": "this_is_final_product_in_dashboard_40dEASR2QU0Lniv",
      "icon": "",
      "icon_small": "",
      "feature": "",
      "feature_small": "",
      "gallery": [
        "",
        "",
        ""
      ],
      "gallery_small": [
        "",
        "",
        ""
      ],
      "sequence": null,
      "description": null,
      "attributes": {
        "colors": "Red,Black",
        "sizes": "S,M,L"
      },
      "minimum_order": 1,
      "start_offer": "2024-07-16 16:19:37",
      "end_offer": "2024-09-30 16:19:37",
      "extend_props": [
        {
          "field_name": "check test",
          "value": "check value for test"
        }
      ],
      "status": 1,
      "shipping_cost": null,
      "regular_price": 220,
      "current_price": 150,
      "discount": "70",
      "discount_type": 1,
      "stock": 22,
      "seo_tag": "this,test, product, tag,asfddsaf",
      "seo_description": "this,test, product, tag,asfddsaf",
      "additional": {
        "colors": "White",
        "sizes": "S,M,L"
      },
      "shipping": null,
      "payment_method": null,
      "created_by": 1,
      "updated_by": 1,
      "created_at": "2024-07-16T10:25:17.000000Z",
      "updated_at": "2025-01-20T05:01:31.000000Z",
      "deleted_at": null
    }
  ]
}

All Category Show

Category all with relative data/product GET Method allow for category

https://ecom.coderorbit.com/api/category/with_data
 
headers:{ 
    "Accept": "application/json"    
    "App-Master-Key" : `${app_token}`
}

Result

[
  {
    "id": 1,
    "unique_id": "KKL157108999",
    "parent_id": 1,
    "name": "Mobile Name Edited.....",
    "slug": "mobile_name_edited",
    "sequence": 0,
    "commission": 0,
    "commission_type": "fixed",
    "icon": null,
    "thumbnails": null,
    "banner": null,
    "description": "mobile active stats",
    "status": 1,
    "extend_props": [],
    "created_by": 1,
    "updated_by": 1,
    "created_at": "2023-01-17T04:41:05.000000Z",
    "updated_at": "2025-01-05T04:00:13.000000Z",
    "props": [],
    "product": [
      {
        "id": 58,
        "unique_id": "TERxMGUnRyqtAfY",
        "category": [
          1,
          3
        ],
        "brand_id": 1,
        "vendor_id": 1,
        "country_id": 18,
        "district_id": 1,
        "police_station_id": 493,
        "name": "This is final product in dashboard",
        "slug": "this_is_final_product_in_dashboard_TERxMGUnRyqtAfY",
        "icon": "",
        "icon_small": "",
        "feature": "",
        "feature_small": "",
        "gallery": [
          ""
        ],
        "gallery_small": [
          ""
        ],
        "sequence": null,
        "description": null,
        "attributes": {
          "colors": "White,Gray",
          "sizes": "S_small,M_medium,L_large"
        },
        "minimum_order": 1,
        "start_offer": "2024-07-16 16:19:37",
        "end_offer": "2024-09-30 16:19:37",
        "extend_props": [
          {
            "field_name": "check field",
            "value": "check value"
          },
          {
            "field_name": "check field 2",
            "value": "check value 2"
          }
        ],
        "status": 1,
        "shipping_cost": null,
        "regular_price": 22000,
        "current_price": 15000,
        "discount": "7000",
        "discount_type": 1,
        "stock": 2200,
        "seo_tag": "this,test, product, tag,asfddsaf",
        "seo_description": "this,test, product, tag,asfddsaf",
        "additional": {
          "colors": "White,Gray",
          "sizes": "S_small,M_medium,L_large"
        },
        "shipping": null,
        "payment_method": null,
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2024-07-21T09:43:47.000000Z",
        "updated_at": "2024-10-25T00:46:44.000000Z",
        "deleted_at": null,
        "pivot": {
          "category_id": 1,
          "product_id": 58
        }
      },
      {
        "id": 57,
        "unique_id": "40dEASR2QU0Lniv",
        "category": [
          1,
          3
        ],
        "brand_id": 1,
        "vendor_id": 2,
        "country_id": 18,
        "district_id": 1,
        "police_station_id": 493,
        "name": "This is final product in dashboard",
        "slug": "this_is_final_product_in_dashboard_40dEASR2QU0Lniv",
        "icon": "",
        "icon_small": "",
        "feature": "",
        "feature_small": "",
        "gallery": [
          "",
          "",
          ""
        ],
        "gallery_small": [
          "",
          "",
          ""
        ],
        "sequence": null,
        "description": null,
        "attributes": {
          "colors": "Red,Black",
          "sizes": "S,M,L"
        },
        "minimum_order": 1,
        "start_offer": "2024-07-16 16:19:37",
        "end_offer": "2024-09-30 16:19:37",
        "extend_props": [
          {
            "field_name": "check test",
            "value": "check value for test"
          }
        ],
        "status": 1,
        "shipping_cost": null,
        "regular_price": 220,
        "current_price": 150,
        "discount": "70",
        "discount_type": 1,
        "stock": 22,
        "seo_tag": "this,test, product, tag,asfddsaf",
        "seo_description": "this,test, product, tag,asfddsaf",
        "additional": {
          "colors": "White",
          "sizes": "S,M,L"
        },
        "shipping": null,
        "payment_method": null,
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2024-07-16T10:25:17.000000Z",
        "updated_at": "2025-01-20T05:01:31.000000Z",
        "deleted_at": null,
        "pivot": {
          "category_id": 1,
          "product_id": 57
        }
      },
      {
        "id": 58,
        "unique_id": "TERxMGUnRyqtAfY",
        "category": [
          1,
          3
        ],
        "brand_id": 1,
        "vendor_id": 1,
        "country_id": 18,
        "district_id": 1,
        "police_station_id": 493,
        "name": "This is final product in dashboard",
        "slug": "this_is_final_product_in_dashboard_TERxMGUnRyqtAfY",
        "icon": "",
        "icon_small": "",
        "feature": "",
        "feature_small": "",
        "gallery": [
          ""
        ],
        "gallery_small": [
          ""
        ],
        "sequence": null,
        "description": null,
        "attributes": {
          "colors": "White,Gray",
          "sizes": "S_small,M_medium,L_large"
        },
        "minimum_order": 1,
        "start_offer": "2024-07-16 16:19:37",
        "end_offer": "2024-09-30 16:19:37",
        "extend_props": [
          {
            "field_name": "check field",
            "value": "check value"
          },
          {
            "field_name": "check field 2",
            "value": "check value 2"
          }
        ],
        "status": 1,
        "shipping_cost": null,
        "regular_price": 22000,
        "current_price": 15000,
        "discount": "7000",
        "discount_type": 1,
        "stock": 2200,
        "seo_tag": "this,test, product, tag,asfddsaf",
        "seo_description": "this,test, product, tag,asfddsaf",
        "additional": {
          "colors": "White,Gray",
          "sizes": "S_small,M_medium,L_large"
        },
        "shipping": null,
        "payment_method": null,
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2024-07-21T09:43:47.000000Z",
        "updated_at": "2024-10-25T00:46:44.000000Z",
        "deleted_at": null,
        "pivot": {
          "category_id": 1,
          "product_id": 58
        }
      },
      {
        "id": 59,
        "unique_id": "IY7fNVZmD2UuZnX",
        "category": [
          1,
          3
        ],
        "brand_id": 1,
        "vendor_id": 1,
        "country_id": 18,
        "district_id": 1,
        "police_station_id": 493,
        "name": "This is final product in dashboard",
        "slug": "this_is_final_product_in_dashboard_IY7fNVZmD2UuZnX",
        "icon": "",
        "icon_small": "",
        "feature": "",
        "feature_small": "",
        "gallery": [
          "",
          ""
        ],
        "gallery_small": [
          "",
          ""
        ],
        "sequence": null,
        "description": null,
        "attributes": {
          "colors": "White,Gray",
          "sizes": "S_small,M_medium,L_large"
        },
        "minimum_order": 1,
        "start_offer": "2024-07-16 16:19:37",
        "end_offer": "2024-09-30 16:19:37",
        "extend_props": [
          {
            "field_name": "test_field",
            "value": "test value"
          }
        ],
        "status": 1,
        "shipping_cost": null,
        "regular_price": 220,
        "current_price": 150,
        "discount": "70",
        "discount_type": 1,
        "stock": 22,
        "seo_tag": "this,test, product, tag,asfddsaf",
        "seo_description": "this,test, product, tag,asfddsaf",
        "additional": {
          "colors": "White,Gray",
          "sizes": "S_small,M_medium,L_large"
        },
        "shipping": null,
        "payment_method": null,
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2024-07-21T09:44:47.000000Z",
        "updated_at": "2025-01-20T04:58:28.000000Z",
        "deleted_at": null,
        "pivot": {
          "category_id": 1,
          "product_id": 59
        }
      },
      {
        "id": 61,
        "unique_id": "y92Gcdqpnb4Ps4p",
        "category": [
          1,
          107
        ],
        "brand_id": 8,
        "vendor_id": 2,
        "country_id": 18,
        "district_id": 1,
        "police_station_id": null,
        "name": "Samsung 2666 Ultra",
        "slug": "samsung_2666_ultra_y92Gcdqpnb4Ps4p"
        "icon": "",
        "icon_small": "",
        "feature": "",
        "feature_small": "",
        "gallery": [
          ""
        ],
        "gallery_small": [
          ""
        ],
        "sequence": null,
        "description": null,
        "attributes": {
          "colors": "regular",
          "sizes": "regular"
        },
        "minimum_order": 1,
        "start_offer": "2024-11-03 09:21:59",
        "end_offer": "2024-12-31 09:21:59",
        "extend_props": null,
        "status": 1,
        "shipping_cost": null,
        "regular_price": 1400,
        "current_price": 1200,
        "discount": "14.29",
        "discount_type": 0,
        "stock": 120,
        "seo_tag": null,
        "seo_description": null,
        "additional": null,
        "shipping": null,
        "payment_method": null,
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2024-11-03T03:27:31.000000Z",
        "updated_at": "2025-01-06T06:02:10.000000Z",
        "deleted_at": null,
        "pivot": {
          "category_id": 1,
          "product_id": 61
        }
      }
    ]
  },
  {
    ...
  }
]
CODER ORBIT
Bangladesh Office:
Call: 01534-645492
11/C, House-01, Lane-10
Road-11, Dhaka 1216
Email: support@coderorbit.com
Others
Domain & Hosting
Course
Debug
Portfolio
FOLLOW US
SUBSCRIBE US
Subscribe
2018 - 2025 Copyright © Coder Orbit. All rights reserved.