Endpoint
Bookings & availability
Appointments, free slots and the service catalog. Writes follow the same availability rules as the in-app Calendar.
I percorsi sono relativi all'URL di base. Ogni scheda indica il permesso richiesto dalla chiamata e ogni parametro, con tipo e limiti.
/bookingsList bookings, newest first.
Parametri di query
- fromopzionalestring (ISO 8601 date-time with offset)
Bookings that start at or after this time.
- toopzionalestring (ISO 8601 date-time with offset)
Bookings that start at or before this time.
- statusopzionalestring
Comma-separated list of statuses.
Valori consentiti:
pendingconfirmedcompletedno_showcancelledpending_completion - contact_idopzionaleinteger
Bookings of this contact.
- serviceopzionalestring
Service name (case-insensitive).
- service_idopzionaleinteger
Bookings linked to this service.
/bookings/:idRetrieve a booking.
Parametri del percorso
- idobbligatoriointeger
Booking ID.
/bookingsBook an appointment for a contact.
Corpo JSON
- contact_idobbligatoriointeger
The customer. Name and phone come from the contact unless you override them.
- date_timeobbligatoriostring (ISO 8601 date-time with offset)
Start time.
- duration_minutesopzionaleinteger
5–1,440. Defaults to the service duration, else 60.
- service_idopzionaleinteger
A service from GET /services.
- service_typeopzionalestring
Service name, up to 200 characters. Defaults to the service title.
- locationopzionalestring
Up to 300 characters.
- location_idopzionaleinteger
A business location.
- notesopzionalestring
Up to 5,000 characters. Added to the booking notes.
- statusopzionaleenum
Default "pending".
Valori consentiti:
pendingconfirmedcompletedno_show - conversation_idopzionaleinteger
Link the booking to a conversation.
- customer_nameopzionalestring
Override the contact name, 1–200 characters.
- customer_phoneopzionalestring
Override the contact phone, 3–50 characters.
- slot_tokenopzionalestring
The slot_token of a slot from GET /availability/slots.
- override_availabilityopzionaleboolean
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.
Parametri del percorso
- idobbligatoriointeger
Booking ID.
Corpo JSON
- date_timeopzionalestring (ISO 8601 date-time with offset)
New start time.
- duration_minutesopzionaleinteger
5–1,440.
- service_idopzionaleinteger | null
A service from GET /services.
- service_typeopzionalestring | null
Up to 200 characters.
- locationopzionalestring
Up to 300 characters.
- location_idopzionaleinteger
A business location.
- notesopzionalestring
Up to 5,000 characters. Added as a new note.
- statusopzionaleenum
New status.
Valori consentiti:
pendingconfirmedcompletedno_showcancelled - customer_nameopzionalestring
1–200 characters.
- customer_phoneopzionalestring
3–50 characters.
- slot_tokenopzionalestring
The slot_token of the new slot.
- override_availabilityopzionaleboolean
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.
Parametri del percorso
- idobbligatoriointeger
Booking ID.
Corpo JSON
- reasonopzionalestring
Up to 1,000 characters, saved as a booking note.
/bookings/:id/statusSet the booking status.
Parametri del percorso
- idobbligatoriointeger
Booking ID.
Corpo JSON
- statusobbligatorioenum
New status.
Valori consentiti:
confirmedcompletedno_showpending
/availability/slotsList bookable slots on one day. Each slot has start, end and slot_token.
Parametri di query
- dateobbligatoriostring (YYYY-MM-DD)
The day to check.
- service_idopzionaleinteger
Use this service's duration and rules.
- durationopzionaleinteger
Slot length in minutes, 5–1,440.
- location_idopzionaleinteger
A business location.
- granularityopzionaleinteger
Minutes between slot starts, 5–120.
- exclude_booking_idopzionaleinteger
Ignore this booking (when rescheduling it).
/servicesList business services (name, duration, price, category).
/services/:idRetrieve a service.
Parametri del percorso
- idobbligatoriointeger
Service ID.