Get available slots for a location
crm:booking-services.readhttps://api.holded.com/api/v2/booking-locations/{locationId}/slotsReturns available time slots for a specific service at a location on a given day. The response also includes the booking form fields (under `form`) that must be collected from the user before calling Create a booking.
Parameters
Path parameters
stringrequiredLocation ID (24-char hex ObjectId)
Query parameters
stringrequiredService identifier
string<date>requiredDate in YYYY-MM-DD format
Request
import requests
url = "https://api.holded.com/api/v2/booking-locations/{locationId}/slots?service_id=value&day=2024-01-15"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
{
"items": [
{
"from": "2024-01-15T10:30:00+01:00",
"to": "2024-01-15T11:30:00+01:00",
"duration": 3600
}
],
"form": [
{
"key": "name",
"label": "Name",
"type": "text",
"required": true
}
]
}Success responses
200List of available slotsapplication/jsonSlot start in ISO 8601 format with timezone offset. Pass this value directly as `date_time` when creating a booking.
Slot end in ISO 8601 format with timezone offset
Slot duration in seconds
Booking form fields that must be collected from the user and passed as custom_fields when creating the booking.
Field key to use in custom_fields
Human-readable field label
Field type
textnumberdateemailselectradiocheckboxWhether the field is required
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Location not foundapplication/json429Rate limit exceededapplication/json