Skip to main content

Venue and availability

These calls need no sign-in, so the app can show courts and prices before the player signs in.

GET /config​

Everything the app needs on start: the venue, which sign-in methods are on, and the facility types bookable online. Cache it for the session and read it again when the app comes back to the foreground.

{
"data": {
"venue": {
"name": "Northwind Sports Arena",
"phone": "+1 212 555 0100",
"email": "[email protected]",
"currency": "USD"
},
"sign_in": {
"code": true,
"password": true
},
"facility_types": [
{
"id": 1,
"name": "Padel",
"description": "Four indoor panoramic courts with LED lighting. Rackets and balls for hire at the desk.",
"durations": [
60,
90,
120
],
"step": 30,
"currency": "USD",
"payment": "deposit",
"deposit_percent": 25.0,
"booking_window_days": 60,
"cancel_hours": 12,
"courts": [
{
"id": 1,
"name": "Court 1"
},
{
"id": 2,
"name": "Court 2"
}
]
}
],
"api_version": "1.0"
}
}

Facility type​

FieldMeaning
idSend it as facility_type_id
name, descriptionShown to players; the description is the venue's text (surface, lights, rules)
durationsBookable durations in minutes. Offer only these.
stepMinutes between possible start times (15, 30 or 60)
paymentvenue (pay at the venue, confirmed at once), deposit (a share is paid online), full (everything is paid online)
deposit_percentShare paid online when payment is deposit
booking_window_daysHow many days ahead players can book
cancel_hoursPlayers can cancel unpaid bookings in the app until this many hours before the start
courtsCourts players can pick, in the venue's order

GET /facility-types returns the same list of facility types on its own.

GET /availability​

Free start times for one facility type on one day, with the free courts and the price of each.

ParameterRequiredMeaning
facility_type_idyesFrom /config
datenoYYYY-MM-DD. Default: the current operating day.
durationnoMinutes, one of the type's durations. Default: the first one.
GET /api/booking/v1/availability?facility_type_id=1&date=2026-11-22&duration=90
{
"data": {
"type_id": 1,
"date": "2026-11-22",
"date_label": "Sunday 22 November 2026",
"duration": 90,
"durations": [
60,
90,
120
],
"today": "2026-11-18",
"last_date": "2027-01-17",
"periods": [
{
"name": "Morning",
"slots": [
{
"start": "2026-11-22 07:00",
"label": "07:00",
"end_label": "08:30",
"from_amount": 82.5,
"from_label": "$ 82.50",
"courts": [
{
"id": 1,
"name": "Court 1",
"amount": 82.5,
"amount_label": "$ 82.50"
},
{
"id": 2,
"name": "Court 2",
"amount": 82.5,
"amount_label": "$ 82.50"
}
]
}
]
},
{
"name": "Late night",
"slots": [
{
"start": "2026-11-22 21:00",
"label": "21:00",
"end_label": "22:30",
"from_amount": 82.5,
"from_label": "$ 82.50",
"courts": [
{
"id": 1,
"name": "Court 1",
"amount": 82.5,
"amount_label": "$ 82.50"
},
{
"id": 2,
"name": "Court 2",
"amount": 82.5,
"amount_label": "$ 82.50"
}
]
}
]
}
]
}
}

(Shortened: the real answer lists every free start time of the day.)

FieldMeaning
date, date_labelThe day shown
duration, durationsThe duration used, and the ones the player can switch to
today, last_dateFirst and last day the player can pick; build the date picker from these
periodsMorning, afternoon, evening and so on, as the venue names them. Only periods with a free slot are listed.
slots[].startSend this value as start when booking
slots[].label, end_labelStart and end time to show
slots[].from_amount, from_labelLowest price among the free courts ("from $ 82.50")
slots[].courtsThe courts free for the whole duration, with their price. Prices can differ by court and by time (peak hours).

Rules worth knowing:

  • Only free times are returned. The API never tells a player who booked a court, or that a court is booked at all.
  • A time that already started, or that starts sooner than the venue's minimum notice, is not offered.
  • Prices include tax and already apply the venue's peak and off-peak rates for the whole duration.
  • Availability changes all the time (the counter, the website and other apps book the same courts). Load it again when the player opens a day, after a failed booking, and when the app comes back to the foreground. A booking request can still be refused if someone else was faster; see Bookings.

A day outside the booking window answers 422:

{
"error": {
"code": "out_of_window",
"message": "This day cannot be booked online."
}
}
Was this page helpful?