Skip to navigation

Get Attendance Novelties

Attendance novelties of a period, ready to load into payroll: the same rows and the same 13 columns as the Excel report downloaded from Attendance cards («Descargar reporte»), with the same period and concepts.

  • One row per novelty: overtime, tardiness, absences, early departures, work on rest days, holidays and Sundays, time off with and without pay, sick leave and compensated time. Overtime comes as one row per pay factor.
  • from_date and to_date are required, inclusive, and at most 31 days apart.
  • concepts narrows the rows to some concepts (comma separated). Without it, every concept is returned.
  • A cell the Excel report shows as a dash comes as null, never as empty text.
  • Rows follow the order of the Excel report: by person, then by date. Walk them with cursor / next_cursor.
  • Requires credentials of an administrator of the organization.

Authentication

Api-Keystring

API key of the organization. Always sent together with the Secret-Access header.

Path parameters

organization_slugstringRequired

Headers

Secret-AccessstringRequired

Query parameters

from_datestringRequired

Required, in YYYY-MM-DD format. Inclusive. The window between from_date and to_date cannot exceed 31 days. Applies to the day of the novelty (start_date), the same period the Attendance cards Excel report asks for.

to_datestringRequired

Required, in YYYY-MM-DD format. Inclusive. The window between from_date and to_date cannot exceed 31 days. Applies to the day of the novelty (start_date), the same period the Attendance cards Excel report asks for.

conceptsstringOptional

Concepts to include, comma separated, for example EXTRA_HOURS,SICK_LEAVE. Omit it to get every concept. Valid values: EXTRA_HOURS, TARDINESS, UNJUSTIFIED_ABSENCE, EARLY_DEPARTURE, WORKED_REST_DAY, WORKED_HOLIDAY, SUNDAY_WORKDAY, PAID_TIME_OFF, UNPAID_TIME_OFF, SICK_LEAVE, COMPENSATED_TIME.

limitintegerOptional1-500Defaults to 100
Rows per page, up to 500. Defaults to 100 when omitted.
cursorstringOptional

Cursor for the next page. Take it from next_cursor in the previous response and send it back unchanged; it is opaque. Omit it for the first page. It points to a row position: if the attendance of the period is recalculated between two pages, the walk can repeat or skip a row, so prefer periods already closed.

Response

Successful Response
totalinteger
Rows in the whole period.
from_datedate
to_datedate
resultslist of objects
has_next_pageboolean
next_cursorstringOptional

Send it as cursor to get the next page.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
503
Service Unavailable Error