الـ Endpoints
Bookings & availability
Appointments, free slots and the service catalog. Writes follow the same availability rules as the in-app Calendar.
المسارات نسبية للـ base URL. كل كارت بيوضّح الصلاحية اللي الاستدعاء محتاجها وكل parameter، مع نوعه وحدوده.
/bookingsList bookings, newest first.
معاملات الاستعلام
- fromاختياريstring (ISO 8601 date-time with offset)
Bookings that start at or after this time.
- toاختياريstring (ISO 8601 date-time with offset)
Bookings that start at or before this time.
- statusاختياريstring
Comma-separated list of statuses.
القيم المسموحة:
pendingconfirmedcompletedno_showcancelledpending_completion - contact_idاختياريinteger
Bookings of this contact.
- serviceاختياريstring
Service name (case-insensitive).
- service_idاختياريinteger
Bookings linked to this service.
/bookings/:idRetrieve a booking.
معاملات المسار
- idمطلوبinteger
Booking ID.
/bookingsBook an appointment for a contact.
الـ body بصيغة JSON
- contact_idمطلوبinteger
The customer. Name and phone come from the contact unless you override them.
- date_timeمطلوبstring (ISO 8601 date-time with offset)
Start time.
- duration_minutesاختياريinteger
5–1,440. Defaults to the service duration, else 60.
- service_idاختياريinteger
A service from GET /services.
- service_typeاختياريstring
Service name, up to 200 characters. Defaults to the service title.
- locationاختياريstring
Up to 300 characters.
- location_idاختياريinteger
A business location.
- notesاختياريstring
Up to 5,000 characters. Added to the booking notes.
- statusاختياريenum
Default "pending".
القيم المسموحة:
pendingconfirmedcompletedno_show - conversation_idاختياريinteger
Link the booking to a conversation.
- customer_nameاختياريstring
Override the contact name, 1–200 characters.
- customer_phoneاختياريstring
Override the contact phone, 3–50 characters.
- slot_tokenاختياريstring
The slot_token of a slot from GET /availability/slots.
- override_availabilityاختياريboolean
Skip the availability check, like a manual entry in the Calendar.
- Answers 201 with the booking.
/bookings/:idChange booking details. A new date_time reschedules it.
معاملات المسار
- idمطلوبinteger
Booking ID.
الـ body بصيغة JSON
- date_timeاختياريstring (ISO 8601 date-time with offset)
New start time.
- duration_minutesاختياريinteger
5–1,440.
- service_idاختياريinteger | null
A service from GET /services.
- service_typeاختياريstring | null
Up to 200 characters.
- locationاختياريstring
Up to 300 characters.
- location_idاختياريinteger
A business location.
- notesاختياريstring
Up to 5,000 characters. Added as a new note.
- statusاختياريenum
New status.
القيم المسموحة:
pendingconfirmedcompletedno_showcancelled - customer_nameاختياريstring
1–200 characters.
- customer_phoneاختياريstring
3–50 characters.
- slot_tokenاختياريstring
The slot_token of the new slot.
- override_availabilityاختياريboolean
Skip the availability check.
- Send at least one field besides slot_token, override_availability and location_id.
/bookings/:id/cancelCancel a booking. Cancelling an already cancelled booking returns it unchanged.
معاملات المسار
- idمطلوبinteger
Booking ID.
الـ body بصيغة JSON
- reasonاختياريstring
Up to 1,000 characters, saved as a booking note.
/bookings/:id/statusSet the booking status.
معاملات المسار
- idمطلوبinteger
Booking ID.
الـ body بصيغة JSON
- statusمطلوبenum
New status.
القيم المسموحة:
confirmedcompletedno_showpending
/availability/slotsList bookable slots on one day. Each slot has start, end and slot_token.
معاملات الاستعلام
- dateمطلوبstring (YYYY-MM-DD)
The day to check.
- service_idاختياريinteger
Use this service's duration and rules.
- durationاختياريinteger
Slot length in minutes, 5–1,440.
- location_idاختياريinteger
A business location.
- granularityاختياريinteger
Minutes between slot starts, 5–120.
- exclude_booking_idاختياريinteger
Ignore this booking (when rescheduling it).
/servicesList business services (name, duration, price, category).
/services/:idRetrieve a service.
معاملات المسار
- idمطلوبinteger
Service ID.