# Create Bundle Product

Sample request on how to create a wholesale bundle product:

```
POST: /wp-json/wholesale/v1/products

JSON Body:
{
    "name": "Happy Ninja Bundle",
    "type": "bundle",
    "regular_price": "53.0",
    "sale_price": "37.0",
    "description": "In pretium enim justo, at ornare libero aliquam quis. Nullam imperdiet rutrum volutpat. Suspendisse aliquet ex in ex volutpat vestibulum. Curabitur ultrices convallis condimentum.",
    "short_description": "In pretium enim justo, at ornare libero aliquam quis.",
    "bundle_layout": "default",
    "bundled_items": [
        { 
            "product_id": 75,
            "quantity_min": 1,
            "quantity_max": 1,
            "priced_individually": true,
            "shipped_individually": false,
            "optional": false,
            "override_title": true,
            "title": "Happy Ninja T-Shirt"
        }
    ],
    "wholesale_price" : { 
        "wholesale_customer" : "22"
    },
    "wholesale_visibility_filter": "wholesale_customer",
    "wholesale_minimum_order_quantity": {
        "wholesale_customer": "2",
        "sample_role": "3"
    },
    "wholesale_order_quantity_step": {
        "wholesale_customer": "6",
        "sample_role": "7"
    },
    "ignore_cat_level_wholesale_discount": "yes",
    "ignore_role_level_wholesale_discount": "yes",
    "wholesale_quantity_discount_rule_mapping": [
        {
            "wholesale_role": "wholesale_customer",
            "start_qty": "11",
            "end_qty": "20",
            "price_type": "percent-price",
            "wholesale_price": "20"
        }
    ]
}
```

Response:

```
{
    "id": 7086,
    "name": "Happy Ninja Bundle",
    "slug": "happy-ninja-bundle",
    "permalink": "https://example.com/product/happy-ninja-bundle/",
    "date_created": "2021-10-21T06:32:39",
    "date_created_gmt": "2021-10-21T06:32:39",
    "date_modified": "2021-10-21T06:32:39",
    "date_modified_gmt": "2021-10-21T06:32:39",
    "type": "bundle",
    "status": "publish",
    "featured": false,
    "catalog_visibility": "visible",
    "description": "In pretium enim justo, at ornare libero aliquam quis. Nullam imperdiet rutrum volutpat. Suspendisse aliquet ex in ex volutpat vestibulum. Curabitur ultrices convallis condimentum.",
    "short_description": "In pretium enim justo, at ornare libero aliquam quis.",
    "sku": "",
    "price": "37.0",
    "regular_price": "53.0",
    "sale_price": "37.0",
    "date_on_sale_from": null,
    "date_on_sale_from_gmt": null,
    "date_on_sale_to": null,
    "date_on_sale_to_gmt": null,
    "on_sale": true,
    "purchasable": true,
    "total_sales": 0,
    "virtual": false,
    "downloadable": false,
    "downloads": [],
    "download_limit": -1,
    "download_expiry": -1,
    "external_url": "",
    "button_text": "",
    "tax_status": "taxable",
    "tax_class": "",
    "manage_stock": false,
    "stock_quantity": null,
    "backorders": "no",
    "backorders_allowed": false,
    "backordered": false,
    "low_stock_amount": null,
    "sold_individually": false,
    "weight": "",
    "dimensions": {
        "length": "",
        "width": "",
        "height": ""
    },
    "shipping_required": true,
    "shipping_taxable": true,
    "shipping_class": "",
    "shipping_class_id": 0,
    "reviews_allowed": true,
    "average_rating": "0",
    "rating_count": 0,
    "upsell_ids": [],
    "cross_sell_ids": [],
    "parent_id": 0,
    "purchase_note": "",
    "tags": [],
    "images": [],
    "attributes": [],
    "default_attributes": [],
    "variations": [],
    "grouped_products": [],
    "menu_order": 0,
    "price_html": "<del aria-hidden=\"true\"><span class=\"woocommerce-Price-amount amount\"><bdi><span class=\"woocommerce-Price-currencySymbol\">&#36;</span>74.99</bdi></span></del> <ins><span class=\"woocommerce-Price-amount amount\"><bdi><span class=\"woocommerce-Price-currencySymbol\">&#36;</span>58.99</bdi></span></ins> <small class=\"woocommerce-price-suffix\">inc. VAT</small>",
    "related_ids": [
        6376,
        6363,
        7024,
        6503,
        6351
    ],
    "stock_status": "instock",
    "bundle_layout": "default",
    "bundle_add_to_cart_form_location": "default",
    "bundle_editable_in_cart": false,
    "bundle_sold_individually_context": "product",
    "bundle_item_grouping": "parent",
    "bundle_min_size": "",
    "bundle_max_size": "",
    "bundled_by": [],
    "bundled_items": [
        {
            "bundled_item_id": 34,
            "product_id": 7043,
            "menu_order": 0,
            "quantity_min": 1,
            "quantity_max": 1,
            "quantity_default": 1,
            "priced_individually": true,
            "shipped_individually": false,
            "override_title": true,
            "title": "Happy Ninja T-Shirt",
            "override_description": false,
            "description": "",
            "optional": false,
            "hide_thumbnail": false,
            "discount": null,
            "override_variations": false,
            "allowed_variations": [],
            "override_default_variation_attributes": false,
            "default_variation_attributes": [],
            "single_product_visibility": "visible",
            "cart_visibility": "visible",
            "order_visibility": "visible",
            "single_product_price_visibility": "visible",
            "cart_price_visibility": "visible",
            "order_price_visibility": "visible",
            "stock_status": "in_stock"
        }
    ],
    "wholesale_data": {
        "wholesale_price": {
            "wholesale_customer": "22"
        },
        "wholesale_minimum_order_quantity": {
            "wholesale_customer": "2"
        },
        "wholesale_order_quantity_step": {
            "wholesale_customer": "6"
        },
        "wwpp_product_wholesale_visibility_filter": [
            "wholesale_customer"
        ],
        "wwpp_ignore_cat_level_wholesale_discount": "yes",
        "wwpp_ignore_role_level_wholesale_discount": "yes",
        "wwpp_enable_quantity_discount_rule": "yes",
        "wwpp_quantity_discount_rule_mapping": {
            "desc": "Quantity based discounts available based on how many items are in your cart.",
            "mapping": [
                {
                    "wholesale_role": "wholesale_customer",
                    "start_qty": "11",
                    "end_qty": "20",
                    "price_type": "percent-price",
                    "wholesale_price": "20"
                }
            ]
        }
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rymera.gitbook.io/wholesale-suite-api/wholesale-v1-wwpp/bundle/create-bundle-product.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
