Retrieve an attendance

GET/hris/{connection_id}/attendance/{id}

Parameters

fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection
idstring required
ID of the Attendance

Returns

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
employee_user_idstring required
(reference to HrisEmployee)
start_atdate required
clock-in (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
end_atdate required
clock-out (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
timeshift_idstring
the scheduled hris_timeshift this attendance record fulfils
location_idstring
(reference to HrisLocation)
company_idstring
(reference to HrisCompany)
group_idstring
department, team, etc. (reference to HrisGroup)
timezonestring
addressobject
hoursnumber
worked hours
currencystring
pairs with hourly_rate and tip amounts
status enum
Valid values:
"OPEN"
"CLOSED"
"APPROVED"
breaks array
declared_tips_amountnumber
cash tips declared by the employee for this attendance record
non_cash_tips_amountnumber
card/non-cash tips attributed to this attendance record
job_namestring
hourly_ratenumber
approver_user_idstring
(reference to HrisEmployee)
approved_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
const options = {
  method: 'GET',
  url: 'https://api.unified.to/hris/5de520f96e439b002043d8dc/attendance/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?