Get a bundle by id
GET/v1/bundles/:id
Get a bundle by id
Request
Path Parameters
Bundle identifier
Query Parameters
Tax zone
Expansion flag. Expand the response with oneOf: [items
]. (comma separated list of values)
Responses
- 200
- 400
- 403
- 404
- 500
Get a bundle by id
- 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
- application/json
- Schema
- validationError
Schema
any
{
"message": "Please provide valid integer(string encoded) value for id",
"status": 400,
"code": 20003,
"type": "BundleBadRequestError",
"info": "https://www.propel.us/docs/errors/20003"
}
Forbidden.
Bundle not found
- application/json
- Schema
- byId
Schema
any
{
"message": "Bundle with id '666' not found!",
"status": 404,
"code": 20002,
"type": "BundleNotFoundError",
"info": "https://www.propel.us/docs/errors/20002"
}
Get bundle error