Ecommerce
Vendor Register

Vendor Register

Vendors can register using the vendor registration route, which only allows the POST method.

https://ecom.coderorbit.com/api/vendor
 
headers:{ 
    "Accept": "application/json",
    "Authorization" : `Bearer ${access_token}`, // Access token is generated when a new user registers.
    "App-Master-Key": `${app_token}`
}
 
// A vendor’s status is always set to inactive ("status": 0) upon registration and requires approval by an admin.
 
body: {
 
    "name": "Sami",
    "banner": "",
    "icon": "",
    "description": "Testing Vendor",
    "extend_props": {
        "shop_name": "xyz shop",
        "shop_address": "Kafrul, Dhaka",
        "shop_contact": "0123456789"
    }
    
}

Result

{
    "0": "Success",
    "store_data": {
        "id": 4,
        "unique_id": "6VaCpMuVwOwdQ8l",
        "user_id": null,
        "name": "Sami",
        "slug": "sami_6VaCpMuVwOwdQ8l",
        "icon": null,
        "thumbnails": null,
        "banner": null,
        "description": "Testing Vendor",
        "status": 0,
        "extend_props": {
            "shop_name": "xyz shop",
            "shop_address": "Kafrul, Dhaka",
            "shop_contact": "0123456789"
        },
        "created_by": 38,
        "updated_by": 38,
        "created_at": "2025-01-23T11:16:27.000000Z",
        "updated_at": "2025-01-23T11:16:27.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/api/vendorLists
 
headers:{ 
    "Accept": "application/json", 
    "App-Master-Key": `${app_token}`
}

Result

{
    "current_page": 1,
    "data": [
            {
                "id": 4,
                "unique_id": "6VaCpMuVwOwdQ8l",
                "user_id": null,
                "name": "Sami",
                "slug": "sami_6VaCpMuVwOwdQ8l",
                "icon": null,
                "thumbnails": null,
                "banner": null,
                "description": "Testing Vendor",
                "status": 0,
                "extend_props": {
                    "shop_name": "xyz shop",
                    "shop_address": "Kafrul, Dhaka",
                    "shop_contact": "0123456789"
                },
                "created_by": 38,
                "updated_by": 38,
                "created_at": "2025-01-23T11:16:27.000000Z",
                "updated_at": "2025-01-23T11:16:27.000000Z",
                "props": [
                    {
                        "id": 1,
                        "vendor_id": 4,
                        "field_name": "shop_name",
                        "value": "xyz shop",
                        "created_at": null,
                        "updated_at": null
                    },
                    {
                        "id": 2,
                        "vendor_id": 4,
                        "field_name": "shop_address",
                        "value": "Kafrul, Dhaka",
                        "created_at": null,
                        "updated_at": null
                    },
                    {
                        "id": 3,
                        "vendor_id": 4,
                        "field_name": "shop_contact",
                        "value": "0123456789",
                        "created_at": null,
                        "updated_at": null
                    }
                ]
            },
            {
                ...,
 
                "props": [
                    {
                        ...
                    }
                ]
            }
    ],
    "first_page_url": "https://ecom.coderorbit.com/api/vendorLists?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://ecom.coderorbit.com/api/vendorLists?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://ecom.coderorbit.com/api/vendorLists?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://ecom.coderorbit.com/api/vendorLists",
    "per_page": 15,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}

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

Result

{
    "current_page": 1,
    "data": [
        {
        "id": 4,
        "unique_id": "6VaCpMuVwOwdQ8l",
        "user_id": null,
        "name": "Sami",
        "slug": "sami_6VaCpMuVwOwdQ8l",
        "icon": null,
        "thumbnails": null,
        "banner": null,
        "description": "Testing Vendor",
        "status": 0,
        "extend_props": {
            "shop_name": "xyz shop",
            "shop_address": "Kafrul, Dhaka",
            "shop_contact": "0123456789"
        },
        "created_by": 38,
        "updated_by": 38,
        "created_at": "2025-01-23T11:16:27.000000Z",
        "updated_at": "2025-01-23T11:16:27.000000Z",
        "props": [
            {
                "id": 1,
                "vendor_id": 4,
                "field_name": "shop_name",
                "value": "xyz shop",
                "created_at": null,
                "updated_at": null
            },
            {
                "id": 2,
                "vendor_id": 4,
                "field_name": "shop_address",
                "value": "Kafrul, Dhaka",
                "created_at": null,
                "updated_at": null
            },
                {
                "id": 3,
                "vendor_id": 4,
                "field_name": "shop_contact",
                "value": "0123456789",
                "created_at": null,
                "updated_at": null
            }
        ]
        },
        {
            ...,
 
            "props": [
                {
                    ...
                }
            ]
        }
    ],
    "first_page_url": "https://ecom.coderorbit.com/api/vendorLists?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://ecom.coderorbit.com/api/vendorLists?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://ecom.coderorbit.com/api/vendorLists?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://ecom.coderorbit.com/api/vendorLists",
    "per_page": 2,
    "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/api/vendorLists
==============================================================================================================
GET = https://ecom.coderorbit.com/api/vendorLists?limit_per_page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/api/vendorLists?data=all
==============================================================================================================
GET = https://ecom.coderorbit.com/api/vendorLists?page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/api/vendorLists?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/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/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/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 - 2025 Copyright © Coder Orbit. All rights reserved.