List appointments
Get a list of appointments for the specified business id and branch id, with a maximum one month date range. List can be filtered by date of appointment, DateTime of update, staff id, room id, machine id or client id with possibility to include canceled, deleted or archived appointments and option to fetch online categories and notes of appointments. Results can be sorted using the standard 'sort' parameter in 'property,direction' form (e.g. 'sort=appointmentDate,desc'); when omitted, results are returned in the default order - by creation date, or by update time for updated-range queries.
Path parameters
Query parameters
from date to query from. yyyy-MM-dd
to date (inclusive) to query to. yyyy-MM-dd
staff id to filter by
room id to filter by
machine id to filter by
client id to filter by
include canceled appointments in the list
include deleted appointments in the list
include archived appointments in the list
date-time from which the appointments has been updated onwards
date-time to which the appointments has been updated backwards
include online categories of appointments
include notes of appointments
group booking id to filter by
number of appointments to return, max is 100
page number, default is 0 and is optional
sort results in 'property,direction' form. Supported properties are 'appointmentDate' and 'creationDate'; direction is 'asc' or 'desc' (defaults to 'asc'). Example: 'appointmentDate,desc'. When omitted, results are returned in the default order (by creation date, or by update time for updated-range queries)
Response
Appointments listed
Example response
{
"_embedded": {
"appointments": [
{
"appointmentId": "ab123",
"version": 1,
"appointmentDate": "2018-01-01",
"startTime": "09:00:00",
"endTime": "09:30:00",
"price": 40,
"staffId": "staffid",
"roomId": "roomid",
"machineId": "machineid",
"confirmed": true,
"serviceId": "serviceid",
"staffRequest": true,
"preferredStaff": true,
"clientId": "clientid",
"serviceRewardId": "servicerewardid",
"courseId": "courseId",
"courseName": "courseName",
"clientCourseId": "clientCourseId",
"clientCourseItemId": "clientcourseitemid",
"purchasingBranchId": "purchasingBranchId",
"serviceGroupItemOptionId": "servicegroupitemoptionid",
"serviceGroupId": "servicegroupid",
"parentServiceGroupId": "parentservicegroupid",
"serviceName": "serviceName",
"state": "BOOKED",
"activationState": "ACTIVE",
"depositAmount": 20,
"bookingId": "bookingid",
"source": "source",
"groupBookingId": "groupbookingid",
"deleted": true,
"notes": "This is a note about the appointment",
"internetServiceCategories": [
{
"id": "ab123",
"name": "Cut & Style"
}
],
"branchId": "X9QpRsZ3bSvhJAaakg9TXQ"
}
]
}
}