Skip to content

FISCALISTO / API / REFERENCE

Attendance

Open in ChatGPTOpen in ClaudeOpen in Cursor

The object AttendanceReport

Fields
  1. AttendanceReport

A period's attendance, per employee: hours against their schedule, absences, late arrivals and double and triple overtime per week, like Nómina › Asistencia › Registro.

object*string

What kind of object it is («invoice», «customer»…).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

issuer*string

The issuer (iss_…), the employer.

from*string

First day of the period, YYYY-MM-DD.

to*string

Last day of the period, YYYY-MM-DD.

overtime_approval*boolean

true: overtime only counts up to what the company authorized each day.

overtime_policy*string

How overtime reaches payroll: approval (needs authorization), all (all of it counts) or none (there is no overtime: it stays on the record and never counts).

One of"approval""all""none"
ordinary_week_hours*integer

The ordinary working week on the last day of the period: the legal one (48 in 2026, 46 in 2027, 44 in 2028, 42 in 2029 and 40 from 2030; LFT art. 59 and second transitory article of the DOF 01-05-2026 decree) or the company's if it is shorter. Hours worked beyond it in the week are overtime.

Range-9007199254740991 <= value <= 9007199254740991
weekly_hours*|

The weekly working hours the company set in Horario y reglas, or null if it follows the legal ones.

daily_jornada*string

From when a day gives overtime: agreed, past each person's agreed schedule (LFT art. 58); law, past the legal jornada for their shift (art. 61).

One of"agreed""law"
employees*array<>

Each employee of the issuer in the period.

Example AttendanceReport

{  "object": "attendance_report",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "from": "2027-01-04",  "to": "2027-01-10",  "overtime_approval": true,  "overtime_policy": "approval",  "ordinary_week_hours": 46,  "weekly_hours": null,  "daily_jornada": "agreed",  "employees": [    {      "employee": "emp_OufpKqnrvx9p1",      "name": "Ana López Ruiz",      "number": "12",      "place": "Sucursal Centro",      "worked_minutes": 2490,      "scheduled_minutes": 2400,      "absences": 0,      "disability_days": 0,      "vacation_days": 0,      "late_count": 1,      "late_minutes": 12,      "incomplete_days": 0,      "flagged_marks": 0,      "overtime_double_minutes": 90,      "overtime_triple_minutes": 0,      "overtime_minutes": 120,      "week_excess_minutes": 0,      "unapproved_overtime_minutes": 30,      "rejected_overtime_minutes": 0,      "rest_days_worked": 0,      "holidays_worked": 0,      "weeks_confirmed": 1,      "weeks_disputed": [],      "days": null,      "marks": null    }  ]}

The object AttendanceMark

Fields
  1. AttendanceMark

A clock-in or clock-out entry from Asistencia (electronic record of working hours, LFT art. 132).

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

object*string

What kind of object it is («invoice», «customer»…).

employee*string

The employee (emp_…).

kind*string

in: clock-in; out: clock-out.

One of"in""out"
at*string

When they clocked (UTC).

Formatdate-time
date*string

The day it counts toward, YYYY-MM-DD in local time.

time*string

The local time, HH:MM.

method*string

