Slot
Slot schema used by the TheBooking public API.
Fields
| Field | Required | Type | Description |
|---|---|---|---|
availabilityId | No | string | Canonical slot identifier returned by GET /availability/get/. |
serviceId | No | string | TheBooking service identifier. |
providerId | No | integer or string | TheBooking provider identifier. |
start | No | integer (int64) | Unix timestamp for the slot start. |
end | No | integer (int64) | Unix timestamp for the slot end. |
bookable | No | boolean | Whether the slot can currently be booked. |
routingMode | No | enum(manual, auto) | How TheBooking selected or exposes providers for this slot. |
eligibleProviderIds | No | array of integer or string | Providers that can serve the slot when automatic routing is available. |
reservationsCount | No | integer | Current reservations already assigned to the slot. |
overrides | No | object | Availability adjustments applied to the returned slot. |
Example
{
"availabilityId": "slot_123",
"serviceId": "service_123",
"providerId": 123,
"start": 1779148800,
"end": 1779152400,
"bookable": true,
"routingMode": "manual",
"eligibleProviderIds": [
123
],
"reservationsCount": 1,
"overrides": {}
}