Create bundle
create_bundleCreates a promotional bundle with its empty components, discount, and dates so you can then bind product cards or categories and activate the offer.
Instructions
Create a bundle (набор) together with its components. Required: title, discount (integer percent 1-99) and components — each {component_type: ALL (the whole catalog) | CATEGORIES_AND_COLLECTIONS | PRODUCT_CARDS, display_sequence, optional min_sum (decimal string)}. Optional: description (shown to buyers), type (SINGLE_COMPONENT — several units of one component; MULTI_COMPONENT — two or more components), quantity, discount_mode (SUM_WITH_ANOTHER_DISCOUNT — applied on top of other discounts; DONT_SUM_WITH_ANOTHER_DISCOUNT — applied to the price without them), bundle_dates ({start_date, optional end_date}), status (ACTIVE|INACTIVE), slug, seo_title, seo_description. The spec does not document min_sum and quantity; in the KIT cabinet a bundle's condition is a minimum cart amount of its products or a number of items. Components are created empty: take their IDs from the response and bind product cards or categories/collections with manage_bundle_component_objects. For a safe launch create it INACTIVE, bind, verify with get_bundle, then activate with update_bundle. Not idempotent: after a timeout, HTTP 429, LIMIT_EXCEEDED or another uncertain result, look for the bundle with list_bundles before considering a repeat. Call get_operation_schema("CreateBundle") for the exact request shape.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bundle": "<bundle>"
},
"name": "create_bundle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundle | Yes | Bundle record matching the CreateBundleRequest schema (see get_operation_schema("CreateBundle")). Required: title, discount, components. |