Retrieve a list of company locations. If no CompanyId is provided the user's companyId is used (if set). If the user's company Id is also not set and error will be returned.
A location list response
API key is missing or invalid
Request is completely forbidden. API not provided or method and or endpoint not supported
404 Not found
429 too many requests response
Service Error
unexpected error response
{- "code": "Success",
- "message": "string",
- "location_list": [
- {
- "city": "string",
- "companyId": "string",
- "createdAt": "2020-07-21 17:32:28Z",
- "customFields": [
- {
- "deletedAt": "2020-07-21 17:32:28Z",
- "id": "string",
- "isRequired": true,
- "isShownInList": true,
- "name": "string",
- "options": { },
- "title": "string",
- "type": ""
}
], - "departments": [
- {
- "id": "string",
- "locationId": "string",
- "name": "string"
}
], - "id": "string",
- "locationReference": "string",
- "name": "string",
- "shifts": [
- {
- "id": "string",
- "locationId": "string",
- "name": "string"
}
], - "state": "AL",
- "street": "string",
- "street2": "string",
- "timezone": "US/Hawaii",
- "updatedAt": "2020-07-21 17:32:28Z",
- "zip": "string"
}
]
}