FISCALISTO / API / REFERENCE
Attendance
The employees' electronic record of working hours (LFT art. 132, required from 2027): each employee's attendance for a period, with their double and triple overtime, and the punches that come from another time clock.
The object AttendanceReport
- 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*stringWhat kind of object it is («invoice», «customer»…).
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
issuer*stringThe issuer (iss_…), the employer.
from*stringFirst day of the period, YYYY-MM-DD.
to*stringLast day of the period, YYYY-MM-DD.
overtime_approval*booleantrue: overtime only counts up to what the company authorized each day.
overtime_policy*stringHow 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).
"approval""all""none"ordinary_week_hours*integerThe 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.
-9007199254740991 <= value <= 9007199254740991weekly_hours*|The weekly working hours the company set in Horario y reglas, or null if it follows the legal ones.
daily_jornada*stringFrom 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).
"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
- AttendanceMark
A clock-in or clock-out entry from Asistencia (electronic record of working hours, LFT art. 132).
id*stringObject identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
object*stringWhat kind of object it is («invoice», «customer»…).
employee*stringThe employee (emp_…).
kind*stringin: clock-in; out: clock-out.
"in""out"at*stringWhen they clocked (UTC).
date-timedate*stringThe day it counts toward, YYYY-MM-DD in local time.
time*stringThe local time, HH:MM.
method*stringHow 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.
"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*booleantrue 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
- AttendanceOvertime
The overtime the company authorized or rejected for one day of an employee, before or after that day.
object*stringWhat kind of object it is («invoice», «customer»…).
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
employee*stringThe employee (emp_…).
date*stringThe 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*booleantrue: 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
- AttendanceShift
A shift of Asistencia › Turnos: when people start and end, in one to three segments, and its legal jornada.
id*stringObject identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
object*stringWhat kind of object it is («invoice», «customer»…).
name*stringIts name.
color*stringIts color on the calendar.
"teal""blue""violet""amber""rose""slate"segments*array<>Its segments: one, or two or three in a split shift.
break_minutes*integerBreak minutes within the shift.
-9007199254740991 <= value <= 9007199254740991break_paid*booleantrue: the break counts as working time (LFT art. 64).
minutes*integerWorking minutes of the shift.
-9007199254740991 <= value <= 9007199254740991jornada*stringThe 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).
"diurna""nocturna""mixta"overnight*booleantrue: 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*booleantrue: 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
- AttendanceRotation
A shift rotation: shifts and rest days that repeat in a cycle (4×4, week on week off).
id*stringObject identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
object*stringWhat kind of object it is («invoice», «customer»…).
name*stringIts name.
days*array<string|null>The cycle in order: each day a shift (ats_…) or null for a rest day.
week_minutes*integerAverage minutes per week over the cycle.
-9007199254740991 <= value <= 9007199254740991warning*|If more than six working days in a row go by without rest (LFT art. 69), it says so; otherwise null.
archived*booleantrue: 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
- AttendanceCalendar
A month's shift calendar, like Nómina › Asistencia › Turnos: each employee's shift each day and where it comes from.
object*stringWhat kind of object it is («invoice», «customer»…).
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
issuer*stringThe issuer (iss_…).
month*stringThe month, YYYY-MM.
from*stringFirst day, YYYY-MM-DD.
to*stringLast day, YYYY-MM-DD.
daily_jornada*stringFrom 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).
"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
- AttendanceCalendarChange
What changed on the shift calendar.
object*stringWhat kind of object it is («invoice», «customer»…).
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
issuer*stringThe issuer (iss_…).
employees*integerHow many employees.
-9007199254740991 <= value <= 9007199254740991days*integerHow many days for each.
-9007199254740991 <= value <= 9007199254740991shift*|The shift that was put (ats_…), or null: rest day or removed.
cleared*booleantrue: 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?
Get a customer's prices POST
What a customer pays for some products at a quantity: the unit price without VAT from their list (theirs, their group's or everyone's), their discount and the next wholesale tier. It saves nothing.
Get a period's attendance GET
The issuer's record of working hours (LFT art. 132) for the period, per employee: minutes worked against their schedule, absences, late arrivals, days without a clock-out, punches with notes, and double and triple overtime per week. With employee, also each day and each punch (with its corrections). Up to 92 days at a time.