Waitlist
These are the endpoints that are available under the /waitlist path, which lists all the different waitlists and waitlist registrants you have added to your business for scheduling purposes.
Endpoint | Description |
---|---|
GET /waitlist | Returns all waitlist objects on an account in array format. |
GET /waitlist/{waitlistId} | Returns a JSON object for specified waitlist registration. |
POST /waitlist | Adds a client object to a waitlist. Request body/payload: Must pass a waitlist object in the request body/payload. For these calls, you need to pass a waitlist object with all required fields and any fields you want to set filled in the body of the payload. We have an example of a waitlist object in the responses section below and have indicated the required fields in the object values table at the bottom of this page. |
POST /waitlist/cancel/{waitlistId} | Removes specified waitlist registration from a waitlist. |
Data points passed on in the request URL portion of the API call that are used to filter the data being requested. 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 /waitlist | Should be set as the ID of client of waitlist to be returned following the GET call. |
endDate | string | GET /waitlist | Should be set as the end date of the waitlist to be returned, formatted as YYYY-MM-DD. |
locationIdList | integer array | GET /waitlist | Should be set as a comma-separated list of locationIds connected to the waitlists you want returned following the GET call. |
order_field | string | GET /waitlist | Should be set as the field that waitlists returned following the GET call should be ordered by. |
order_mode | string | GET /waitlist | Should be set as the mode ('asc'ending or 'desc'ending) in which waitlists returned following the GET call should appear. |
pageNumber | integer | GET /waitlist | Works with the pageSize parameter to determine how waitlists get returned following the GET call. The pageNumber value represents the number of pages on which the waitlists that get returned appear. |
pageSize | integer | GET /waitlist | Works with the pageNumber parameter to determine how waitlists gets returned following the GET call. The pageSize value represents the number of waitlists appearing on each page that gets returned. |
reasonIdList | integer array | GET /waitlist | Should be set as a comma-separated list of serviceIds connected to the waitlists you want returned following the GET call. This parameter is optional, and if it is not sent in then the return results will include all reasons. |
sendEmailToClient | boolean | POST /waitlist | Flag for whether or not an email will be sent to the client concerning the waitlist addition. |
sendEmailToStaff | boolean | POST /waitlist | Flag for whether or not an email will be sent to the staff concerning the waitlist addition. |
staffIdList | integer array | GET /waitlist | Should be set as a comma-separated list of the IDs of staff of waitlists to be returned following the GET call. |
startDate | string | GET /waitlist | Should be set as the start date of the calendar range to be displayed, formatted as YYYY-MM-DD. |
statusList | string array | GET /waitlist | Should be set as a comma-separated list of waitlist statuses to be displayed. Case sensitive. Has acceptable values OPEN, INVITED, REMOVED, BOOKED and EXPIRED. |
Property name | Type | Required | Description |
---|---|---|---|
address | string | Displays the address entered during appointment creation of the specified waitlisted appointment when it is set to a location of locationType VARIABLE. | |
auditReferralId | string | Provides unique alphanumeric ID that gets placed on an object to inform the audit trail at a later date. | |
businessId | integer | Yes | Provides unique numerical ID for the business to which the specified waitlist belongs. |
classScheduleId | integer | If the specified waitlist is connected to a class that is part of a class schedule, this field will contain the unique numerical ID for that class schedule. | |
client | object | Yes | Displays the object of any client who is connected to the specified waitlist - for more info, see Clients API page. |
createdDate | integer | Displays as the date the specified waitlist was created in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
createdUser | string | Displays as username of the user who created the specified waitlist. If client booked appointment from scheduler would display as "WebClient". | |
customFieldData | string | Displays as the contents of all of the specified waitlisted appointment's custom fields, combined. | |
customFieldJson | Displays a string JSON representing the specified waitlist's customFieldData. | ||
duration | integer | Provides the number of minutes that the specified waitlisted appointment is set to take. | |
fieldDataList | array | When the specified waitlist registration is made by a client via the web scheduler, this array contains fields objects that were answers to client information questions on the web scheduler. | |
fieldDataListJson | string | Displays a string JSON representing the fieldDataList array. | |
fields | array | Displays an array of any scheduler field objects that were assigned to the specified waitlist. For more information, see the Scheduler Field API page. | |
lastOfferDate | integer | Displays the last offer date for a client when sending an invitation to waitlist registrants, measured in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
location | object | Displays the location object assigned to the specified waitlist - for more info, see Locations API page. | |
modifiedDate | integer | Displays as the date the specified waitlist was last modified in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
modifiedUser | string | Displays as username of user who last modified the specified waitlist. If client booked appointment from scheduler would display as "WebClient". | |
note | string | Displays any note added to the specified waitlist. | |
preferredDate | integer | Displays as the preferred date of the specified waitlist registrant in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
preferredTimeOfDay | string | Displays as preferred time of day of the specified waitlist registrant, only applicable for class session waitlists. | |
professional | object | Yes | Displays the professional object for the staff member connected to the specified waitlist - for more info, see Staff API page. |
reason | object | Yes | Displays the reason object for the service connected to the specified waitlist - for more info, see Services API page. |
status | string | Yes | Displays the status of the specified waitlist. Has acceptable values OPEN, INVITED, REMOVED, BOOKED, EXPIRED. |
waitListDateList | array | Displays an array of objects pertinent to the date of the specified waitlist. | |
waitListId | integer | Provides unique numerical ID of the specified waitlist. For information about creating an appointment for a client that is already on a waitlist, see the waitListId property description on the Appointments API page. |