Vouchers
Update a voucher
Update an exiting voucher's name. If any voucher codes are given, create new voucher codes and associate them with the voucher
post/v1/vouchers/{voucher_id}
Request
- Base URLhttps://api.tickettailor.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
voucher_idstring required
The unique identifier for the existing voucher
Request body application/x-www-form-urlencoded
Example request
{
"codes": [
"testCode1",
"testCode2"
],
"event_series_ids": {
"es_1": "1",
"es_2": "0",
"es_3": ""
},
"expiry": 1588368600,
"name": "Test voucher with codes",
"usable_on_any_event": "true",
"value": 540
}Response
Successfully updated the voucher
Example response
{
"object": "voucher",
"id": "vo_123",
"available_codes": 7,
"event_series_ids": [
"es_123",
"es_234",
"es_345"
],
"interval": null,
"expiry": {
"date": "2020-05-01",
"formatted": "Fri 1 May 2020 10:30 PM",
"iso": "2020-05-01T22:30:00+01:00",
"time": "22:30",
"timezone": "+01:00",
"unix": 1588368600
},
"name": "Test Voucher",
"partial_redemption": "true",
"total_codes": 25,
"type": "PROMO",
"usable_on_any_event": "true",
"value": 540
}Changes
No recorded changes to this operation across all 6 revisions of this API.