Employees
List the individuals (employees, contractors, accountants, and others) listed in the HRIS/Payroll software
Query parameters
-
employment_status string
Optional query parameter. Use to enable server-side filtering of the
employment_status
attribute. Will only include individuals with that attribute explicitly set (ie if an individuals has anull
, it will not be returned if this parameter is set)Values are
active
,inactive
,pending
, orleave
.
GET /2023-03-01/xhr/employees
curl \
-X GET https://api.affixapi.com/2023-03-01/xhr/employees \
-H "Authorization: $API_KEY"
Response examples (200)
[
{
"id": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
"remote_id": "19202938",
"employee_number": "2",
"first_name": "Greg",
"last_name": "Hirsch",
"display_full_name": "Hirsch",
"nationality": "Irish",
"job_title": "Software developer",
"work_email": "greg@affixapi.com",
"personal_email": "greg@gmail.com",
"mobile_phone_number": "Hirsch",
"tax_id": "1234567890",
"gender": "male",
"ethnicity": "white",
"marital_status": "single",
"date_of_birth": "1990-11-10",
"employment_status": "active",
"employment_type": "full_time",
"start_date": "2020-10-11",
"remote_created_at": "2020-10-11",
"termination_date": "2021-10-12",
"avatar": "http://alturl.com/h2h8m",
"home_location": {
"street_address": "221 S Main Street",
"locality": "Yuma",
"administrative_area": "AZ",
"country": "IE",
"post_code": "30691"
},
"work_location": {
"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"
}
},
"manager": {
"first_name": "string",
"last_name": "string",
"id": "string",
"work_email": "string",
"remote_id": "string"
},
"bank_account": {
"account_number": "string",
"bank_name": "string",
"bic": "string",
"holder_name": "string",
"iban": "string"
},
"employment_history": [
{
"job_title": "Software Developer",
"effective_date": "2020-10-11",
"group_id": "4B9bKBpX5tnwjiG93TAqF7ci",
"group_remote_id": "49",
"group_name": "Engineering",
"manager_id": "string",
"manager_remote_id": "string"
}
],
"compensation_history": [
{
"pay_rate": 85000,
"pay_period": "year",
"pay_frequency": "semimonthly",
"employment_type": "full_time",
"currency": "eur",
"effective_date": "2020-10-11",
"notes": "Salary Adjustment"
}
],
"custom_fields": {
"t_shirt_size": "medium"
},
"groups": [
{
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"name": "backend",
"type": "team",
"remote_id": "df6c28e8"
},
{
"id": "132Xpnw2a38aaQG93TAqF7ci",
"name": "engineering",
"type": "department",
"remote_id": "355c65922637"
}
],
"dependents": [
{
"name": "string",
"relationship": "string"
}
],
"emergency_contacts": [
{
"first_name": "string",
"last_name": "string",
"relationship": "string",
"mobile_phone_number": "string",
"primary_contact": true
}
]
}
]
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"
}