Ecommerce
Package/Bundle Product

Create

You can add unlimited bundle/package by bundle/package create route, bundle/package route allow only POST Method

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/bundle
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}
 
body:{
    "name":"Bundle Offer",
    "description": "this for bundle products", 
    "product_ids": [5,7],
    "sequence": 1,
    "status": 1, 
    "bundle_price":90, 
    "price":100, 
    "start_offer":"2023-05-11 03:56:21", 
    "end_offer":"2023-12-11 03:56:21", 
 
    "banner":"data:image/jpeg;base64,/9j/4AAQSkZJRgAB.....", 
    "extend_props": {
        "test" : "hello",
        "test2" : "check for required"
    },
    
}

### Result

{
    "0": "Success",
  "store_data": {
    "id": 3,
    "unique_id": "3rDf6V02OhqIc2q",
    "name": "Bundle Offer",
    "slug": "bundle_offer_3rDf6V02OhqIc2q",
    "sequence": 1,
    "icon": null,
    "thumbnails": null,
    "banner": "",
    "description": "this for boundle products",
    "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:15:10.000000Z",
    "updated_at": "2023-05-21T09:15:19.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 product title",
        "slug": "",
        "sequence": 0,
        "icon": null,
        "thumbnails": null,
        "banner": "",
        "description": "this product title 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": 3,
          "product_id": 5
        }
      },
      {
        ....
      }
    ]
  }
}
 

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/admin/{{app_token}}/bundle
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${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/admin/{{app_token}}/bundle?limit_per_page=1
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${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/admin/{{app_token}}/boundle?page=1",
  "from": 1,
  "last_page": 1,
  "last_page_url": "https://ecom.coderorbit.com/public/api/admin/{{app_token}}/boundle?page=1",
  "links": [
    {
      "url": null,
      "label": "« Previous",
      "active": false
    },
    {
      "url": "https://ecom.coderorbit.com/public/api/admin/{{app_token}}/boundle?page=1",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next »",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "https://ecom.coderorbit.com/public/api/admin/{{app_token}}/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/admin/{{app_token}}/bundle
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/admin/{{app_token}}/bundle?limit_per_page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/admin/{{app_token}}/bundle?name=apple
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/admin/{{app_token}}/bundle?page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/admin/{{app_token}}/bundle?data=all&limit_per_page=1&name=admin&page=1
==============================================================================================================

Single Show

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/bundle/{{id}}
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${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
        }
      },
      {
        ....
      }
    ]
  }

Edit Bundle

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/bundle/{{id}}/edit
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${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
        }
      },
      {
        ....
      }
    ]
  }
}

Update Slide

Method allow for Slide update PUT/PATCH/POST

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide/{{id}}
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}
body:{
    "name":"Bundle Offer",
    "description": "this for bundle products", 
    "product_ids": [5,7],
    "sequence": 1,
    "status": 1, 
    "bundle_price":90, 
    "price":100, 
    "start_offer":"2023-05-11 03:56:21", 
    "end_offer":"2023-12-11 03:56:21", 
 
    "banner":"data:image/jpeg;base64,/9j/4AAQSkZJRgAB.....", 
    "extend_props": {
        "test" : "hello",
        "test2" : "check for required"
    },
}

### 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
        }
      },
      {
        ....
      }
    ]
  }
}

DELETE

Method allow for slide delete DELETE

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/bundle/{{id}}
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}

### Result

Success

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.