List the races linked to a seat
curl --request GET \
--url https://api.letsdothis.com/v0/membership-seats/{seatId}/entries \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-seats/{seatId}/entries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/membership-seats/{seatId}/entries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"seatId": "<string>",
"source": "RESERVED_PLACE",
"claimStatus": "CLAIMED",
"reservationStatus": "NOT_ALLOCATED",
"expiresAt": "<string>",
"eventId": "<string>",
"eventOccurrenceId": "<string>",
"eventTitle": "<string>",
"eventDate": "<string>",
"booking": {
"id": "<string>",
"status": "<string>",
"race": {
"id": "<string>",
"title": "<string>",
"startDate": "<string>"
}
}
}
],
"page": {
"totalResults": 506,
"first": "eyJpZCI6IjYzOTljMjAwMTVkNjBhZTNmZjI4ZjI0YyIsInVwZGF0ZWRBdCI6IjIwMjItMTItMTRUMTI6MzA6NTkuMjE3WiJ9",
"last": "eyJpZCI6IjY1NGNkZDIxZDlhMTU3ODdiNzFkMTM0YSIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNzI0WiJ9",
"prev": "",
"next": "eyJpZCI6IjY0NzBkNTkwM2RjOWE5OWJhMTA0Y2ZhYiIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNjE4WiJ9"
}
}{
"code": "MEMBERSHIP_INVALID_REQUEST",
"statusCode": 400,
"message": "<string>"
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 404,
"message": "<string>"
}Memberships
List the races linked to a seat
Lists the races linked to this seat, oldest first, including past and canceled entries.
How to use it
- Each entry has a
source.RESERVED_PLACEis a place reserved for the member, such as a ballot entry, and the booking made from it.MEMBER_BOOKINGis a race booked with this seat, such as a free member entry. More sources may be added. - Each entry is one event, with
eventTitleandeventDate.bookinghas the booking’s status and race, and isnullwhile a reserved place is unclaimed. - Claim status applies to reserved places and is separate from the reservation and booking statuses.
- Ordinary bookings, and guest passes given to other people, aren’t included.
- Reservation codes, participant details and billing data are never returned.
GET
/
v0
/
membership-seats
/
{seatId}
/
entries
List the races linked to a seat
curl --request GET \
--url https://api.letsdothis.com/v0/membership-seats/{seatId}/entries \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-seats/{seatId}/entries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/membership-seats/{seatId}/entries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"seatId": "<string>",
"source": "RESERVED_PLACE",
"claimStatus": "CLAIMED",
"reservationStatus": "NOT_ALLOCATED",
"expiresAt": "<string>",
"eventId": "<string>",
"eventOccurrenceId": "<string>",
"eventTitle": "<string>",
"eventDate": "<string>",
"booking": {
"id": "<string>",
"status": "<string>",
"race": {
"id": "<string>",
"title": "<string>",
"startDate": "<string>"
}
}
}
],
"page": {
"totalResults": 506,
"first": "eyJpZCI6IjYzOTljMjAwMTVkNjBhZTNmZjI4ZjI0YyIsInVwZGF0ZWRBdCI6IjIwMjItMTItMTRUMTI6MzA6NTkuMjE3WiJ9",
"last": "eyJpZCI6IjY1NGNkZDIxZDlhMTU3ODdiNzFkMTM0YSIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNzI0WiJ9",
"prev": "",
"next": "eyJpZCI6IjY0NzBkNTkwM2RjOWE5OWJhMTA0Y2ZhYiIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNjE4WiJ9"
}
}{
"code": "MEMBERSHIP_INVALID_REQUEST",
"statusCode": 400,
"message": "<string>"
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 404,
"message": "<string>"
}This endpoint is in beta: its request and response contract can still change while it’s being developed.
Authorizations
Path Parameters
Query Parameters
Response
A page of the races linked to the seat.
Where you are in a paginated list.
Pass next as page[after] to get the next page, or prev as page[before] to get the previous one. An empty cursor means there are no more pages in that direction. Treat cursors as opaque strings.
Show child attributes
Show child attributes
Example:
{
"totalResults": 506,
"first": "eyJpZCI6IjYzOTljMjAwMTVkNjBhZTNmZjI4ZjI0YyIsInVwZGF0ZWRBdCI6IjIwMjItMTItMTRUMTI6MzA6NTkuMjE3WiJ9",
"last": "eyJpZCI6IjY1NGNkZDIxZDlhMTU3ODdiNzFkMTM0YSIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNzI0WiJ9",
"prev": "",
"next": "eyJpZCI6IjY0NzBkNTkwM2RjOWE5OWJhMTA0Y2ZhYiIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNjE4WiJ9"
}
Was this page helpful?

