Search K
Booking Appointments
This guide outlines best practices for creating appointment records with the ezyVet API.
Overview
Use the /ezycab/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, /ezycab/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.
- Call
- Create the booking
- Call
/ezycab/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, /ezycab/booking is the correct endpoint.
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
Example flow (high level)
- Load appointment types and resources.
- Query
/availabilityfor a bookable slot. - Create the appointment via
/ezycab/booking. - Use the returned consult record for clinical work.
- Allow billing triggers to populate the appropriate billing items.
Relevant endpoints
/ezycab/availability- Get bookable appointment slots/ezycab/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