Work locations
The Location object is used to represent an address that can be associated with an employee
GET /2023-03-01/xhr/work-locations
curl \
-X GET https://api.affixapi.com/2023-03-01/xhr/work-locations \
-H "Authorization: $API_KEY"
Response examples (200)
[
{
"id": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
"remote_id": "19202938",
"name": "NYC Office",
"type": "office",
"address": {
"street_address": "221 S Main Street",
"locality": "Yuma",
"administrative_area": "AZ",
"country": "IE",
"post_code": "30691"
}
}
]
Response examples (202)
# Headers
Retry-After: 42
# Payload
{
"message": "string"
}
Response examples (401)
{
"error": "authentication_error",
"message": "Your password is incorrect",
"code": "incorrect_username_or_password"
}
Response examples (429)
# Headers
Retry-After: 42
# Payload
{
"message": "string"
}
Response examples (500)
{
"message": "string"
}
Response examples (501)
{
"message": "string"
}