A voucher provides an additional discount on a ticket and includes the following features and constraints:
Usage Limits - Each voucher can be used up to 1000 times (see v2/tickets/voucher-items for insights into the amount of usages per voucher). - It can be redeemed by either a customer or an operator.
Validity Period - A voucher is only valid between its valid_from and valid_until dates (inclusive). - It can be deactivated at any time to prevent usage during its validity period.
Optional Restrictions - A voucher can be restricted to:
Voucher Types There are two types of vouchers:
Unique Code Vouchers
Generic Code Vouchers
| id | string <uuid> Identifier of the voucher. | ||||
| label | string [ 2 .. 255 ] characters Label of the voucher. | ||||
| generic_code | string or null [ 6 .. 20 ] characters ^[A-Z0-9-]+$ The generic code that can be used to receive the additional discount. If | ||||
| discount_percentage | number or null <number> [ 0 .. 100 ] Default: 0 The discount percentage received when a code from this voucher is used on a ticket. A value of | ||||
object or null (Money) The discount money received when a code from this voucher is used on a ticket. Value is | |||||
| |||||
| valid_from | string <date> Date when the voucher becomes valid. | ||||
| valid_until | string <date> Date after which the voucher becomes invalid. | ||||
| is_active | boolean Default: true Indicates if the voucher is active. | ||||
| customer_id | string or null <uuid> Identifier of the customer this voucher is applicable to. If | ||||
| product_ids | Array of strings <uuid> >= 0 items List of product identifiers this voucher is applicable to. If empty the voucher is applicable to all products. | ||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "label": "Summer 2025",
- "generic_code": "SUMMER-2025",
- "discount_percentage": 5,
- "discount_money": {
- "amount": 0,
- "currency": null
}, - "valid_from": "2025-08-01",
- "valid_until": "2025-12-31",
- "is_active": true,
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "product_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}A voucher item represents a single redeemable code of a voucher. Voucher items can be enabled or disabled, and can be used on a ticket to receive additional discount.
| code | string Voucher item code. This is the code that can be used to redeem this voucher item. |
| voucher_id | string <uuid> Identifier of the voucher. |
| enabled | boolean Whether this voucher item is enabled and can be used. A used item cannot be disabled. |
| customer_id | string or null <uuid> Identifier of customer that can or has used this voucher item. |
| ticket_id | string or null <uuid> Identifier of ticket on which this voucher item has been used. |
| used_at | string or null <date-time> Date and time when this voucher item has been used. |
{- "code": "string",
- "voucher_id": "1b5a607b-e5eb-4b17-80b0-5739c041e81b",
- "enabled": true,
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "ticket_id": "595be628-f6f2-4262-9c10-6389c6c4a5b8",
- "used_at": "2019-08-24T14:15:22Z"
}Retrieve a list of vouchers.
Successful response.
An error occurred - see status code and problem response for more information.
{- "query": {
- "limit": 25,
- "availability": true
}, - "result": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "label": "Summer 2025",
- "generic_code": "SUMMER-2025",
- "discount_percentage": 5,
- "discount_money": {
- "amount": 0,
- "currency": null
}, - "valid_from": "2025-08-01",
- "valid_until": "2025-12-31",
- "is_active": true,
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "product_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
], - "total": 4
}Add a new voucher.
The voucher you wish to add.
| label required | string [ 2 .. 255 ] characters Label of the voucher. |
| generic_code required | string or null [ 6 .. 20 ] characters ^[A-Z0-9-]+$ The generic code that can be used to receive the additional discount. If |
| discount_percentage required | number or null <number> [ 0 .. 100 ] Default: 0 The discount percentage received when a code from this voucher is used on a ticket. A value of |
required | object or null (Money) The discount money received when a code from this voucher is used on a ticket. Value is |
| valid_from required | string <date> Date when the voucher becomes valid. |
| valid_until required | string <date> Date after which the voucher becomes invalid. |
| customer_id required | string or null <uuid> Identifier of the customer this voucher is applicable to. If |
| product_ids required | Array of strings <uuid> >= 0 items List of product identifiers this voucher is applicable to. If empty the voucher is applicable to all products. |
Created.
| id | string <uuid> Identifier of the voucher. |
| label | string [ 2 .. 255 ] characters Label of the voucher. |
| generic_code | string or null [ 6 .. 20 ] characters ^[A-Z0-9-]+$ The generic code that can be used to receive the additional discount. If |
| discount_percentage | number or null <number> [ 0 .. 100 ] Default: 0 The discount percentage received when a code from this voucher is used on a ticket. A value of |
object or null (Money) The discount money received when a code from this voucher is used on a ticket. Value is | |
| valid_from | string <date> Date when the voucher becomes valid. |
| valid_until | string <date> Date after which the voucher becomes invalid. |
| is_active | boolean Default: true Indicates if the voucher is active. |
| customer_id | string or null <uuid> Identifier of the customer this voucher is applicable to. If |
| product_ids | Array of strings <uuid> >= 0 items List of product identifiers this voucher is applicable to. If empty the voucher is applicable to all products. |
Bad request.
An error occurred - see status code and problem response for more information.
{- "label": "Summer 2025",
- "generic_code": "SUMMER-2025",
- "discount_percentage": null,
- "discount_money": null,
- "valid_from": "2025-08-01",
- "valid_until": "2025-12-31",
- "is_active": true,
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "product_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "label": "Summer 2025",
- "generic_code": "SUMMER-2025",
- "discount_percentage": 5,
- "discount_money": {
- "amount": 0,
- "currency": null
}, - "valid_from": "2025-08-01",
- "valid_until": "2025-12-31",
- "is_active": true,
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "product_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}Retrieves a voucher by its identifier.
Successful response.
| id | string <uuid> Identifier of the voucher. |
| label | string [ 2 .. 255 ] characters Label of the voucher. |
| generic_code | string or null [ 6 .. 20 ] characters ^[A-Z0-9-]+$ The generic code that can be used to receive the additional discount. If |
| discount_percentage | number or null <number> [ 0 .. 100 ] Default: 0 The discount percentage received when a code from this voucher is used on a ticket. A value of |
object or null (Money) The discount money received when a code from this voucher is used on a ticket. Value is | |
| valid_from | string <date> Date when the voucher becomes valid. |
| valid_until | string <date> Date after which the voucher becomes invalid. |
| is_active | boolean Default: true Indicates if the voucher is active. |
| customer_id | string or null <uuid> Identifier of the customer this voucher is applicable to. If |
| product_ids | Array of strings <uuid> >= 0 items List of product identifiers this voucher is applicable to. If empty the voucher is applicable to all products. |
An error occurred - see status code and problem response for more information.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "label": "Summer 2025",
- "generic_code": "SUMMER-2025",
- "discount_percentage": 5,
- "discount_money": {
- "amount": 0,
- "currency": null
}, - "valid_from": "2025-08-01",
- "valid_until": "2025-12-31",
- "is_active": true,
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "product_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}Update a voucher by its identifier.
The updated voucher.
| label required | string [ 2 .. 255 ] characters Label of the voucher. |
| discount_percentage required | number or null <number> [ 0 .. 100 ] Default: 0 The discount percentage received when a code from this voucher is used on a ticket. A value of |
required | object or null (Money) The discount money received when a code from this voucher is used on a ticket. Value is |
| valid_from required | string <date> Date when the voucher becomes valid. |
| valid_until required | string <date> Date after which the voucher becomes invalid. |
| is_active required | boolean Default: true Indicates if the voucher is active. |
Successful response.
| id | string <uuid> Identifier of the voucher. |
| label | string [ 2 .. 255 ] characters Label of the voucher. |
| generic_code | string or null [ 6 .. 20 ] characters ^[A-Z0-9-]+$ The generic code that can be used to receive the additional discount. If |
| discount_percentage | number or null <number> [ 0 .. 100 ] Default: 0 The discount percentage received when a code from this voucher is used on a ticket. A value of |
object or null (Money) The discount money received when a code from this voucher is used on a ticket. Value is | |
| valid_from | string <date> Date when the voucher becomes valid. |
| valid_until | string <date> Date after which the voucher becomes invalid. |
| is_active | boolean Default: true Indicates if the voucher is active. |
| customer_id | string or null <uuid> Identifier of the customer this voucher is applicable to. If |
| product_ids | Array of strings <uuid> >= 0 items List of product identifiers this voucher is applicable to. If empty the voucher is applicable to all products. |
An error occurred - see status code and problem response for more information.
{- "label": "Summer 2025",
- "generic_code": "SUMMER-2025",
- "discount_percentage": null,
- "discount_money": null,
- "valid_from": "2025-08-01",
- "valid_until": "2025-12-31",
- "is_active": true,
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "product_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "label": "Summer 2025",
- "generic_code": "SUMMER-2025",
- "discount_percentage": 5,
- "discount_money": {
- "amount": 0,
- "currency": null
}, - "valid_from": "2025-08-01",
- "valid_until": "2025-12-31",
- "is_active": true,
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "product_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}Add voucher item generation request.
{- "num_items": 1,
- "voucher_id": "1b5a607b-e5eb-4b17-80b0-5739c041e81b"
}{- "num_items": 0,
- "voucher_id": "1b5a607b-e5eb-4b17-80b0-5739c041e81b"
}Retrieve a list of voucher items.
| code | string [ 6 .. 20 ] characters Filter voucher items by code. Only returns voucher item of which the |
| customer_id | string <uuid> Filter voucher items by the identifier of the customer that can or has used it. Combine with |
| is_enabled | boolean Default: true Filter voucher items by enabled status. |
| limit | integer <int32> [ 0 .. 1000 ] Default: 25 Limits the amount of resources in result. |
| offset | integer <int64> >= 0 Default: 0 Offset of resources in result. |
| ticket_id | string <uuid> Filter voucher items by the identifier of the ticket it was used on. |
| used | boolean Default: true Filter voucher items by usage status. |
object Filter voucher items that were used on, before or after provided date. | |
| voucher_id | string <uuid> Filter voucher items by the identifier its voucher. |
Successful response.
object >= 0 properties Applied query parameters, including defaults. | |||||||||||||
| |||||||||||||
Array of objects (VoucherItem) >= 0 items List of voucher items. | |||||||||||||
Array (>= 0 items)
| |||||||||||||
| total | integer <int64> Total number of resources matching provided query parameters. | ||||||||||||
An error occurred - see status code and problem response for more information.
{- "query": {
- "limit": 25,
- "used": true,
- "is_enabled": true
}, - "result": [
- {
- "code": "string",
- "voucher_id": "1b5a607b-e5eb-4b17-80b0-5739c041e81b",
- "enabled": true,
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "ticket_id": "595be628-f6f2-4262-9c10-6389c6c4a5b8",
- "used_at": "2019-08-24T14:15:22Z"
}
], - "total": 4
}