Booking Appointments
This guide outlines best practices for creating appointment records with the ezyVet API.
Endpoint change
https://apiv2.ezyvet.com/ezycab/booking is deprecated. Use https://api.ezyvet.com/v4/calendar/booking instead — the request body, response, and required scope are unchanged. See the deprecation notice.
Overview
Use the /v4/calendar/booking endpoint to create appointments. This endpoint:
- Creates and links a consult record automatically
- Applies any billing triggers associated with the Appointment type
For those reasons, /v4/calendar/booking is the preferred endpoint for creating appointments over /v2/appointment.
Best practice workflow
- Confirm time zone and site context
- Call
v3/siteInformationand store the siteidand timezone.
- Call
- Load appointment types and resources
- Call
v2/appointmenttypeand store the appointment typeuid. - Call
v2/resourceand store the resourceuid.
- Call
- Check availability
- Call
/availabilitywith the appointment type, resource, and target time range. - Optionally call
/ezycab/v2.1/planning-guidesto retrieve the resource's availability windows (the scheduling blocks that define when a resource is open for bookings). This is useful for integrations that maintain a local copy of resource availability rather than querying/availabilityfor every slot.
- Call
- Create the booking
- Call
/v4/calendar/bookingwith the confirmed slot, appointment type, resource, animal, and contact.
- Call
- Persist the linked records
- Store the appointment
uidreturned by the booking response.
- Store the appointment
Why not create appointments via /v2/appointment?
Creating a record via /v2/appointment only creates the appointment itself. It does not:
- Create the consult record
- Apply billing triggers tied to the Appointment type
If you need a consult and billing triggers created, /v4/calendar/booking is the correct endpoint. Billing triggers are only applied when the provider resource is a salesperson (see Salesperson requirement for billing).
Data to include in a booking request
At minimum, ensure the booking request includes:
- Start time and duration
- Appointment type
uid - Animal and contact identifiers
- Resource
uidas provider
Facility / system user bookings
A facility / system user is a provider resource that is not tied to a specific human practitioner (resource type of facility). Because these users cannot be linked to records with a financial impact on the clinic, bookings against them follow a reduced path:
Appointment record: created as normal.
Default billing triggers: not applied. The appointment type's default billing triggers are skipped; no billing items are attached.
Clinical record (consult): created only when the appointment type has isConsultRequired = true. If the appointment type does not require a consult, no consult is created.
Non-facility (human-backed) provider resources follow the normal path, subject to the salesperson requirement below.
Salesperson requirement for billing
Billing items are only attached when the provider resource is linked to a user marked as a salesperson (is_salesperson on v1/user). If the provider's user is not a salesperson, the appointment (and consult, if required) is still created, but the appointment type's default billing triggers are skipped and no billing items are attached. The request does not fail.
To have bookings bill automatically, book against a provider resource whose user has Salesperson ticked in ezyVet, under Admin → Users/Resources → Users → Details → User Settings:

Behavioural matrix
| Provider resource type | appointmentType.isConsultRequired | Appointment | Billing triggers | Consult |
|---|---|---|---|---|
| Non-facility (human), salesperson | true | Created | Applied | Created |
| Non-facility (human), salesperson | false | Created | Applied | Not created |
| Non-facility (human), not a salesperson | true | Created | Not applied | Created |
| Non-facility (human), not a salesperson | false | Created | Not applied | Not created |
facility (system user) | true | Created | Not applied | Created |
facility (system user) | false | Created | Not applied | Not created |
Example flow (high level)
- Load appointment types and resources.
- Query
/availabilityfor a bookable slot. - Create the appointment via
/v4/calendar/booking. - Use the returned consult record for clinical work.
- Allow billing triggers to populate the appropriate billing items (salesperson providers only).
Relevant endpoints
/ezycab/availability- Get bookable appointment slots/ezycab/v2.1/planning-guides- Get resource availability windows (planning guides)/v4/calendar/booking- Create appointments with consult + billing triggersv2/appointmenttype- Get appointment typesv2/resource- Get resourcesv3/siteInformation- Get timezone infov2/contact- Get contact infov2/animal- Get animal info