Endpoints
Bookings & availability
Appointments, free slots and the service catalog. Writes follow the same availability rules as the in-app Calendar.
Os caminhos são relativos à URL base. Cada card lista a permissão que a chamada exige e todos os parâmetros, com tipo e limites.
/bookingsList bookings, newest first.
Parâmetros de query
- fromopcionalstring (ISO 8601 date-time with offset)
Bookings that start at or after this time.
- toopcionalstring (ISO 8601 date-time with offset)
Bookings that start at or before this time.
- statusopcionalstring
Comma-separated list of statuses.
Valores permitidos:
pendingconfirmedcompletedno_showcancelledpending_completion - contact_idopcionalinteger
Bookings of this contact.
- serviceopcionalstring
Service name (case-insensitive).
- service_idopcionalinteger
Bookings linked to this service.
/bookings/:idRetrieve a booking.
Parâmetros de caminho
- idobrigatóriointeger
Booking ID.
/bookingsBook an appointment for a contact.
Corpo JSON
- contact_idobrigatóriointeger
The customer. Name and phone come from the contact unless you override them.
- date_timeobrigatóriostring (ISO 8601 date-time with offset)
Start time.
- duration_minutesopcionalinteger
5–1,440. Defaults to the service duration, else 60.
- service_idopcionalinteger
A service from GET /services.
- service_typeopcionalstring
Service name, up to 200 characters. Defaults to the service title.
- locationopcionalstring
Up to 300 characters.
- location_idopcionalinteger
A business location.
- notesopcionalstring
Up to 5,000 characters. Added to the booking notes.
- statusopcionalenum
Default "pending".
Valores permitidos:
pendingconfirmedcompletedno_show - conversation_idopcionalinteger
Link the booking to a conversation.
- customer_nameopcionalstring
Override the contact name, 1–200 characters.
- customer_phoneopcionalstring
Override the contact phone, 3–50 characters.
- slot_tokenopcionalstring
The slot_token of a slot from GET /availability/slots.
- override_availabilityopcionalboolean
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.
Parâmetros de caminho
- idobrigatóriointeger
Booking ID.
Corpo JSON
- date_timeopcionalstring (ISO 8601 date-time with offset)
New start time.
- duration_minutesopcionalinteger
5–1,440.
- service_idopcionalinteger | null
A service from GET /services.
- service_typeopcionalstring | null
Up to 200 characters.
- locationopcionalstring
Up to 300 characters.
- location_idopcionalinteger
A business location.
- notesopcionalstring
Up to 5,000 characters. Added as a new note.
- statusopcionalenum
New status.
Valores permitidos:
pendingconfirmedcompletedno_showcancelled - customer_nameopcionalstring
1–200 characters.
- customer_phoneopcionalstring
3–50 characters.
- slot_tokenopcionalstring
The slot_token of the new slot.
- override_availabilityopcionalboolean
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.
Parâmetros de caminho
- idobrigatóriointeger
Booking ID.
Corpo JSON
- reasonopcionalstring
Up to 1,000 characters, saved as a booking note.
/bookings/:id/statusSet the booking status.
Parâmetros de caminho
- idobrigatóriointeger
Booking ID.
Corpo JSON
- statusobrigatórioenum
New status.
Valores permitidos:
confirmedcompletedno_showpending
/availability/slotsList bookable slots on one day. Each slot has start, end and slot_token.
Parâmetros de query
- dateobrigatóriostring (YYYY-MM-DD)
The day to check.
- service_idopcionalinteger
Use this service's duration and rules.
- durationopcionalinteger
Slot length in minutes, 5–1,440.
- location_idopcionalinteger
A business location.
- granularityopcionalinteger
Minutes between slot starts, 5–120.
- exclude_booking_idopcionalinteger
Ignore this booking (when rescheduling it).
/servicesList business services (name, duration, price, category).
/services/:idRetrieve a service.
Parâmetros de caminho
- idobrigatóriointeger
Service ID.