Bundle Get

GET{{api_url}}/shop/products/bundle/{{bundle_id}}

Gets one Bundle with its component SKUs. A Bundle is a SKU built from other SKUs: the bundle SKU carries its own inventory at one warehouse, created by consuming the components from that warehouse. When the bundle's stock falls to its Minimum Inventory, InfiPlex builds the Auto Create Amount more. If component stock cannot cover the full amount, nothing is built.

Path

SegmentDescription
{{bundle_id}}The bundle id, shop_bundle_sku_id from Bundle Search.

Example

{{api_url}}/shop/products/bundle/19

Response

{
    "shop_bundle_sku_id": "19",
    "shop_bundle_sku_siteareaid": "16",
    "shop_bundle_sku_warehouseid": "7",
    "bundle_name": "Test Bundle",
    "bundle_sku": "BUNDLESKU",
    "minimum_inventory_amt": "10",
    "auto_add_inventory_amt": "5",
    "warehouse_name": "Canada",
    "assoc_skus": [
        {
            "shop_bundle_sku_assoc_sku_id": "45",
            "sbsas_bundle_sku_id": "19",
            "sku": "SKU1",
            "quantity_in_bundle": "1"
        },
        {
            "shop_bundle_sku_assoc_sku_id": "46",
            "sbsas_bundle_sku_id": "19",
            "sku": "SKU2",
            "quantity_in_bundle": "2"
        },
        {
            "shop_bundle_sku_assoc_sku_id": "47",
            "sbsas_bundle_sku_id": "19",
            "sku": "SKU3",
            "quantity_in_bundle": "1"
        }
    ],
    "bundle_sku_warehouse_inventory": null
}
FieldTypeDescription
shop_bundle_sku_idstringThe bundle id.
shop_bundle_sku_siteareaidstringThe InfiPlex site area the bundle belongs to.
shop_bundle_sku_warehouseidstringThe warehouse the bundle is built in. Components are drawn from this warehouse and the built bundle stock lands here.
bundle_namestringDisplay name as shown in the OMS.
bundle_skustringThe SKU your channels sell the bundle under.
minimum_inventory_amtstringWhen the bundle SKU's stock at this warehouse reaches this number, InfiPlex tries to build more.
auto_add_inventory_amtstringHow many bundles to build when the minimum is reached. No partial builds: if component stock cannot cover this amount, none are made.
warehouse_namestringName of the warehouse in shop_bundle_sku_warehouseid.
assoc_skusarrayThe component SKUs, one object each.
assoc_skus[].shop_bundle_sku_assoc_sku_idstringId of this component row.
assoc_skus[].sbsas_bundle_sku_idstringThe bundle id, repeated.
assoc_skus[].skustringThe component SKU.
assoc_skus[].quantity_in_bundlestringHow many units of this component go into one bundle.
bundle_sku_warehouse_inventorystring or nullCurrent inventory of the bundle SKU at the bundle's warehouse. null when the bundle SKU has no inventory record at that warehouse yet.

To check whether a build is possible, compare each component's inventory at shop_bundle_sku_warehouseid (Inventory Get with warehouse_id) against quantity_in_bundle times auto_add_inventory_amt.

Authorization

Bearer token, sent in the Authorization header. Inherited from the collection.

Example Request

curl --location --request GET '{{api_url}}/shop/products/bundle/{{bundle_id}}' \
--header 'Authorization: Bearer {{auth_token}}'

Example Responses

Bundle Get

Request

curl --location --request GET '{{api_url}}/shop/products/bundle/19' \
--header 'Authorization: Bearer YOUR_API_KEY'

Response 200 OK

{
    "shop_bundle_sku_id": "19",
    "shop_bundle_sku_siteareaid": "16",
    "shop_bundle_sku_warehouseid": "7",
    "bundle_name": "Test Bundle",
    "bundle_sku": "BUNDLESKU",
    "minimum_inventory_amt": "10",
    "auto_add_inventory_amt": "5",
    "warehouse_name": "Canada",
    "assoc_skus": [
        {
            "shop_bundle_sku_assoc_sku_id": "45",
            "sbsas_bundle_sku_id": "19",
            "sku": "SKU1",
            "quantity_in_bundle": "1"
        },
        {
            "shop_bundle_sku_assoc_sku_id": "46",
            "sbsas_bundle_sku_id": "19",
            "sku": "SKU2",
            "quantity_in_bundle": "2"
        },
        {
            "shop_bundle_sku_assoc_sku_id": "47",
            "sbsas_bundle_sku_id": "19",
            "sku": "SKU3",
            "quantity_in_bundle": "1"
        }
    ],
    "bundle_sku_warehouse_inventory": null
}