Endpoint | Description |
---|---|
Returns an array of appointments with specified status. | |
GET /timeOff/{timeOffId} | Returns a JSON object for specified time off. |
POST /appointments | Creates a new appointment on a business' account. Request body/payload: Must pass a full appointment object. |
PUT /timeOff/{timeOffId} | Updates an existing time off. Request body/payload: Must pass an appointment with the desired changes made. |
PUT /appointments/{appointmentId}/cancel/{sendStaffEmail}/{sendClientEmail} | Sets an appointment to a substatus of CANCEL and alters boolean flag accordingly to notify the client via email. Effectively cancels an appointment with the option to send an email to the staff and the client. Request body/payload: Must pass an appointment object with substatus set to CANCEL. |
PUT /appointments/{appointmentId}/noshow/{sendClientEmail} | Sets an appointment to a substatus of NO_SHOW and alters boolean flag accordingly to notify the client via email. Request body/payload: Must pass an appointment object with substatus set to NO_SHOW. This endpoint also requires a JSON POST body of an empty string for the Reason property of the appointment: {"reason" : ""} |
PUT /appointments/{appointmentId}/completed/{sendClientEmail} | Sets an appointment to a substatus of COMPLETED and alters boolean flag accordingly to send a thank you email to the client. Request body/payload: Must pass an appointment object with substatus set to COMPLETED. This endpoint also requires a JSON POST body of an empty string for the Reason property of the appointment: {"reason" : ""} |
To aid with page load time, we have included pageNumber and pageSize parameters for server side pagination. The pageSize parameter will be the number of items shown per page.
Parameter | Type | Endpoints to be used with | Description |
---|---|---|---|
clientId | integer | GET /appointments/report | Displays unique numeric ID of client of appointment to be returned following a GET report call. |
Property name | Type | Description |
---|---|---|
businessId | integer | Provides unique numeric ID of the business offering availability. (Required) |
color | string | Displays any color chosen to override specified time off on the backoffice calendar. |
createdDate | string | Displays as date specified time off was created as YYYY-MM-DD with time after. (Required) |
createdUser | string | Displays the username of user who created specified time off. (Required) |
description | string | Displays any description that was added to time off profile. |
endDate | string | Displays the date that specified time off is set to end. |
endTime | integer | Displays as military time that specified session ends. (Required) |
modifiedDate | string | Displays as date specified time off was last modified as YYYY-MM-DD with time after. |
modifiedUser | string | Displays the username of user who last modified specified time off. |
reason | object | Displays the reason object connected to specified time off. |
recurringAppointmentId | integer | If specified time off is part of a repeating appointment series, then this provides unique numeric ID of that repeating appointment series. |
staff | object | Displays the staff object connected to specified time off. |
startDate | string | Displays the date that specified time off is set to begin. |
startTime | integer | Displays as military time that specified session is set to begin. (Required) |
status | string | |
timeOffId | integer |
Add Comment