ProductInstancevalues

Product instancevalues

Fields

FieldDescription
default

Default value. This is used whenever no listed exception matches the selected variant of a product.

Example value:{ "price": 25.000000, "voucher": { "amount": 20.000000, "voucherid": 123 } }
exceptions

Exceptions on the default values. Each exception lists the property values to match and the value lists the price (and optional) other content (such as a voucherid and the amount for a payment voucher).

Example value:[ { "properties": { "colour": [ "red" ], "size": [ "S" ] }, "value": { "price": 25.000000, "voucher": { "amount": 20.000000, "voucherid": 123 } } }, { "properties": { "colour": [ "red" ], "size": [ "M" ] }, "value": { "price": 25.000000, "voucher": { "amount": 20.000000, "voucherid": 123 } } } ]

Example

 1{
 2    "default": {
 3        "price": 25.000000,
 4        "voucher": {
 5            "amount": 20.000000,
 6            "voucherid": 123
 7        }
 8    },
 9    "exceptions": [
10        {
11            "properties": {
12                "colour": [
13                    "red"
14                ],
15                "size": [
16                    "S"
17                ]
18            },
19            "value": {
20                "price": 25.000000,
21                "voucher": {
22                    "amount": 20.000000,
23                    "voucherid": 123
24                }
25            }
26        },
27        {
28            "properties": {
29                "colour": [
30                    "red"
31                ],
32                "size": [
33                    "M"
34                ]
35            },
36            "value": {
37                "price": 25.000000,
38                "voucher": {
39                    "amount": 20.000000,
40                    "voucherid": 123
41                }
42            }
43        }
44    ]
45}