List
Get all bundle/package list by GET Method with filter function customized option for you. below list of route with parameter
http://ecom.coderorbit.com/public/api/bundle
headers:{
"Accept": "application/json"
"App-Master-Key" : `${app_token}`
}
### Result
"data" : [
{
"id": 1,
"unique_id": "3rDf6V02OhqIc2q",
"name": "Bundle Offer",
"slug": "bundle_offer_3rDf6V02OhqIc2q",
"sequence": 1,
"description": "this for boundle products",
"banner": "",
"icon": "",
"thumbnails": "",
"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": []
},
.........
],
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/bundle?limit_per_page=1
headers:{
"Accept": "application/json"
"App-Master-Key" : `${app_token}`
}
### Result
"data" : [
{
"id": 1,
"unique_id": "3rDf6V02OhqIc2q",
"name": "Bundle Offer",
"slug": "bundle_offer_3rDf6V02OhqIc2q",
"sequence": 1,
"description": "this for boundle products",
"banner": "",
"icon": "",
"thumbnails": "",
"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": "https://ecom.coderorbit.com/public/api/boundle?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://ecom.coderorbit.com/public/api/boundle?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://ecom.coderorbit.com/public/api/boundle?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://ecom.coderorbit.com/public/api/boundle",
"per_page": 15,
"prev_page_url": null,
"to": 100,
"total": 100
}
Query Parameters
=== Query Parameters ===
limit_per_page = 1 // Default 15
name = ''
page = 1 // number of page for pagination
data = all
Advance Query Parameters
{
"product_id": [4,7],
"name": "Bundle Offer",
"orderBy": "DESC",
"status": 1,
"price": 100,
"price_range": "10,90",
"start_offer": "2023-05-11",
"end_offer": "2023-12-11",
"range_start_from_offer": "2023-12-11",
"range_start_to_offer": "2023-12-11",
"range_end_from_offer": "2023-12-11",
"range_end_to_offer": "2023-12-11",
"extendProps": {
"test": "hello"
},
"or_product_id": [4,7],
"or_name": "Bundle Offer",
"or_orderBy": "DESC",
"or_status": 1,
"or_price": 100,
"or_price_range": "10,90",
"or_start_offer": "2023-05-11",
"or_end_offer": "2023-12-11",
"or_range_start_from_offer": "2023-12-11",
"or_range_start_to_offer": "2023-12-11",
"or_range_end_from_offer": "2023-12-11",
"or_range_end_to_offer": "2023-12-11",
"or_extendProps": {
"test": "hello"
}
}
Here is example url:
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/bundle
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/bundle?limit_per_page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/bundle?name=apple
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/bundle?page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/bundle?data=all&limit_per_page=1&name=admin&page=1
==============================================================================================================
Single Show
https://ecom.coderorbit.com/public/api/bundle/{{id}}
headers:{
"Accept": "application/json"
"App-Master-Key" : `${app_token}`
}
### Result
"data": {
"id": 1,
"unique_id": "S2D8ombqszBTG8n",
"name": "Bundle Offer",
"slug": "bundle_offer_S2D8ombqszBTG8n",
"sequence": 1,
"icon": null,
"thumbnails": null,
"banner": "",
"description": "this for description",
"status": 1,
"price": 100,
"bundle_price": 90,
"product_ids": [
5,
7
],
"start_offer": "2023-05-11 03:56:21",
"end_offer": "2023-12-11 03:56:21",
"extend_props": {
"test": "hello",
"test2": "check for required"
},
"created_by": 1,
"updated_by": 1,
"created_at": "2023-05-21T09:11:28.000000Z",
"updated_at": "2023-05-21T09:11:38.000000Z",
"deleted_at": null,
"products": [
{
"id": 5,
"unique_id": "5fZ5AifX1cKoLAW",
"category": [
"1",
"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_5fZ5AifX1cKoLAW",
"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": null,
"start_offer": "2023-02-19 12:55:51",
"end_offer": "2023-11-19 12:55:51",
"extend_props": {
"test": "test one",
"test2": "test two"
},
"created_by": 1,
"updated_by": 1,
"created_at": "2023-05-10T21:25:45.000000Z",
"updated_at": "2023-05-10T21:25:53.000000Z",
"deleted_at": null,
"pivot": {
"bundle_id": 1,
"product_id": 5
}
},
{
....
}
]
}