Sectioned
What is a "sectioned" box?
Fetch box information
Front End Setup
Adding to Cart
Last updated
Last updated
POST /storefront-v2-http/get-sectioned-box HTTP/1.1
Host: api.skio.com
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"sectionedBoxId": "d16739a1-e74e-4125-8ced-c2d62c145c41"
}{
"ok": true,
"sectionedBox": {
"dynamicBoxes": [
{
"boxId": "text",
"currencyCode": "text",
"fixedDiscountTier": {},
"percentDiscountTier": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"priceRange": {
"max": 1,
"min": 1,
"discountBase": "text"
},
"selectableProductVariants": [
{
"productTitle": "text",
"productImageSrc": "text",
"productPlatformId": "text",
"productHandle": "text",
"productVariants": [
{
"platformId": "text",
"productVariantTitle": "text",
"imageSrc": "text",
"price": 1
}
]
}
]
}
],
"sellingPlanGroup": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"interval": "text",
"intervalCount": 1,
"priceAdjustmentType": "text",
"priceAdjustmentAmount": 1,
"variantMapping": {
"ANY_ADDITIONAL_PROPERTY": {
"adjustedPrice": 1,
"planId": "text"
}
}
}
},
"settings": {
"header": "text",
"subheader": "text"
},
"theme": {
"header": "text",
"subHeader": "text",
"primaryButtonBgSelected": "text",
"primaryButtonTextSelected": "text"
},
"sectionTitle": "text",
"footerTitle": "text",
"optional": true
}
}_dynamicBoxIndex: 0 (this is used to differentiate when there's multiple box of the same id in the cart. Usually just set it to 0. In rare cases for the second box of the same id, set to 1. Increment for further boxes.)
_dynamicBoxId: the box ID
_dynamicBoxSectionId: the section box ID{
quantity: item.quantity,
id: item.id,
selling_plan: selectedSellingPlan.id,
properties: {
_dynamicBoxIndex: boxIndex,
_dynamicBoxId: boxId,
_dynamicBoxSectionId: boxSectionId
}
}