Reserve a slot

POST https://api.zenoti.com/v1/bookings/{booking_id}/slots/reserve

Reserves a specific time slot for a service booking. The reservation locks the slot temporarily and can optionally generate a temporary invoice.

Before you begin

Permission: Manage API Keys (under Administrator) — Required to access Zenoti APIs.

Endpoint

POST /v1/bookings/{booking_id}/slots/reserve

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

Request body

Field Type Required Description
slot_time datetime Yes The time slot to reserve
create_invoice boolean No Generate a temporary invoice (default: false)

Response

Success (200 OK)

{
  "is_reserved": true,
  "reservation_id": "d5e6f7a8-b9c0-1234-def0-567890123456",
  "expiry_time": "2026-03-15T09:15:00",
  "error": null
}

Response fields

Field Type Description
is_reserved boolean Whether the reservation succeeded
reservation_id string (GUID) Reservation identifier
expiry_time datetime When the reservation expires

Example

curl --request POST \
  --url 'https://api.zenoti.com/v1/bookings/c4d5e6f7-a8b9-0123-cdef-456789012345/slots/reserve' \
  --header 'Authorization: bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{ "slot_time": "2026-03-15T09:00:00" }'
const response = await fetch('https://api.zenoti.com/v1/bookings/{booking_id}/slots/reserve', {
  method: 'POST',
  headers: {
    'Authorization': 'bearer {{access_token}}',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ slot_time: '2026-03-15T09:00:00' })
});
const data = await response.json();
import requests

response = requests.post(
    'https://api.zenoti.com/v1/bookings/{booking_id}/slots/reserve',
    headers={
        'Authorization': 'bearer {{access_token}}',
    },
    json={'slot_time': '2026-03-15T09:00:00'}
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var content = new StringContent(
    JsonSerializer.Serialize(new { slotTime = "2026-03-15T09:00:00" }),
    Encoding.UTF8, "application/json");
var response = await client.PostAsync(
    "https://api.zenoti.com/v1/bookings/{booking_id}/slots/reserve", content);
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'

uri = URI('https://api.zenoti.com/v1/bookings/{booking_id}/slots/reserve')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
request['Content-Type'] = 'application/json'
request.body = { slot_time: '2026-03-15T09:00:00' }.to_json
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/reserve');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: bearer {{access_token}}',
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['slot_time' => '2026-03-15T09:00:00']));
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);

Error codes

Status Description
400 Bad request — invalid or missing required fields
401 Unauthorized — invalid or expired access token
429 Too many requests — rate limit exceeded (60/min)
502 Slot is not available for reservation