Retrieve available slots
Retrieves available time slots for an existing booking. If no slots are available on the requested day, returns the next available day.
Before you begin
- You need a valid API key or access token. See Set up API authentication.
Permission: Manage API Keys (under Administrator) — Required to access Zenoti APIs.
Endpoint
GET /v1/bookings/{booking_id}/slots
Base URL: https://api.zenoti.com
Request
Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | bearer {{access_token}} |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| booking_id | string (GUID) | Yes | Booking identifier from the create step |
Response
Success (200 OK)
{
"slots": [
{
"Time": "2026-03-15T09:00:00",
"Available": true,
"SalePrice": 130.80,
"Priority": 1,
"Warnings": []
},
{
"Time": "2026-03-15T09:15:00",
"Available": true,
"SalePrice": 130.80,
"Priority": 2,
"Warnings": []
}
],
"future_days": [
{ "Day": "2026-03-16T00:00:00", "IsAvailable": true }
],
"next_available_day": "2026-03-15T00:00:00",
"error": null
}
Response fields
| Field | Type | Description |
|---|---|---|
| slots | array | Available time slots for the requested day |
| slots[].Time | datetime | Slot time |
| slots[].Available | boolean | Whether the slot is bookable |
| slots[].SalePrice | decimal | Service price for this slot |
| future_days | array | Availability on future days of the week |
| next_available_day | datetime | Nearest date with available slots |
Example
curl --request GET \
--url 'https://api.zenoti.com/v1/bookings/c4d5e6f7-a8b9-0123-cdef-456789012345/slots' \
--header 'Authorization: bearer {{access_token}}'
const response = await fetch('https://api.zenoti.com/v1/bookings/{booking_id}/slots', {
method: 'GET',
headers: {
'Authorization': 'bearer {{access_token}}'
},
});
const data = await response.json();
import requests
response = requests.get(
'https://api.zenoti.com/v1/bookings/{booking_id}/slots',
headers={
'Authorization': 'bearer {{access_token}}',
},
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var response = await client.GetAsync(
"https://api.zenoti.com/v1/bookings/{booking_id}/slots");
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'
uri = URI('https://api.zenoti.com/v1/bookings/{booking_id}/slots')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
response = http.request(request)
data = JSON.parse(response.body)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.zenoti.com/v1/bookings/{booking_id}/slots');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: bearer {{access_token}}'
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
Error codes
| Status | Description |
|---|---|
| 401 | Unauthorized — invalid or expired access token |
| 404 | Resource not found |
| 429 | Too many requests — rate limit exceeded (60/min) |
| 502 | Invalid booking ID or could not retrieve booking details |