Option
Some products have options to select, some of them will affect the unit price of it
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | The unique identifier for this option |
type |
string |
yes | The type of this option (input field or combobox) one of: text, select |
label |
string |
yes | The label of the form element that will be display to the customer |
required |
boolean |
If true, the customer is forced to select or insert something to the form element default: false |
|
annotation |
string |
A short text, that will be available by clicking a little questionmark on the productpage | |
unitPriceModifier |
number |
This property is only available if the type is text and show the amount in the shop’s currency by that the price will change if something is inserted to the form field format: float |
|
values |
array[object] |
This property is only available if the type is select and will display the possible values to choose from |
Example
Section titled “Example”{ "id": "string", "type": "text", "label": "string", "required": true, "annotation": "string", "unitPriceModifier": 0, "values": [ { "id": "string", "unitPriceModifier": 0, "label": "string" } ]}
