curl --request GET \
--url https://api.letsdothis.com/v0/tickets/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/tickets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/tickets/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "1300915742",
"title": "10k Standard Entry",
"titleByLocale": {
"en-GB": "10k Standard Entry",
"fr-FR": "Entrée Standard 10k"
},
"description": "Nulla sed mi egestas, condimentum orci quis, pulvinar odio.",
"ticketSlug": "1106607777",
"raceId": "11120888",
"raceTitle": "City Sprint Challenge",
"price": {
"value": 1000,
"currencyCode": "GBP"
},
"availability": "AVAILABLE",
"isDeleted": false
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}Get a ticket by ID
Returns a single ticket by ID if it belongs to the organizer associated with your Public API credentials.
curl --request GET \
--url https://api.letsdothis.com/v0/tickets/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/tickets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/tickets/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "1300915742",
"title": "10k Standard Entry",
"titleByLocale": {
"en-GB": "10k Standard Entry",
"fr-FR": "Entrée Standard 10k"
},
"description": "Nulla sed mi egestas, condimentum orci quis, pulvinar odio.",
"ticketSlug": "1106607777",
"raceId": "11120888",
"raceTitle": "City Sprint Challenge",
"price": {
"value": 1000,
"currencyCode": "GBP"
},
"availability": "AVAILABLE",
"isDeleted": false
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the resource to query by
Response
Default Response
A ticket that is associated to an event and race.
A unique identifier for the ticket.
The name of the ticket
Ticket title translated to multiple locales.
Will always include the default title, and may also specify translations in a number of other locales.
Show child attributes
Show child attributes
{
"en-GB": "10k Standard Entry",
"fr-FR": "Entrée Standard 10k"
}
The slug of the ticket — a stable public identifier
The unique identifier of the associated race
The name of the associated race
A monetary value in 100x base unit format. For example, 1 GBP is represented as: { "value": 100, "currencyCode": "GBP" }
And 5 cents are represented as: { "value": 5, "currencyCode": "USD" }
Show child attributes
Show child attributes
Whether a ticket can be booked, and if not, why.
Derived rather than configured: it folds the organizer's availability setting together with sold-out, expiry, on-sale date and deletion, so it answers what a buyer would actually experience rather than what was set up.
AVAILABLE, SOLD_OUT, CLOSED, COMING_SOON, NOT_AVAILABLE Whether the organizer has deleted this ticket.
A deleted ticket stops appearing in any ticket list, but stays readable by id, because bookings outlive it — every booking carries the ticketId it was made against, and that reference has to keep resolving. availability reports a deleted ticket as NOT_AVAILABLE, which does not distinguish it from one the organizer merely switched off; this does.
false
The description of the ticket
Was this page helpful?

