These are the endpoints that are available under the /locations path, which lists all the different locations you have added to your business for scheduling purposes.
Endpoint | Description |
---|---|
GET /locations | Returns all location objects on an account in array format. |
GET /locations/{locationId} | Returns a JSON object for specified location. |
GET /locations/count | Returns an object that contains a count of the total number of locations that match the parameters passed with the call. |
GET /locationList/count | Returns an object that contains a list of all locations along with a count of the total number of locations that match the parameters passed with the call. |
GET /locationList/report | Returns an object that contains a list of locations that match the parameters passed with the call. |
GET /locationList/reportCount | Returns a count object that provides the number of locations that match the parameters passed with the call. |
GET /locationIdList | Returns an object that contains list of the location IDs for the locations that match the parameters passed with the call. |
POST /locations | Creates a new location object on an account. Request body/payload: Must pass a location object in the request body/payload. For these calls, you need to pass a locations 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 locations object in the responses section below and have indicated the required fields in the object values table at the bottom of this page. |
PUT /locations/{locationId} | Updates an existing location object. All properties can be overwritten except createdDate, businessId, privateUrl, and locationId. Request body/payload: Must pass a location object with the desired changes made in the request body/payload. For these calls, you need to pass a locations object with all required fields and any fields you want to update filled in the body of the payload. We have an example of a locations object in the responses section below and have indicated the required fields in the object values table at the bottom of this page. |
DELETE /locations/{locationId} | Removes a location object from view by setting its active property to false. |
Data points passed on in the request URL portion of the API call that are used to filter the data being requested.
Parameter | Type | Endpoints to be used with | Description |
---|---|---|---|
assignAllStaffToLocation | boolean | POST /locations | Indicates whether or not you want to assign all of your staff to the location you are creating. |
dateRangeType | string | GET /locationList/reportWithCount, GET /locationList/report, GET /locationList/reportCount, GET /locationIdList | Should be set as the object that determines the start and end date of the date range. Acceptable values include createdDate and modifiedDate. |
endDate | string | GET /locationList/reportWithCount, GET /locationList/report, GET /locationList/reportCount, GET /locationIdList | Should be set as the end date of appointments to be returned following the API call, formatted as YYYY-MM-DD. |
inactive | boolean | GET /locations/count | |
locationGroupId | integer | GET /locations | Should be set as the unique numeric ID of any location groups that include the locations you want returned following the GET call. |
locationGroupIdList | integer array | GET /locationList/reportWithCount, GET /locationList/report, GET /locationList/reportCount, GET /locationIdList | Should be set as a comma-separated list of locationGroupIds connected to the locations to be returned following the API call. |
locationIdList | integer array | GET /locationList/reportWithCount, GET /locationList/report, GET /locationList/reportCount, GET /locationIdList | Should be set as a comma-separated list of locationIds of the locations to be returned following the API call. |
locationIdListToExclude | integer array | GET /locationList/reportWithCount, GET /locationList/report, GET /locationList/reportCount, GET /locationIdList | Should be set as a comma-separated list of locationIds of the locations to be excluded from the data that returns following the API call. |
locationTypeList | string array | GET /locationList/reportWithCount, GET /locationList/report, GET /locationList/reportCount, GET /locationIdList | Should be set as a comma-separated list of locationTypes of the locations to be returned following the API call. |
pageNumber | integer | GET /locations, GET /locationList/report, GET /locationList/reportWithCount | Works with the pageSize parameter to determine how data gets returned following a GET call. The pageNumber value represents the number of pages on which the class sessions that get returned appear. |
pageSize | integer | GET /locations, GET /locationList/report, GET /locationList/reportWithCount | Works with the pageNumber parameter to determine how data gets returned following a GET call. The pageSize value represents the number of class sessions appearing on each page of class sessions that gets returned. |
staffId | integer | GET /locations | Should be set as the unique numeric ID of a staff person that works at locations you want returned following the GET call. |
staffIdList | integer array | GET /locationList/reportWithCount, GET /locationList/report, GET /locationList/reportCount, GET /locationIdList, POST /locations | Should be set as a comma-separated list of staffIds connected to the locations to be returned following the API call. |
startDate | string | GET /locationList/reportWithCount, GET /locationList/report, GET /locationList/reportCount, GET /locationIdList | Should be set as the start date of appointments to be returned following the API call, formatted as YYYY-MM-DD. |
working | boolean | GET /locations, GET /locationList/reportCount, GET /locationIdList, GET /locationList/report, GET /locationList/reportWithCount | Returns only those locations that have working hours set up. |
Property name | Type | Required | Description |
---|---|---|---|
active | boolean | Yes | Indicates whether or not the specified location should return on GET calls. |
address1 | string | Displays as the first line of the specified location's address. | |
address2 | string | Displays as the second line of the specified location's address. | |
allowOnline | boolean | Indicates whether or not the specified location can be booked by clients. | |
allowTZchange | integer | If this value is set to 1, a timezone change is allowed and shows - if it is set to 0, a timezone change is not allowed and shows - if it is set to -1, a timezone change is not allowed and does not show. | |
businessId | integer | Yes | Provides a unique numeric ID of the business to which the specified location belongs. |
city | string | Displays as the specified location's city. | |
contactName | string | Displays as the name of the staff that is designated as the specified location's preferred contact. | |
createdDate | integer | Displays as the date that the specified location was created, in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
createdUser | string | Displays the username of the user who created the specified location. | |
description | string | Displays as what is set as the Address of the specified location. | |
directions | string | Displays as what is set as the Directions of the specified location. | |
einNumber | integer | Provides the employer identification number (EIN) of the specified location. | |
emailAddress | string | Displays as the email address provided for the specified location. | |
endDate | string | Displays as the end date of the specified location's booking window if the location has one. | |
embedCode | string | Provides iframe code that can be used to display scheduler for the specified location based on address given in location description - a back-end component, users cannot alter. | |
geocode | string | Provides geographical coordinates for the specified location based on address given in location description - a back-end component, users cannot alter. | |
hasWorkScheduleOrClass | boolean | Indicates whether or not the specified location has a defined work schedule or class. | |
inboundBuffer | integer | Provides built-in estimate of how much time is needed to enter the specified location - displays in minutes. | |
instructions2 | string | Displays as what is set as the Additional Directions/Instructions of the specified location. | |
instructions3 | string | Provides an additional field to contain any instructions for the specified location. | |
instructions4 | string | Provides an additional field to contain any instructions for the specified location. | |
instructions5 | string | Provides an additional field to contain any instructions for the specified location. | |
internalDisplayName | string | This is a derived, READ ONLY field. It does not get updated directly by API calls. If the locationName is filled but the internalName is empty, the internalDisplayName would be the same as the locationName - if the internalName is not empty, the internalDisplayName would be the same as the internalName. | |
internalName | string | Displays as what is set as the Internal Display Name of the specified location - this is what staff see. | |
latitude | integer | Displays as the latitude of the specified location. | |
locationCategory | string | Displays as the category of the specified location. | |
locationId | integer | Yes, for PUT calls | Provides a unique numeric ID for the specified location. |
locationName | string | Yes | Displays as what is set as the Location Name name of the specified location - this is what clients see. |
locationType | string | Yes | Impacts how the description field is shown in the backoffice. Has acceptable values "PHYSICAL", "VIRTUAL", and "VARIABLE". |
logoUrl | string | Displays as URL of specified location. | |
longitude | integer | Displays as the longitude of the specified location. | |
modifiedDate | integer | Displays as the date that the specified location was last modified, in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
modifiedUser | string | Displays the username of the user who last modified the specified location. | |
officePhone | string | Displays as what is set as the Office Phone of the specified location. | |
outboundBuffer | integer | Provides a built-in estimate of how much time is needed to leave this location - displayed in minutes. | |
privateUrl | string | Displays as the URL of the specified location's private scheduling page. | |
sortWeight | integer | Affects the order in which different locations of a business are displayed to users. | |
startDate | string | Displays as the start date of the specified location's booking window if the location has one. | |
status | string | Displays as the status of the specified location. Has acceptable values "ACTIVE" and "INACTIVE". | |
tax1rate | integer | Provides the tax rate of the specified location. | |
timeZone | object | Displays the timezones object connected to the this location - for more info, see Timezones API page. | |
virtualRoomId | integer | If you take virtual appointments and your meeting room requires a passcode or meeting ID, it would go here. | |
virtualRoomUrl | string | Displays as the URL for the specified location's virtual meeting room. | |
virtualType | string | Displays as the type of service provider used for virtual meetings held at the specified location. | |
visible | boolean | Indicates whether or not the specified location is visible. | |
zip | integer | Provides the zip code of the specified location. |
Add Comment