PricelistPriceCondition
These are the possible condition and example values:
Ticketlimit
There is a limited amount of tickets available for the selected pricetype.
1{
2 "type": "ticketlimit",
3 "value": 10
4}
Date validity
The price type is only available in this period.
Absolute
1{
2 "type": "date",
3 "value": {
4 "datetype": "absolute",
5 "absoluteStart": "2015-05-20",
6 "absoluteEnd": "2015-05-27"
7 }
8}
Relative
1{
2 "type": "date",
3 "value": {
4 "datetype": "relative_eventdate",
5 "relativeStart": 10,
6 "relativeEnd": 5
7 }
8}
Promocode
The price type is only available if the customer provides a promocode.
1{
2 "type": "promocode",
3 "value": ["TM"]
4}
Max number of tickets per customer
Limit the maximum number of tickets a customer can buy of this specific price type.
1{
2 "type": "orderticketlimit",
3 "value": 2
4}
Voucherids
When buying a ticket of this pricetype, a valid vouchercode with voucherid one of the values should be attached to the ticket.
1{
2 "type": "voucherids",
3 "value": [1,2,3]
4}
Fields
Field | Description |
---|---|
type string (required) | The type of condition. Possible values:
"orderticketlimit" |
value mixed (required) | The value of this condition. See type for info about what should be filled in. Example value:10.000000 |
Example
1{
2 "type": "orderticketlimit",
3 "value": 10.000000
4}