Create a new bundle
POST/v1/bundles
Create a new bundle
Request
- application/json
Body
required
Create Bundle Input
Array [
]
The name for this bundle.
The description for this bundle.
The discount percentage this bundle.
Possible values: [ALL
, EP
]
The discount condition for this bundle. Discount can be applied for Extra Products (EP) or All Products (ALL).
The bundle prices.
Default value: NL
The bundle tax zone.
addBundleItems
object[]
Items for this bundle.
The bundles primary product identifier
Possible values: [Y
, N
]
Default value: N
Indicates whether the product is leader for this bundle.
Responses
- 201
- 400
- 409
- 500
Bundle created
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The bundles primary identifier
[DEPRECATED] The bundles identifier for Propeller internal use
The name for this bundle.
The description for this bundle.
The discount percentage this bundle.
Possible values: [ALL
, EP
]
The discount condition for this bundle. Discount can be applied for Extra Products (EP) or All Products (ALL).
price
object
nullable
Net price of the bundle after discounts applied
Gross price of the bundle after discounts applied
Original net price of the bundle before discounts applied
Original gross price of the bundle before discounts applied
items
object[]
nullable
Items for this bundle.
The bundles primary product identifier
price
object
nullable
Net price of the bundle after discounts applied
Gross price of the bundle after discounts applied
Original net price of the bundle before discounts applied
Original gross price of the bundle before discounts applied
Possible values: [Y
, N
]
Indicates whether the product is leader for this bundle.
{
"id": 0,
"name": "string",
"description": "string",
"discount": 0,
"condition": "ALL",
"price": {
"net": 0,
"gross": 0,
"originalNet": 0,
"originalGross": 0
},
"items": [
{
"productId": 0,
"price": {
"net": 0,
"gross": 0,
"originalNet": 0,
"originalGross": 0
},
"isLeader": "Y"
}
]
}
Bad request
Bundle already exists
Create bundle error