Set Up Worktops through API
β‘οΈ See the API Reference documentation π for detailed information.
Set Up the Dimensionsβ
For precut worktops, width is a mandatory parameter used for price calculation.
| Parameter | Type | Possible values |
|---|---|---|
width | real | [0 ;β] |
depth | real | [0 ;β] |
height | real | [0 ;β] |
"width": {
"typeID": 1,
"values": [
4000
],
"editable": null,
"translation": {
"name": {
"1": "Longueur",
"2": "Width",
"3": "Anchura",
"4": "Breite"
},
"values": {
"2": {
"4000": "4000"
}
}
},
"defaultValue": 4000
}
Set Up the Type of Worktopβ
| Parameter | Type | Possible values |
|---|---|---|
worktopType | string | custom or precut |
"worktopType": {
"typeID": 4,
"values": [
"custom"
],
"editable": null,
"translation": {
"name": {
"2": "worktopType"
},
"values": {
"2": {
"custom": "custom"
}
}
},
"defaultValue": "custom"
}
Set Up the Waterfallβ
| Parameter | Type | Possible values |
|---|---|---|
waterfallPossible | boolean | true or false |
waterfallType | string | angled or straight |
waterfallJointProduct | product | external dbID |
"waterfallPossible": {
"typeID": 3,
"editable": null,
"translation": {
"name": {
"2": "waterfallPossible"
}
},
"defaultValue": 0
}
Set Up the Joint between two Worktopsβ
| Parameter | Type | Possible values |
|---|---|---|
cornerJointPossible | boolean | true or false |
cornerHandedJointPossible | boolean | true or false |
notchOffset | real | [0 ;β] |
"cornerJointPossible": {
"typeID": 3,
"editable": null,
"translation": {
"name": {
"2": "cornerJointPossible"
}
},
"defaultValue": 1
}
"cornerHandedJointPossible": {
"typeID": 3,
"editable": null,
"translation": {
"name": {
"2": "cornerHandedJointPossible"
}
},
"defaultValue": 1
}
"notchOffset": {
"typeID": 1,
"editable": null,
"translation": {
"name": {
"2": "notchOffset"
}
},
"defaultValue": 20
}
Enable an Arc Operationβ
| Parameter | Type | Possible values |
|---|---|---|
arcOperationPossible | boolean | true or false |
"arcOperationPossible": {
"typeID": 3,
"editable": null,
"translation": {
"name": {
"2": "arcOperationPossible"
}
},
"defaultValue": 0
}
Set Up the Number of Rounded Cuts Allowedβ
| Parameter | Type | Possible values |
|---|---|---|
roundedCutAllowedNumber | integer | 0 / ... / Infinite |
"roundedCutAllowedNumber": {
"typeID": 4,
"values": [
1
2
4
],
"editable": null,
"translation": {
"name": {
"2": "roundedCutAllowedNumber"
},
"values": {
"2": {
"1": "1"
"2": "2"
"3": "4"
}
}
},
"defaultValue": 1
}
Filtering Parametersβ
You can create the parameter of your choice to be used by the customer to filter the list of worktops in the edit panel. Below are two possible filtering parameters.
Filter Worktops with Materialβ
| Parameter | Type | Possible values |
|---|---|---|
worktopMaterial | string | acrylic / laminate / quartz / wood |
"worktopMaterial": {
"typeID": 4,
"values": [
"acrylic"
],
"editable": null,
"translation": {
"name": {
"2": "worktopMaterial"
},
"values": {
"2": {
"laminate": "acrylic"
}
}
},
"defaultValue": "acrylic"
}
β οΈThe MinDistanceTapHoleAndSink π
and MinDistanceTapHoleAndWTBackEdge π
Applicative Rules are based on the worktopMaterial parameter (value: quartz) and make this parameter mandatory on
the worktop product. In this case, worktopMaterial is not limited to a filtering usage.
Filter Worktops with Thicknessβ
| Parameter | Type | Possible values |
|---|---|---|
worktopThickness | string | [0 ;β] |
"worktopThickness": {
"typeID": 1,
"values": [
38
],
"editable": null,
"translation": {
"name": {
"2": "worktopThickness"
},
"values": {
"2": {
"38": "38"
}
}
},
"defaultValue": 38
}