Skip to main content

Set Up Cornices through API

➑️ See the API Reference documentation πŸ”— for detailed information.

Set Up the Dimensions​

width is a mandatory parameter used for price calculation.

ParameterTypePossible valuesDefault value
widthContinuous length[0 ;∞]0 ≀ 2210 ≀ ∞
depthDiscrete length[0 ;∞]20
heightDiscrete length[0 ;∞]60
"width": {
"max": null,
"min": 0,
"step": 1,
"typeID": 1,
"editable": null,
"translation": {
"name": {
"1": "Longueur",
"2": "Width",
"3": "Anchura",
"4": "Breite"
}
},
"defaultValue": 2210
}


Set Up the Material​

ParameterTypePossible values
materialstringExternal dbID
"material"{
"ids": [
"2523"
],
"tags": [],
"typeID": 6,
"editable": null,
"nullable": false,
"translation": {
"name": {
"2": "material"
}
},
"defaultValue": "2523"
},


Set Up the Horizontal Section​

ParameterTypePossible valuesDefault value
corniceHorizontalSectionProduct variationExternal dbIDExternal dbID
"corniceHorizontalSection": {
"ids": [
"14175"
],
"tags": [],
"typeID": 7,
"editable": null,
"nullable": false,
"translation": {
"name": {
"2": "corniceHorizontalSection"
}
},
"defaultValue": "14175"
}


Pricing​

"prices": [
{
"typePrice": "regular",
"price": 100,
"startDate": null,
"endDate": null,
"currency": "EUR",

}
]


Deploy​

Setting the corniceOption to 'true' in the top-assembly (cabinet) datasheet will enable a choice of cornices in the planner corresponding to products available in the catalog.

    "corniceOption": {
"typeID": 3,
"editable": null,
"translation": {
"name": {
"2": "corniceOption"
}
},
"defaultValue": 0
}

To allow the customer to enable or disable the extension of the cornice on the left and/or right sides of the cabinet, set leftCorniceBack and rightCorniceBack with 'true' as default value.

"leftCorniceBack": {
"typeID": 3,
"editable": "RW",
"translation": {
"name": {
"2": "leftCorniceBack"
}
},
"defaultValue": 0
}

"rightCorniceBack": {
"typeID": 3,
"editable": "RW",
"translation": {
"name": {
"2": "rightCorniceBack"
}
},
"defaultValue": 0
}