List vouchers
GEThttps://api.tickettailor.com/v1/vouchers
Returns a list of paginated vouchers
Request
Query Parameters
The number of items to retrieve
Unix timestamp filter that returns items with matched expiry_date
value.
Unix timestamp filter that returns items with expiry_date
greater than the given value.
Unix timestamp filter that returns items with expiry_date
greater than or equal to the given value.
Unix timestamp filter that returns items with expiry_date
less than given value.
Unix timestamp filter that returns items with expiry_date
less than or equal given value.
Unix timestamp filter that returns items with matched created_at
value.
Unix timestamp filter that returns items with created_at
greater than given value.
Unix timestamp filter that returns items with created_at
greater than or equal given value.
Unix timestamp filter that returns items with created_at
less than given value.
Unix timestamp filter that returns items with created_at
less than or equal given value.
Responses
- 200
Successfully returned the list of vouchers
- application/json
- Schema
- Example (auto)
Schema
data object[]
links object
{
"data": [
{
"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",
"value": 540
}
],
"links": {
"next": "/v1/vouchers?starting_after=vo_123",
"previous": "/v1/vouchers?ending_before=vo_234"
}
}
Authorization: http
name: BasicAuthtype: httpdescription: Use base64 encoded api key created in Ticket Tailor dashboard. scheme: basic
- curl
- php
- ruby
- python
- nodejs
- go
- CURL
curl -L 'https://api.tickettailor.com/v1/vouchers' \
-H 'Accept: application/json' \
-H 'Authorization: Basic PHVzZXJuYW1lPjo8cGFzc3dvcmQ+'