Ecommerce
Vendor Register

Vendor Register

Vendor can register by vendor register route, vendor register route allow only POST Method

https://ecom.coderorbit.com/public/api/vendor
 
headers:{ 
    "Accept": "application/json",
    "Authorization" : `Bearer ${token}`, 
    "App-Master-Key": `${app_token}`
}
 
# vendor always status inactive register, approved by admin
 
body: {
 
    "name": "Shohagh",
    "banner": "",
    "icon": "",
    "description": "Vendor description",
    "extend_props": {
        "shop_name": "showp name",
        "shop_address": "Mirpur, Dhaka",
        "shop_contact": "",
        .....
    }
    
}

### Result

 
{
    "0": "Success",
    "store_data": {
        "id": 2,
        "unique_id": "0SzOZGI7dqhj7tv",
        "name": "Shohagh",
        "slug": "shohagh_0SzOZGI7dqhj7tv",
        "icon": null,
        "thumbnails": null,
        "banner": null,
        "description": "Vendor description",
        "status": 1,
        "extend_props": {
            "shop_name": "showp name",
            "shop_address": "Mirpur, Dhaka",
            "shop_contact": ""
        },
        "created_by": 14,
        "updated_by": 14,
        "created_at": "2023-07-02T07:43:17.000000Z",
        "updated_at": "2023-07-02T07:43:17.000000Z"
    }
}
 

List

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

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

### Result

{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "unique_id": "5XqqpOvtq7vYobX",
            "user_id": null,
            "name": "majad islam",
            "slug": "majad_islam",
            "icon": null,
            "thumbnails": null,
            "banner": "",
            "description": null,
            "status": null,
            "extend_props": null,
            "created_by": 1,
            "updated_by": 1,
            "created_at": "2023-05-08T20:37:30.000000Z",
            "updated_at": "2023-05-08T20:42:07.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": 1,
    "total": 1
}
 

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/vendorLists?limit_per_page=1
 
headers:{ 
    "Accept": "application/json",    
    "App-Master-Key" : `${app_token}`
}

### Result

{
  "current_page": 1,
  "data": [
    
    {
      "id": 1,
      "unique_id": "0SzOZGI7dqhj7tv",
      "name": "Shohagh",
      "slug": "shohagh_0SzOZGI7dqhj7tv",
      "icon": null,
      "thumbnails": null,
      "banner": null,
      "description": "Vendor description",
      "status": 1,
      "extend_props": {
        "shop_name": "Marium IT",
        "shop_address": "Mirpur, Dhaka",
        "shop_contact": ""
      },
      "created_by": 14,
      "updated_by": 14,
      "created_at": "2023-07-02T07:43:17.000000Z",
      "updated_at": "2023-07-02T07:43:17.000000Z",
      "props": [
        {
          "id": 1,
          "vendor_id": 2,
          "field_name": "shop_name",
          "value": "shop name",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 2,
          "vendor_id": 2,
          "field_name": "shop_address",
          "value": "Mirpur, Dhaka",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 3,
          "vendor_id": 2,
          "field_name": "shop_contact",
          "value": "",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
        ....
    }
  ],
  "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": 2,
  "total": 2
}

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

Vendor Details

All data show with product & feedback, others details, Vendor shop page detials

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

### Result

{
    "data": {
        "id": 1,
        "unique_id": "5XqqpOvtq7vYobX",
        "user_id": null,
        "name": "majad islam",
        "slug": "majad_islam",
        "icon": null,
        "thumbnails": null,
        "banner": "",
        "description": null,
        "status": null,
        "extend_props": null,
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2023-05-08T20:37:30.000000Z",
        "updated_at": "2023-05-08T20:42:07.000000Z",
        "feedback_count": 1,
        "feedback_sum_rattings": 4.5,
        "orders_count": 1,
        "feedback": [
            {
                "id": 3,
                "vendor_id": 1,
                "product_id": 7,
                "customer_id": 1,
                "rattings": 4.5,
                "comments": "this product is very good quality",
                "status": 1,
                "created_by": 1,
                "updated_by": 1,
                "created_at": "2023-09-17T09:00:34.000000Z",
                "updated_at": "2023-09-17T09:51:29.000000Z"
            },
            {
                ...
            }
        ],
        "products": [
            {
                "id": 6,
                "unique_id": "mXRTVx49FBOxpaD",
                "category": [
                    "3"
                ],
                "brand_id": 1,
                "vendor_id": 1,
                "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_mXRTVx49FBOxpaD",
                "sequence": 0,
                "icon": null,
                "thumbnails": null,
                "banner": "",
                "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": 1,
                "start_offer": "2023-02-19 12:55:51",
                "end_offer": "2023-11-19 12:55:51",
                "extend_props": {
                    "name": "majad",
                    "test2": "test two"
                },
                "created_by": 1,
                "updated_by": 1,
                "created_at": "2023-05-10T21:53:45.000000Z",
                "updated_at": "2023-05-10T21:53:54.000000Z",
                "deleted_at": null
            },
            {
                ...
            }
        ]
    }
}

Vendor list with data

Vendor all with relative data/product GET Method allow for vendor

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

### Result

[
    {
        "id": 1,
        "unique_id": "5XqqpOvtq7vYobX",
        "user_id": null,
        "name": "majad islam",
        "slug": "majad_islam",
        "icon": null,
        "thumbnails": null,
        "banner": "",
        "description": null,
        "status": null,
        "extend_props": null,
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2023-05-08T20:37:30.000000Z",
        "updated_at": "2023-05-08T20:42:07.000000Z",
        "props": [],
        "products": [
            {
                "id": 6,
                "unique_id": "mXRTVx49FBOxpaD",
                "category": [
                    "3"
                ],
                "brand_id": 1,
                "vendor_id": 1,
                "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_mXRTVx49FBOxpaD",
                "sequence": 0,
                "icon": null,
                "thumbnails": null,
                "banner": "",
                "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": 1,
                "start_offer": "2023-02-19 12:55:51",
                "end_offer": "2023-11-19 12:55:51",
                "extend_props": {
                    "name": "majad",
                    "test2": "test two"
                },
                "created_by": 1,
                "updated_by": 1,
                "created_at": "2023-05-10T21:53:45.000000Z",
                "updated_at": "2023-05-10T21:53:54.000000Z",
                "deleted_at": null
            },
            {
                ....
            }
        ]
    }
]

Single vendor Show

Vendor with relative data/product GET Method allow for vendor

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

### Result

{
    "vendor": {
        "id": 1,
        "unique_id": "5XqqpOvtq7vYobX",
        "user_id": null,
        "name": "majad islam",
        "slug": "majad_islam",
        "icon": null,
        "thumbnails": null,
        "banner": "",
        "description": null,
        "status": null,
        "extend_props": null,
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2023-05-08T20:37:30.000000Z",
        "updated_at": "2023-05-08T20:42:07.000000Z",
        "props": []
    },
    "products": [
        {
            "id": 6,
            "unique_id": "mXRTVx49FBOxpaD",
            "category": [
                "3"
            ],
            "brand_id": 1,
            "vendor_id": 1,
            "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_mXRTVx49FBOxpaD",
            "sequence": 0,
            "icon": null,
            "thumbnails": null,
            "banner": "",
            "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": 1,
            "start_offer": "2023-02-19 12:55:51",
            "end_offer": "2023-11-19 12:55:51",
            "extend_props": {
                "name": "majad",
                "test2": "test two"
            },
            "created_by": 1,
            "updated_by": 1,
            "created_at": "2023-05-10T21:53:45.000000Z",
            "updated_at": "2023-05-10T21:53: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.