Bookings API
Take appointments and reservations from your own site
Authentication
All requests use the base URL https://bookings.ladill.com/api/v1/bookings-api
and a Bearer API key. Create a token with the Bookings scope in account.ladill.com → Developers.
Authorization: Bearer your_key
List services
/services
List the services customers can book.
curl -X GET https://bookings.ladill.com/api/v1/bookings-api/services \
-H "Authorization: Bearer your_key"
{
"data": [
{
"id": 4,
"name": "Haircut",
"description": "Wash, cut and style.",
"duration_minutes": 45,
"price_minor": 8000,
"price": 80,
"currency": "GHS"
}
]
}
Create a service
/services
Add a bookable service. Note that price is sent in major units (80 = GHS 80.00) and returned as both price and price_minor.
Parameters
name
|
string required | Service name (max 160 chars). |
duration_minutes
|
integer required | Length of one appointment, 5–1440. |
description
|
string optional | Service description (max 2000 chars). |
price
|
number optional | Price in major units. Leave out or send 0 for a free service. |
currency
|
string optional | 3-letter currency code. |
buffer_minutes
|
integer optional | Gap kept free after each booking, 0–240. |
capacity
|
integer optional | How many customers can share one slot, 1–500 (default 1). |
active
|
boolean optional | Whether the service can be booked. |
curl -X POST https://bookings.ladill.com/api/v1/bookings-api/services \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Haircut",
"duration_minutes": 45,
"price": 80
}'
{
"data": {
"id": 4,
"name": "Haircut",
"description": null,
"duration_minutes": 45,
"price_minor": 8000,
"price": 80,
"currency": "GHS"
}
}
Fetch a service
/services/{id}
Retrieve a single service by its id.
curl -X GET https://bookings.ladill.com/api/v1/bookings-api/services/{id} \
-H "Authorization: Bearer your_key"
{
"data": {
"id": 4,
"name": "Haircut",
"duration_minutes": 45,
"price_minor": 8000,
"price": 80,
"currency": "GHS"
}
}
Update a service
/services/{id}
Change any of the fields accepted when creating a service. Send only the fields you want to change.
Parameters
name
|
string optional | Service name. |
duration_minutes
|
integer optional | Length of one appointment, 5–1440. |
…
|
mixed optional | Any other field from Create a service. |
curl -X PATCH https://bookings.ladill.com/api/v1/bookings-api/services/{id} \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"price": 100
}'
{
"data": {
"id": 4,
"name": "Haircut",
"price_minor": 10000,
"price": 100
}
}
Delete a service
/services/{id}
Remove a service. A service that already has bookings is deactivated instead of deleted, so its history is kept.
curl -X DELETE https://bookings.ladill.com/api/v1/bookings-api/services/{id} \
-H "Authorization: Bearer your_key"
{
"ok": true
}
Check availability
/availability
List the open slots for a service on one day, taking your weekly hours, notice period, blackout dates, and existing bookings into account.
Parameters
service_id
|
integer required | The service to check. |
date
|
string required | Day to check, as YYYY-MM-DD in your business timezone. |
curl -X GET https://bookings.ladill.com/api/v1/bookings-api/availability \
-H "Authorization: Bearer your_key"
{
"data": {
"date": "2026-11-20",
"timezone": "Africa/Accra",
"slots": [
{ "starts_at": "2026-11-20T09:00:00+00:00", "ends_at": "2026-11-20T09:45:00+00:00", "label": "9:00 AM" },
{ "starts_at": "2026-11-20T09:45:00+00:00", "ends_at": "2026-11-20T10:30:00+00:00", "label": "9:45 AM" }
]
}
}
Create a booking
/bookings
Book a slot. Free services confirm straight away and payment is null. Paid services are held and return a Ladill Pay payment object: send the customer to payment.checkout_url (or use access_code and public_key for the inline popup) before payment.expires_at; the booking confirms itself once paid. Returns 409 if the slot is no longer available. Limited to 120 requests a minute.
Parameters
service_id
|
integer required | The service being booked. |
starts_at
|
string required | Start time of an open slot, as returned by Check availability. |
name
|
string required | Customer name (max 160 chars). |
email
|
string optional | Customer email. Required unless phone is sent. |
phone
|
string optional | Customer phone. Required unless email is sent. |
notes
|
string optional | Anything the customer wants you to know (max 2000 chars). |
callback_url
|
string optional | Where to return the customer after payment. |
metadata
|
object optional | Your own key/value data, echoed on the booking. |
curl -X POST https://bookings.ladill.com/api/v1/bookings-api/bookings \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"service_id": 4,
"starts_at": "2026-11-20T09:00:00+00:00",
"name": "Kofi Boateng",
"email": "kofi@example.com"
}'
{
"data": {
"reference": "BK-4T8PZ2",
"status": "pending",
"service": { "id": 4, "name": "Haircut" },
"starts_at": "2026-11-20T09:00:00+00:00",
"ends_at": "2026-11-20T09:45:00+00:00",
"starts_at_local": "2026-11-20 09:00",
"timezone": "Africa/Accra",
"customer": { "name": "Kofi Boateng", "email": "kofi@example.com", "phone": null },
"amount_minor": 8000,
"currency": "GHS",
"payment_status": "pending",
"source": "api"
},
"payment": {
"reference": "LP-8F2A31C9",
"checkout_url": "https://pay.ladill.com/…",
"access_code": "acc_live_…",
"public_key": "pk_live_…",
"amount_minor": 8000,
"currency": "GHS",
"expires_at": "2026-11-13T12:15:00+00:00"
}
}
List bookings
/bookings
List bookings, latest start time first. Results are paginated.
Parameters
status
|
string optional | pending, confirmed, cancelled, completed, no_show, or expired. |
from
|
string optional | Only bookings starting on or after this date. |
to
|
string optional | Only bookings starting on or before this date. |
per_page
|
integer optional | Page size, up to 100 (default 25). |
page
|
integer optional | Page number. |
curl -X GET https://bookings.ladill.com/api/v1/bookings-api/bookings \
-H "Authorization: Bearer your_key"
{
"data": [
{
"reference": "BK-4T8PZ2",
"status": "confirmed",
"service": { "id": 4, "name": "Haircut" },
"starts_at": "2026-11-20T09:00:00+00:00",
"customer": { "name": "Kofi Boateng", "email": "kofi@example.com", "phone": null },
"payment_status": "paid"
}
],
"meta": { "page": 1, "last_page": 1, "total": 1 }
}
Fetch a booking
/bookings/{reference}
Retrieve a booking by its reference. A booking awaiting payment is re-checked against Ladill Pay first, so this is safe to poll after the customer returns.
curl -X GET https://bookings.ladill.com/api/v1/bookings-api/bookings/{reference} \
-H "Authorization: Bearer your_key"
{
"data": {
"reference": "BK-4T8PZ2",
"status": "confirmed",
"starts_at": "2026-11-20T09:00:00+00:00",
"ends_at": "2026-11-20T09:45:00+00:00",
"amount_minor": 8000,
"currency": "GHS",
"payment_status": "paid",
"payment_reference": "LP-8F2A31C9",
"paid_at": "2026-11-13T12:04:38+00:00"
}
}
Confirm a booking
/bookings/{reference}/confirm
Confirm a pending booking that does not involve payment (for example when auto-confirm is switched off). Paid bookings confirm themselves when Ladill Pay reports the payment.
curl -X POST https://bookings.ladill.com/api/v1/bookings-api/bookings/{reference}/confirm \
-H "Authorization: Bearer your_key"
{
"data": {
"reference": "BK-4T8PZ2",
"status": "confirmed"
}
}
Cancel a booking
/bookings/{reference}/cancel
Cancel a booking and free its slot.
Parameters
reason
|
string optional | Why the booking was cancelled (max 255 chars). |
curl -X POST https://bookings.ladill.com/api/v1/bookings-api/bookings/{reference}/cancel \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"reason": "Customer asked to cancel"
}'
{
"data": {
"reference": "BK-4T8PZ2",
"status": "cancelled"
}
}
Complete a booking
/bookings/{reference}/complete
Close out a confirmed booking after the appointment, as completed or as a no-show.
Parameters
status
|
string optional | completed (default) or no_show. |
curl -X POST https://bookings.ladill.com/api/v1/bookings-api/bookings/{reference}/complete \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"status": "completed"
}'
{
"data": {
"reference": "BK-4T8PZ2",
"status": "completed"
}
}
Fetch booking settings
/settings
Read your business settings, weekly opening hours, publishable key, and hosted booking page URL.
curl -X GET https://bookings.ladill.com/api/v1/bookings-api/settings \
-H "Authorization: Bearer your_key"
{
"data": {
"business_name": "Kofi's Barbershop",
"timezone": "Africa/Accra",
"public_key": "bkpk_…",
"hosted_url": "https://ladl.link/book/…",
"brand_color": "#7c3aed",
"availability": {
"mon": [{ "start": "09:00", "end": "17:00" }],
"sat": [{ "start": "10:00", "end": "14:00" }]
},
"min_notice_hours": 2,
"max_advance_days": 60,
"auto_confirm": true,
"shared_calendar": false,
"notify_email": "bookings@yoursite.com",
"webhook_url": null,
"allowed_origins": []
}
}
Update booking settings
/settings
Change your settings. Send only the fields you want to change. The first time you set a webhook_url, the response includes your webhook_secret; it is shown only once.
Parameters
business_name
|
string optional | Business display name (max 160 chars). |
timezone
|
string optional | IANA timezone, e.g. Africa/Accra. |
brand_color
|
string optional | Hex colour, e.g. #7c3aed. |
availability
|
object optional | Weekly hours keyed by mon…sun; each day is up to 4 windows with start and end as HH:MM. |
min_notice_hours
|
integer optional | Minimum notice before a slot can be booked, 0–720. |
max_advance_days
|
integer optional | How far ahead customers can book, 1–730. |
auto_confirm
|
boolean optional | Confirm free bookings automatically. |
shared_calendar
|
boolean optional | Treat all services as one calendar, so a booking on one blocks the others. |
notify_email
|
string optional | Where new-booking emails go. |
webhook_url
|
string optional | URL that receives booking webhooks. |
allowed_origins
|
string[] optional | Up to 20 website origins allowed to use your publishable key. |
curl -X PATCH https://bookings.ladill.com/api/v1/bookings-api/settings \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"min_notice_hours": 2,
"availability": {
"mon": [{ "start": "09:00", "end": "17:00" }]
}
}'
{
"data": {
"business_name": "Kofi's Barbershop",
"min_notice_hours": 2,
"availability": {
"mon": [{ "start": "09:00", "end": "17:00" }]
}
},
"webhook_secret": null
}
Booking webhooks
Set your webhook URL in bookings.ladill.com → Developers (or with Update booking settings). Ladill POSTs booking.created, booking.confirmed, and booking.cancelled events to your URL, named in the X-Ladill-Event header. Verify each one with HMAC-SHA512 of the raw request body using your webhook secret, compared against the X-Ladill-Signature header.
Browser API
For booking forms that call Ladill straight from the browser, use your publishable key (bkpk_…) instead of a token: GET /api/public/bookings/{key}/config and /availability, POST /bookings to book, and GET /bookings/{reference} to poll it. No Authorization header is needed; requests are limited to the allowed origins in your settings.
Errors
Errors use standard HTTP status codes with a JSON error message.
401 |
Missing, invalid, or revoked API token. |
403 |
The token does not have the scope this API needs. |
404 |
No such record on your account. |
409 |
The request conflicts with the current state (for example, the slot was just taken). |
422 |
Validation failed (missing or invalid parameters). |
429 |
Rate limit exceeded — slow down and retry. |
502 |
Ladill Pay could not start the payment — safe to retry. |