Create bundle
Group existing products into a bundle.
POST
/ bigblue.storeapi.v1.PublicAPI/ CreateBundleCreates a bundle. Each component must be an existing product.
Request body
The bundle to create.
The id must include BU after the tenant code, for example
BGBLBU-KITSTA-2024. components needs 1 to 20 items, each with a quantity
greater than 0.
Responses
bundleBundleThe new bundle.
{
"code": "invalid_argument",
"msg": "bundle.components value must contain no more than 20 item(s)",
"meta": { "argument": "bundle.components" }
}{ "code": "not_found", "msg": "product BGBL-MUGCLA-WHIT not found" }{ "code": "already_exists", "msg": "bundle BGBLBU-KITSTA-2024 already exists" }POST
/ bigblue.storeapi.v1.PublicAPI/ CreateBundle{
"bundle": {
"id": "BGBLBU-KITSTA-2024",
"display_name": "Starter kit: 2 mugs and 1 shirt",
"components": [
{ "product": "BGBL-MUGCLA-WHIT", "quantity": 2 },
{ "product": "BGBL-ESPSRT-SMAL", "quantity": 1 }
],
"options": [{ "name": "Edition", "value": "2024" }]
}
}{
"bundle": {
"id": "BGBLBU-KITSTA-2024",
"display_name": "Starter kit: 2 mugs and 1 shirt",
"components": [
{ "product": "BGBL-MUGCLA-WHIT", "quantity": 2 },
{ "product": "BGBL-ESPSRT-SMAL", "quantity": 1 }
],
"options": [{ "name": "Edition", "value": "2024" }]
}
}