Skip to content

FISCALISTO / API / REFERENCE

Get a period's attendance · Attendance

Open in ChatGPTOpen in ClaudeOpen in Cursor
GET
/v1/attendance

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.

Authorization

bearerAuth
headerAuthorizationBearer <key>

Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.

Query parameters

issuer?string

The issuer (iss_…). It can be left out if the key or the account has only one.

from*string

First day, YYYY-MM-DD.

Formatdate
to*string

Last day, YYYY-MM-DD (up to 92 days after from).

Formatdate
employee?string

Only this employee (emp_…), with their days and punches.

Response body

OK.

application/json
  1. response

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.

Errors

  • Asistencia doesn't allow it: the message says why (a time in the future or more than 400 days ago, an employee with a termination date, a period over 92 days, a mark already voided).

  • The issuer is archived and no longer stamps. Its documents can still be read and canceled.

  • The account has several issuers and the request doesn't say which: send issuer (iss_…).

  • The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.

  • Live, this part of the API (inventario, portal de proveedores, pedidos, comprobación de gastos) follows the empresa's plan, as in the app: it comes with Operaciones (added to any paid plan; included in Corporativo). The books (the /v1/accounting routes except DIOT, cross checks, IVA refunds and fixed assets) come with Contabilidad (added to Independiente, Emprendedor or Negocio; included in Despacho and Corporativo): without it, changing the books answers this error, and reading them works only up to the last month it had it. Add either in Ajustes › Plan y pagos; test mode has everything.

  • That issuer is an empresa of the app connected to your account: through the API it only offers its Portal de proveedores (/v1/portal_suppliers and /v1/supplier_invoices) and, once someone who may pay suppliers and change Configurar pagos turned them on, its supplier payouts (/v1/payouts and /v1/payroll_payouts). It also stops when whoever connected it (or turned its payouts on) no longer has that permission in the empresa: message_es says which. Do everything else in the app.

  • This key can't use that issuer.

  • There is no such issuer in the account (or it belongs to the other mode).

  • There's no object with that id (or it belongs to another issuer or the other mode).

Plus those of any call (key, fields, limits): Errors. They all carry code, message and, when it's about a field, param.

curl -X GET 'https://api.fiscalisto.com/v1/attendance?from=2027-01-01&to=2027-01-15' \  -H 'Authorization: Bearer fk_test_…'
{  "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    }  ]}

Was this page helpful?