Bookings
All paths are under https://bookwithmilo.com/api/external/v1 and take Authorization: Bearer <token>. Reading needs the read scope, changing needs write. Times you send carry an offset; times Milo sends are UTC. "Venue-local" dates and times are in the club's time zone (timezone in GET /me).
Find a free slot
GET /clubs/{club_id}/availability answers, per court, the free start times of one length on one day.
| Parameter | ||
|---|---|---|
date |
required | The venue-local day, YYYY-MM-DD, within the club's booking horizon |
duration |
required | Minutes, one the sport offers (for padel usually 60, 90 or 120) |
sport |
optional | A sport_id: only that sport's courts |
court_type |
optional | indoor, outdoor or covered |
from_time, to_time |
optional | Venue-local HH:MM: only slots starting at or after from_time and before to_time |
curl "https://bookwithmilo.com/api/external/v1/clubs/$CLUB_ID/availability?date=2026-12-05&duration=90" \
-H "Authorization: Bearer $ACCESS_TOKEN"
{
"club_id": "01938a7e-5b1c-7d2e-8f3a-4b5c6d7e8f90",
"date": "2026-12-05",
"duration_min": 90,
"courts": [
{
"court_id": "01938a7e-6c2d-7e3f-9a4b-5c6d7e8f9a01",
"name": "Padel 1",
"sport": "Padel",
"sport_id": "01938a7e-7d3e-7f4a-8b5c-6d7e8f9a0b12",
"type": "indoor",
"slots": [{ "start": "2026-12-05T17:00:00+00:00", "end": "2026-12-05T18:30:00+00:00", "price_cents": 3600 }]
}
]
}
A court without a free slot is left out. price_cents is the club's price, VAT included: what you owe the club.
For a date picker, GET /clubs/{club_id}/availability/days?from=2026-12-01&to=2026-12-31&duration=90 answers per day whether any slot is free. The range is at most 31 days, both ends included; it takes the same filters.
Book a court
POST /clubs/{club_id}/bookings with JSON and an Idempotency-Key header. The booking is confirmed at once.
| Field | ||
|---|---|---|
court_id |
required | A court_id from the availability |
start |
required | RFC 3339 with an offset, a whole minute: 2026-12-05T18:00:00+01:00 |
duration_min |
required | 1 to 240, one the sport offers |
customer.name |
required | Up to 120 characters |
customer.email |
optional | Milo never mails this player about the booking |
customer.phone |
optional | Up to 40 characters, for the club |
external_ref |
optional | Your reference, up to 255 characters; the club sees it |
external_customer_id |
optional | Your id for the player, up to 64 characters; the club never sees it |
curl https://bookwithmilo.com/api/external/v1/clubs/$CLUB_ID/bookings \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-8812" \
-d '{"court_id":"01938a7e-6c2d-7e3f-9a4b-5c6d7e8f9a01","start":"2026-12-05T18:00:00+01:00","duration_min":90,
"customer":{"name":"J. Smith","email":"j.smith@example.com"},"external_ref":"order-8812","external_customer_id":"user-4711"}'
The answer is 201 with a Location header and the booking. Keep its id.
The Idempotency-Key (1 to 64 characters) makes a retry safe. Use one key per booking you mean to make. Sending the same key with the same body again answers the same booking as it is now, without booking twice; the same key with another body is 409 idempotency_conflict. A request without the header is 422 idempotency_key_required.
If someone took the slot first, you get 409 slot_unavailable: ask the availability again. A slot that cannot be booked at all (in the past, beyond the horizon, off the club's start-time grid, outside opening hours) is 422 slot_not_bookable, with the reason in detail.
Read a booking
GET /bookings/{id} answers the booking as it is now, the club's changes included. Bookings you did not make, or that are not at the token's club, are 404 booking_not_found.
The fields are in the API reference. A few to know:
statusisconfirmed, andcancelledafter any cancel, withcancelled_atandcancel_reason.fee_centsis always 0:total_centsequalsprice_cents.- 90 days after the booking ended, or on the player's request, Milo erases the customer:
namereads"erased",email,phoneandexternal_customer_idbecomenull.external_refstays.
Change the customer
PATCH /bookings/{id} changes the customer's details and your external_customer_id. Send only what changes; null clears email, phone or external_customer_id. The name cannot be cleared.
curl -X PATCH https://bookwithmilo.com/api/external/v1/bookings/$BOOKING_ID \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"customer":{"phone":"+31 6 12345678"},"external_customer_id":"user-4711"}'
The answer is 200 with the booking. The club gets no mail; its change log shows which fields changed. A change also sends you a booking.updated webhook; a PATCH that changes nothing sends none.
- An empty body, or any other field (
court_id,start, …), is 422validation_failed. - A cancelled or ended booking is 409
not_updatable.
Move a booking
You cannot move a booking to another court or time. Cancel it and book the new slot. The club can move one of your bookings at its desk; you then receive booking.updated with the new court_id, start and end.
Cancel a booking
DELETE /bookings/{id} cancels with reason partner and answers 200 with the booking. Nothing is refunded through Milo: the player paid you. Cancelling again answers the same. A booking that has ended is 409 not_cancellable. You receive booking.cancelled for your own cancel too.
Catch up after missed webhooks
GET /bookings?updated_since=… lists your bookings that changed at or after an instant: made, moved by the club, cancelled (by anyone), the customer changed or erased. Cancelled bookings are included. Each item is the booking as GET /bookings/{id} answers it, plus updated_at.
| Parameter | ||
|---|---|---|
updated_since |
required | RFC 3339 with an offset: 2026-12-01T00:00:00Z |
club_id |
optional | One club; a club this token does not act on is 403 forbidden. Left out: an OAuth token's club, or every club a static token is granted |
limit |
optional | 1 to 100, default 50 |
cursor |
optional | The previous page's next |
curl "https://bookwithmilo.com/api/external/v1/bookings?updated_since=2026-12-01T00:00:00Z" \
-H "Authorization: Bearer $ACCESS_TOKEN"
{
"bookings": [{ "id": "01938a7f-0a1b-7c2d-8e3f-4a5b6c7d8e9f", "status": "cancelled", "cancel_reason": "admin", "updated_at": "2026-12-04T20:00:00+00:00" }],
"next": null
}
(The booking is shortened here.) The oldest change comes first. While next is a string, ask again with the same updated_since and cursor=<next>; null means you have it all. Keep the last updated_at you processed and start the next catch-up a few minutes before it: a booking you see twice is the same booking.