Ecommerce
Package/Bundle Product

List

Retrieve the complete list of bundles/packages using the GET method, with a filter function and customizable options available for you. Below is the list of routes with their parameters:

http://ecom.coderorbit.com/api/bundle
 
headers:{ 
    "Accept": "application/json"    
    "App-Master-Key" : `${app_token}`
}

Result

{
"current_page": 1,
"data" : [
    {
      "id": 1,
      "unique_id": "IYNocjTuvfFvzJ1",
      "name": "Bundle Offer",
      "slug": "bundle_offer_IYNocjTuvfFvzJ1",
      "sequence": 1,
      "icon": null,
      "thumbnails": null,
      "banner": null,
      "description": "this for bundle 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": "2024-01-26T07:53:43.000000Z",
      "updated_at": "2024-01-26T07:53:43.000000Z",
      "deleted_at": null,
      "props": [
        {
          "id": 1,
          "bundle_id": 1,
          "field_name": "test",
          "value": "hello",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 2,
          "bundle_id": 1,
          "field_name": "test2",
          "value": "check for required",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
    .........
    },
  ],
  "first_page_url": "https://ecom.coderorbit.com/api/bundle?page=1",
  "from": 1,
  "last_page": 1,
  "last_page_url": "https://ecom.coderorbit.com/api/bundle?page=1",
  "links": [
    {
      "url": null,
      "label": "« Previous",
      "active": false
    },
    {
      "url": "https://ecom.coderorbit.com/api/bundle?page=1",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next »",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "https://ecom.coderorbit.com/api/bundle",
  "per_page": 15,
  "prev_page_url": null,
  "to": 3,
  "total": 3
}

If you want to paginate the list using the GET method, we offer this feature on this route with a parameter such as: limit_per_page.

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

Result

{
  "current_page": 1,
  "data": [
    {
      "id": 1,
      "unique_id": "IYNocjTuvfFvzJ1",
      "name": "Bundle Offer",
      "slug": "bundle_offer_IYNocjTuvfFvzJ1",
      "sequence": 1,
      "icon": null,
      "thumbnails": null,
      "banner": null,
      "description": "this for bundle 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": "2024-01-26T07:53:43.000000Z",
      "updated_at": "2024-01-26T07:53:43.000000Z",
      "deleted_at": null,
      "props": [
        {
          "id": 1,
          "bundle_id": 1,
          "field_name": "test",
          "value": "hello",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 2,
          "bundle_id": 1,
          "field_name": "test2",
          "value": "check for required",
          "created_at": null,
          "updated_at": null
        }
      ]
    }
  ],
  "first_page_url": "https://ecom.coderorbit.com/api/bundle?page=1",
  "from": 1,
  "last_page": 3,
  "last_page_url": "https://ecom.coderorbit.com/api/bundle?page=3",
  "links": [
    {
      "url": null,
      "label": "« Previous",
      "active": false
    },
    {
      "url": "https://ecom.coderorbit.com/api/bundle?page=1",
      "label": "1",
      "active": true
    },
    {
      "url": "https://ecom.coderorbit.com/api/bundle?page=2",
      "label": "2",
      "active": false
    },
    {
      "url": "https://ecom.coderorbit.com/api/bundle?page=3",
      "label": "3",
      "active": false
    },
    {
      "url": "https://ecom.coderorbit.com/api/bundle?page=2",
      "label": "Next »",
      "active": false
    }
  ],
  "next_page_url": "https://ecom.coderorbit.com/api/bundle?page=2",
  "path": "https://ecom.coderorbit.com/api/bundle",
  "per_page": 1,
  "prev_page_url": null,
  "to": 1,
  "total": 3
}

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

Single Show

https://ecom.coderorbit.com/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
        }
      },
      {
        ....
      }
    ]
  }
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.