post https://api.zenoti.com/v1/queue/center_wait_times
Purpose: The purpose of this API is to retrieve wait times for a list of centers or for centers in an area as per the Geolocation.
Response Object
Name | Type | Description |
---|---|---|
center_wait_times | object | Object containing the information of centers and its corresponding wait times. |
center_wait_times Object
Name | Type | Description |
---|---|---|
wait_time | int | This is the wait time of the center. |
id | guid | Unique identifier of the center as entered in the request. |
name | string | Name of the center corresponding to the id in the API request. |
geo_latitude | string | Latitude of the corresponding center. |
geo_longitude | string | Longitude of the corresponding center. |
status | string | Status of the center. Open or Closed |
error Object
Message | Code | Description |
---|---|---|
Invalid request, only one of Geofence or Center ids is supported as a valid request | QA004 | When both the center_ids and the geolocation is mentioned in the request. Note: Either use center_id or the geolocation parameters. |
Invalid Input | AA107 | When partial geolocation data is entered. |
Request query exceeds maximum limit of distance - 50 miles | QA002 | When the geolocation distance is more than 50 miles. |
Request query exceeds maximum limit of centers - 50 | QA001 | When the API body contains more than 50 center_ids. |
Invalid Input | AA107 | When the geolocation coordinates are out of range. Range: Latitude -90 to 90 Longitude: -180 to 180 |
Queue-Admin is not enabled for this organization | QA003 | When the queue module is not enabled for an organization. |