Set Up Decoration Strips through API
β‘οΈ See the API Reference documentation π for detailed information.
Set Up the Dimensionsβ
width is a mandatory parameter used for price calculation.
| Parameter | Type | Possible values | Default value |
|---|---|---|---|
width | Continuous length | [0 ;β] | 0 β€ 2210 β€ β |
depth | Discrete length | [0 ;β] | 20 |
height | Discrete 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β
| Parameter | Type | Possible values |
|---|---|---|
material | string | External dbID |
"material": {
"ids": [
"2523"
],
"tags": [],
"typeID": 6,
"editable": null,
"nullable": false,
"translation": {
"name": {
"2": "material"
}
},
"defaultValue": "2523"
}
Set Up the Sectionsβ
| Parameter | Type | Possible values |
|---|---|---|
decostripHorizontalSection | string | External dbID |
decostripVerticalSection | string | External dbID |
"decostripHorizontalSection": {
"ids": [
"14145"
],
"tags": [],
"typeID": 7,
"editable": null,
"nullable": false,
"translation": {
"name": {
"2": "decostripHorizontalSection"
}
},
"defaultValue": "14145"
}
"decostripVerticalSection": {
"ids": [
"14144"
],
"tags": [],
"typeID": 7,
"editable": null,
"nullable": false,
"translation": {
"name": {
"2": "decostripVerticalSection"
}
},
"defaultValue": "14144"
}
Pricingβ
"prices": [
{
"typePrice": "regular",
"price": 100,
"startDate": null,
"endDate": null,
"currency": "EUR",
}
]
Deployβ
Some settings have to be made at cabinet level:
- Enable the deco strip option;
- Enable the extension of the deco strip to the sides;
- Enable the modification of the orientation of the deco strip.
Define the decoStripOption Parameterβ
"decoStripOption": {
"typeID": 3,
"editable": null,
"translation": {
"name": {
"2": "decoStripOption"
}
},
"defaultValue": 0
}
Define the leftDecoStripBack Parameterβ
"leftDecoStripBack": {
"typeID": 3,
"editable": "RW",
"translation": {
"name": {
"2": "leftDecoStripBack"
}
},
"defaultValue": 0
}
Define the rightDecoStripBack Parameterβ
"rightDecoStripBack": {
"typeID": 3,
"editable": "RW",
"translation": {
"name": {
"2": "rightDecoStripBack"
}
},
"defaultValue": 0
}
Define the sectionOrientation Parameterβ
"sectionOrientation": {
"typeID": 2,
"values": [
0,
1
],
"editable": "RW",
"translation": {
"name": {
"2": "Section Orientation"
},
"values": {
"2": [
"Horizontal",
"Vertical"
]
}
},
"defaultValue": 1
}
Define a Product Ruleβ
In some cases, you might have an incompatibility between worktop light and side deco strip. Indeed, when the worktop light width equals the cabinet width, it is impossible to mount side deco strips.
In those cases, we suggest to use a product rule to manage that incompatibility.
{
"name": "worktopLight/decoStripBack",
"definition": {
"version": 1,
"parameters": [
{
"paramID": "worktopLight",
"paramType": 7
},
{
"paramID": "leftDecoStripBack",
"paramType": 3
},
{
"paramID": "rightDecoStripBack",
"paramType": 3
}
],
"sequencePolicy": 0,
"compatibilities": [
[
{
"ids": [
null
]
},
{
"values": [
true,
false
]
},
{
"values": [
true,
false
]
}
],
[
{
"ids": [
"14081",
"18106"
]
},
{
"values": [
false
]
},
{
"values": [
false
]
}
]
]
},
"ruleTypeID": 2,
"isDeleted": false
}