Skip to main content

Reservation

Reservation schema used by the TheBooking public API.

Fields

FieldRequiredTypeDescription
idNostringResource identifier used by TheBooking.
serviceIdNostringTheBooking service identifier.
customerIdNostringTheBooking customer identifier.
providerIdNointeger or stringTheBooking provider identifier.
startNointeger (int64)Unix timestamp for the slot start.
endNointeger (int64)Unix timestamp for the slot end.
statusNoenum(pending, confirmed, cancelled)Current reservation status.

Example

{
"id": "resource_123",
"serviceId": "service_123",
"customerId": "customer_123",
"providerId": 123,
"start": 1779148800,
"end": 1779152400,
"status": "pending"
}