Ecommerce
Brand

List

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

https://ecom.coderorbit.com/public/api/brand
 
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": 1,
      "updated_by": 1,
      "created_at": "2023-03-17T04:25:43.000000Z",
      "updated_at": "2023-03-17T04:25:43.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/public/api/brand?limit_per_page=1
 
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": 1,
      "updated_by": 1,
      "created_at": "2023-03-17T04:25:43.000000Z",
      "updated_at": "2023-03-17T04:25:43.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
}

=== 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/public/api/brand
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/brand?limit_per_page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/brand?name=apple
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/brand?page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/brand?data=all&limit_per_page=1&name=admin&page=1
==============================================================================================================

Single brand Show

Brand with relative data/product GET Method allow for brand

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

### Result

{
    "brand": {
        "id": 1,
        "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-17T10:41:05.000000Z",
        "updated_at": "2023-01-17T10:41:05.000000Z",
        "props": [
            {
                "id": 1,
                "brand_id": 3,
                "field_name": "check",
                "value": "test status",
                "created_at": null,
                "updated_at": null
            }
        ]
    },
 
    "products": [
        {
            "id": 3,
            "unique_id": "bd8C45f3BSm8XAa",
            "category": [
                "1",
                "2",
                "3",
                "4"
            ],
            "brand_id": 1,
            "vendor_id": 2,
            "country_id": 1,
            "district_id": 1,
            "police_station_id": 1,
            "name": "this first add product from vs code",
            "slug": "this_first_add_product_from_vs_code_bd8C45f3BSm8XAa",
            "sequence": 0,
            "icon": null,
            "thumbnails": null,
            "banner": null,
            "description": "this first add product from vs code description",
            "status": 1,
            "regular_price": 50,
            "current_price": 40,
            "dicount": 10,
            "dicount_type": "fixed",
            "stock": 20,
            "unit": "pcs",
            "minimum_order": null,
            "start_offer": "2023-02-19 12:55:51",
            "end_offer": "2023-11-19 12:55:51",
            "extend_props": {
                "test": "test one",
                "test2": "check"
            },
            "created_by": 1,
            "updated_by": 1,
            "created_at": "2023-05-10T21:19:54.000000Z",
            "updated_at": "2023-05-10T21:19:54.000000Z",
            "deleted_at": null
        },
        {
            ....
        }
    ]
}

All brand Show

Brand all with relative data/product GET Method allow for brand

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

### Result

[
    {
        "id": 1,
        "unique_id": "sLJvIENyg100Pxk",
        "parent_id": null,
        "name": "Apple update",
        "slug": "apple_update",
        "banner": "",
        "icon": "",
        "thumbnails": "",
        "commission": 10,
        "commission_type": "fixed",
        "status": 1,
        "description": "this is description",
        "extend_props": {
            "test": "theis extend props",
            "test2": "theis extend props 02"
        },
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2023-03-16T22:25:43.000000Z",
        "updated_at": "2023-03-17T03:47:38.000000Z",
        "props": [],
        "products": [
            {
                "id": 3,
                "unique_id": "bd8C45f3BSm8XAa",
                "category": [
                    "1",
                    "2",
                    "3",
                    "4"
                ],
                "brand_id": 1,
                "vendor_id": 2,
                "country_id": 1,
                "district_id": 1,
                "police_station_id": 1,
                "name": "this first add product from vs code",
                "slug": "this_first_add_product_from_vs_code_bd8C45f3BSm8XAa",
                "sequence": 0,
                "icon": null,
                "thumbnails": null,
                "banner": null,
                "description": "this first add product from vs code description",
                "status": 1,
                "regular_price": 50,
                "current_price": 40,
                "dicount": 10,
                "dicount_type": "fixed",
                "stock": 20,
                "unit": "pcs",
                "minimum_order": null,
                "start_offer": "2023-02-19 12:55:51",
                "end_offer": "2023-11-19 12:55:51",
                "extend_props": {
                    "test": "test one",
                    "test2": "check"
                },
                "created_by": 1,
                "updated_by": 1,
                "created_at": "2023-05-10T21:19:54.000000Z",
                "updated_at": "2023-05-10T21:19:54.000000Z",
                "deleted_at": null
            },
            {
                ...
            }
        ]
    },
    {
        ...
    },
    
]
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 - 2024 Copyright © Coder Orbit. All rights reserved.