Add Bundle Items to existing bundle
POST/v1/bundles/:id
Add Bundle Items to existing bundle
Request
Path Parameters
id integerrequired
Bundle identifier
Example: 1234
- application/json
Body
required
Add Bundle Items Input
Array [
]
items
object[]
required
Items for this bundle.
productId numberrequired
The bundles primary product identifier
isLeader stringnullable
Possible values: [Y
, N
]
Default value: N
Indicates whether the product is leader for this bundle.
Responses
- 201
- 400
- 409
- 500
Bundle Items added
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
productId numberrequired
The bundles primary product identifier
price
object
nullable
net number
Net price of the bundle after discounts applied
gross number
Gross price of the bundle after discounts applied
originalNet number
Original net price of the bundle before discounts applied
originalGross number
Original gross price of the bundle before discounts applied
isLeader stringrequired
Possible values: [Y
, N
]
Indicates whether the product is leader for this bundle.
[
{
"productId": 0,
"price": {
"net": 0,
"gross": 0,
"originalNet": 0,
"originalGross": 0
},
"isLeader": "Y"
}
]
Bad request
Bundle Items already exists
Add Bundle Items error
Loading...