How they clocked: kiosk_qr (the time clock's code), kiosk_pin (number and PIN on the time clock), printed_qr (the printed QR), remote (away from the branch, with their location), manual (correction in the app), api.

One of"kiosk_qr""kiosk_pin""printed_qr""remote""manual""api"
place*|

The place where they clocked, or null.

distance_m*|

How many meters from the place they were, if they shared their location; otherwise null.

flags*array<>

Notes to review (the mark is never rejected for them): no_location (didn't share their location), far (far from the place), imprecise (imprecise location), remote (outside the branch), new_device (a new phone), offline (made without a connection and arrived later; at is when it was made, corrected by the phone's clock), code_time (offline, with a checador code from another time).

reason*|

Why it was added, in a correction or from the API (the employee sees it); null if they made it themselves.

created_by*|

Who added it, in a correction; null if they made it themselves.

voided*boolean

true if it was removed: it stays struck through, doesn't count, and shows with its reason.

void_reason*|

Why it was removed, or null.

voided_by*|

Who removed it, or null.

voided_at*|

When it was removed, or null.

Example AttendanceMark

{  "id": "atm_OufpKqnrvx9p1",  "object": "attendance_mark",  "livemode": false,  "employee": "emp_OufpKqnrvx9p1",  "kind": "in",  "at": "2027-01-04T15:02:00.000Z",  "date": "2027-01-04",  "time": "09:02",  "method": "api",  "place": "Sucursal Centro",  "distance_m": null,  "flags": [],  "reason": "Registrada por la API",  "created_by": "API",  "voided": false,  "void_reason": null,  "voided_by": null,  "voided_at": null}

The object AttendanceOvertime

Fields
  1. AttendanceOvertime

The overtime the company authorized or rejected for one day of an employee, before or after that day.

object*string

What kind of object it is («invoice», «customer»…).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

employee*string

The employee (emp_…).

date*string

The day, YYYY-MM-DD.

minutes*|

Up to how many minutes of that day's overtime count for payroll (0 if they were rejected); null: no decision.

rejected*boolean

true: the company rejected that day's overtime.

comment*|

Why, or null.

Example AttendanceOvertime

{  "object": "attendance_overtime",  "livemode": false,  "employee": "emp_OufpKqnrvx9p1",  "date": "2027-01-08",  "minutes": 120,  "rejected": false,  "comment": "Cierre de inventario"}

The object AttendanceShift

Fields
  1. AttendanceShift

A shift of Asistencia › Turnos: when people start and end, in one to three segments, and its legal jornada.

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

object*string

What kind of object it is («invoice», «customer»…).

name*string

Its name.

color*string

Its color on the calendar.

One of"teal""blue""violet""amber""rose""slate"
segments*array<>

Its segments: one, or two or three in a split shift.

break_minutes*integer

Break minutes within the shift.

Range-9007199254740991 <= value <= 9007199254740991
break_paid*boolean

true: the break counts as working time (LFT art. 64).

minutes*integer

Working minutes of the shift.

Range-9007199254740991 <= value <= 9007199254740991
jornada*string

The legal jornada (LFT art. 60): diurna (between 6:00 and 20:00), nocturna (between 20:00 and 6:00) or mixta (with less than 3 h 30 min of night; with more it's nocturna). Its maximum is 8 h, 7 h and 7 h 30 min (art. 61).

One of"diurna""nocturna""mixta"
overnight*boolean

true: it ends the next day.

warnings*array<string>

What the law says about this shift: it exceeds the art. 61 jornada, or lacks the half-hour break of art. 63.

archived*boolean

true: archived, no longer put on new days or rotations.

Example AttendanceShift

{  "id": "ats_OufpKqnrvx9p1",  "object": "attendance_shift",  "livemode": false,  "name": "Nocturno",  "color": "violet",  "segments": [    {      "start": "22:00",      "end": "06:00"    }  ],  "break_minutes": 30,  "break_paid": true,  "minutes": 480,  "jornada": "nocturna",  "overnight": true,  "warnings": [    "La jornada nocturna es de 7 h (artículo 61). Este turno tiene 8 h: necesita el acuerdo del trabajador para repartir las horas así (artículo 58)."  ],  "archived": false}

The object AttendanceRotation

Fields
  1. AttendanceRotation

A shift rotation: shifts and rest days that repeat in a cycle (4×4, week on week off).

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

object*string

What kind of object it is («invoice», «customer»…).

name*string

Its name.

days*array<string|null>

The cycle in order: each day a shift (ats_…) or null for a rest day.

week_minutes*integer

Average minutes per week over the cycle.

Range-9007199254740991 <= value <= 9007199254740991
warning*|

If more than six working days in a row go by without rest (LFT art. 69), it says so; otherwise null.

archived*boolean

true: archived, no longer assigned to anyone else.

Example AttendanceRotation

{  "id": "atr_OufpKqnrvx9p1",  "object": "attendance_rotation",  "livemode": false,  "name": "4×4",  "days": [    "ats_OufpKqnrvx9p2",    "ats_OufpKqnrvx9p2",    "ats_OufpKqnrvx9p2",    "ats_OufpKqnrvx9p2",    null,    null,    null,    null  ],  "week_minutes": 1680,  "warning": null,  "archived": false}

The object AttendanceCalendar

Fields
  1. AttendanceCalendar

A month's shift calendar, like Nómina › Asistencia › Turnos: each employee's shift each day and where it comes from.

object*string

What kind of object it is («invoice», «customer»…).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

issuer*string

The issuer (iss_…).

month*string

The month, YYYY-MM.

from*string

First day, YYYY-MM-DD.

to*string

Last day, YYYY-MM-DD.

daily_jornada*string

From when a day gives overtime: agreed, past each person's agreed schedule (LFT art. 58); law, past the legal jornada for their shift (art. 61).

One of"agreed""law"
employees*array<>

Each employee of the issuer who records attendance.

Example AttendanceCalendar

{  "object": "attendance_calendar",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "month": "2027-01",  "from": "2027-01-01",  "to": "2027-01-31",  "daily_jornada": "agreed",  "employees": [    {      "employee": "emp_OufpKqnrvx9p1",      "name": "Ana López Ruiz",      "number": "12",      "rotation": "atr_OufpKqnrvx9p1",      "warning": null,      "days": [        {          "date": "2027-01-01",          "source": "rotation",          "shift": "ats_OufpKqnrvx9p2",          "start": "07:00",          "end": "19:00",          "segments": [            {              "start": "07:00",              "end": "19:00"            }          ],          "minutes": 660,          "jornada": "diurna",          "note": "festivo"        },        {          "date": "2027-01-02",          "source": "calendar",          "shift": "ats_OufpKqnrvx9p1",          "start": "22:00",          "end": "06:00",          "segments": [            {              "start": "22:00",              "end": "06:00"            }          ],          "minutes": 480,          "jornada": "nocturna",          "note": null        }      ]    }  ]}

The object AttendanceCalendarChange

Fields
  1. AttendanceCalendarChange

What changed on the shift calendar.

object*string

What kind of object it is («invoice», «customer»…).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

issuer*string

The issuer (iss_…).

employees*integer

How many employees.

Range-9007199254740991 <= value <= 9007199254740991
days*integer

How many days for each.

Range-9007199254740991 <= value <= 9007199254740991
shift*|

The shift that was put (ats_…), or null: rest day or removed.

cleared*boolean

true: what was on the calendar was removed and those days go back to their rotation or schedule.

Example AttendanceCalendarChange

{  "object": "attendance_calendar_change",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "employees": 2,  "days": 3,  "shift": "ats_OufpKqnrvx9p1",  "cleared": false}

Was this page helpful?