VoucherValidity

The definition of the validity of a voucher.

Fields

FieldDescription
expiry_fixeddate
timestamp

The fixed expiry date for a voucher. The voucher will be valid untill this date (thus if 2020-01-01 is specified, the voucher will remain valid until 2019-12-31 23:59:59). If this is specified, it has preference over expiry_monthsaftercreation.

Example value:"2016-07-01"
expiry_monthsaftercreation
int

The relative expiry date for a voucher: voucher code expires this number of months after creation. If expiry_fixeddate is specified, this field is ignored.

Example value:12
maxusages
int

The max number of times the vouchercode can be used. This field is only relevant for pricetype vouchers.

Example value:10
maxusagesperevent
int

The max number of times the vouchercode can be used for a single event. This field is only relevant for pricetype vouchers.

Example value:2

Example

1{
2    "expiry_fixeddate": "2016-07-01",
3    "expiry_monthsaftercreation": 12,
4    "maxusages": 10,
5    "maxusagesperevent": 2
6}