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. | |
sendEmailToClientreasonIdList | booleaninteger array | POST GET /waitlist | Flag for whether or not an email will be sent to the client concerning the waitlist addition. | sendEmailToStaffShould 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 staff client concerning the waitlist addition. | |
serviceIdListsendEmailToStaff | integerboolean | GET POST /waitlistShould 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 reasonsFlag 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. | |
statusListstring | 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. |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[{ "auditReferralId": null, "businessId": 43111, "classScheduleId": 0, "client": {Client object for client of waitlist - for more info, see Clients API page}, "createdDate": 1535380101839, "createdUser": "JoeSchmo", "fieldDataList": null, "fieldDataListJson": "[{"schedulerPreferenceFieldDefnId":375724,"value":"15"},{schedulerPreferenceFieldDefnId":386792,"value":"Yes"}]", "fields": null, "lastOfferDate": null, "location": {Location object for location of waitlist - for more info, see Locations API page}, "modifiedDate": 1535380105151, "modifiedUser": null, "note": null, "preferredDate": 1537920000000, "preferredTimeOfDay": null, "professional": {Professional object for staff of waitlist - for more info, see Staff API page}, "reason": {Reason object for reason of waitlist - for more info, see Services API page}, "status": "OPEN", "waitListDateList": null, "waitListId": 143647 }] |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "auditReferralId": "r08dcf09208194933a33fd9298392dd70", "businessId": 43111, "classScheduleId": null, "client": {Client object for client of waitlist - for more info, see Clients API page}, "createdDate": 1535553948270, "createdUser": "WebClient", "fieldDataList": [{}], "fieldDataListJson": "[{"schedulerPreferenceFieldDefnId":375724,"value":"15"},{schedulerPreferenceFieldDefnId":386792,"value":"Yes"}]", "fields": null, "lastOfferDate": null, "location": {Location object for location of waitlist - for more info, see Locations API page}, "modifiedDate": 1535380105151, "modifiedUser": null, "note": null, "preferredDate": 1537920000000, "preferredTimeOfDay": null, "professional": {Professional object for staff of waitlist - for more info, see Staff API page}, "reason": {Reason object for reason of waitlist - for more info, see Services API page}, "status": "OPEN", "waitListDateList": [{ "createdDate": null, "createdUser": null, "date": 1535932800000, "modifiedDate": null, "modifiedUser": null, "waitListDateId": 50145, "waitListDateTimeList": [{ "displayTime": "10:00 am - 10:30 am", "endTime": 1030, "seq": 0, "startTime": 1000, "waitListDateId": 50145, "waitListDateTimeId": 96117 }], "waitListId": 145825 }], "waitListId": 145825 } |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "auditReferralId": null, "businessId": 43111, "classScheduleId": null, "client": {Client object for client of waitlist - for more info, see Clients API page}, "createdDate": 1535380101839, "createdUser": "JoeSchmo", "fieldDataList": null, "fieldDataListJson": null, "fields": {Fields object for scheduler field of waitlist - for more info, see Scheduler Fields API page}, "lastOfferDate": null, "location": {Location object for location of waitlist - for more info, see Locations API page}, "modifiedDate": 1535380101839, "modifiedUser": "JoeSchmo", "note": null, "preferredDate": null, "preferredTimeOfDay": null, "professional": {Professional object for staff of waitlist - for more info, see Staff API page}, "reason": {Reason object for reason of waitlist - for more info, see Services API page}, "status": "OPEN", "waitListDateList": [{ "createdDate": null, "createdUser": null, "date": 1537934400000, "modifiedDate": null, "modifiedUser": null, "waitListDateId": 49485, "waitListDateTimeList": [{ "displayTime": null, "endTime": 1030, "seq": null, "startTime": 1000, "waitListDateId": null, "waitListDateTimeId": 95490, }], "waitListId": null }], "waitListId": null } |
Property name | Type | Required | Description |
---|---|---|---|
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 specified waitlist belongs. |
classScheduleId | integer | If 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 specified waitlist - for more info, see Clients API page. |
createdDate | integer | Displays as date 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 specified waitlist. If client booked appointment from scheduler would display as "WebClient". | |
fieldDataList | array | When 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 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 specified waitlist - for more info, see Locations API page. | |
modifiedDate | integer | Displays as date 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 specified waitlist. If client booked appointment from scheduler would display as "WebClient". | |
note | string | Displays any note added to specified waitlist. | |
preferredDate | integer | Displays as preferred date of waitlist registrant in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
preferredTimeOfDay | string | Displays as preferred time of day of waitlist registrant, only applicable for class session waitlists. | |
professional | object | Yes | Displays the professional object for staff member connected to specified waitlist - for more info, see Staff API page. |
reason | object | Yes | Displays the reason object for service connected to specified waitlist - for more info, see Services API page. |
status | string | Yes | Displays the status of specified waitlist. Has acceptable values OPEN, INVITED, REMOVED, BOOKED, EXPIRED. |
waitListDateList | array | Displays an array of objects pertinent to the date of specified waitlist. | |
waitListId | integer | Provides unique numerical ID of 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. |