Skip to main content

ChosenBundle

A bundle resolved for one specific choice of sub products and quantity

type ChosenBundle {
productID: String!
priceType: BundlePriceType
basePrice: Price
unitPrice: Price
totalPrice: Price
breakdown: [ChosenBundleRow]
measurements: ProductMeasurements
shippingClassId: Int!
}

Fields​

productID ● String!​

Product ID of the bundle

priceType ● BundlePriceType​

Shows which pricing type the bundle product uses

basePrice ● Price​

The price the base product will get, for one bundle

unitPrice ● Price​

The price of one bundle at the requested quantity

totalPrice ● Price​

The full price of the bundle regardless of pricetype, unitPrice times the requested quantity

breakdown ● [ChosenBundleRow]​

Breakdown contains the calculations used for the total price of the bundle, the sum of all the rows in breakdown will always match the totalPrice, calculations used may differ based on the priceType of the bundle

measurements ● ProductMeasurements​

The set article's own measurements, for one bundle

shippingClassId ● Int!​

The set article's own shipping class, 0 when it has none

Example​

{
"basePrice": {
"regularPrice": {
"currency": {
"code": "USD",
"rate": 11.355,
"prefix": "$"
},
"tax": {}
},
"appliedCampaign": {
"info": {
"description": [
{
"language": "EN",
"value": "String"
}
],
"timeLimit": {
"from": "2024-05-03T11:52:33Z"
}
}
}
},
"breakdown": [
{
"measurements": {}
}
]
}