# Get a period's attendance

`GET https://api.fiscalisto.com/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.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `issuer` | query |  | The issuer (iss_…). It can be left out if the key or the account has only one. |
| `from` | query | yes | First day, YYYY-MM-DD. |
| `to` | query | yes | Last day, YYYY-MM-DD (up to 92 days after from). |
| `employee` | query |  | Only this employee (emp_…), with their days and punches. |

## With the TypeScript SDK

```ts
import { Fiscalisto } from "fiscalisto";

// La llave viene de FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const attendanceReport = await fiscalisto.attendance.get({ from: "2027-01-01", to: "2027-01-15" });
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

# La llave viene de FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

attendance_report = fiscalisto.attendance.get({"from": "2027-01-01", "to": "2027-01-15"})
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$attendanceReport = $fiscalisto->attendance->get(['from' => '2027-01-01', 'to' => '2027-01-15']);
```

## With the .NET SDK

```csharp
using Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var attendanceReport = await fiscalisto.Attendance.GetAsync(new GetAttendanceParams
{
    From = "2027-01-01",
    To = "2027-01-15",
});
```

## With the Go SDK

```go
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// La llave viene de FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	attendanceReport, err := client.Attendance.Get(ctx, &fiscalisto.GetAttendanceParams{
		From: "2027-01-01",
		To:   "2027-01-15",
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *attendanceReport)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.GetAttendanceParams;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var attendanceReport = fiscalisto.attendance().get(new GetAttendanceParams().setFrom("2027-01-01").setTo("2027-01-15"));
System.out.println(attendanceReport);
```

## Response 200

OK.

A `AttendanceReport` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"attendance_report"` | yes | What kind of object it is («invoice», «customer»…). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `issuer` | string | yes | The issuer (iss_…), the employer. |
| `from` | string | yes | First day of the period, YYYY-MM-DD. |
| `to` | string | yes | Last day of the period, YYYY-MM-DD. |
| `overtime_approval` | boolean | yes | true: overtime only counts up to what the company authorized each day. |
| `overtime_policy` | `approval`, `all`, `none` | yes | 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). |
| `ordinary_week_hours` | integer | yes | 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. (from -9007199254740991 to 9007199254740991) |
| `weekly_hours` | integer or null | yes | The weekly working hours the company set in Horario y reglas, or null if it follows the legal ones. |
| `daily_jornada` | `agreed`, `law` | yes | 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). |
| `employees` | array of object | yes | Each employee of the issuer in the period. |
| `employees[].employee` | string | yes | The employee (emp_…). |
| `employees[].name` | string | yes | Its name. |
| `employees[].number` | string or null | yes | Their employee number, or null. |
| `employees[].place` | string or null | yes | Where they clock, or null (any place). |
| `employees[].worked_minutes` | integer | yes | Minutes worked in the period. (from -9007199254740991 to 9007199254740991) |
| `employees[].scheduled_minutes` | integer | yes | Minutes of their schedule in the period. (from -9007199254740991 to 9007199254740991) |
| `employees[].absences` | integer | yes | Absences: working days without clock entries or a note. (from -9007199254740991 to 9007199254740991) |
| `employees[].disability_days` | integer | yes | Days with a sick-leave note. (from -9007199254740991 to 9007199254740991) |
| `employees[].vacation_days` | integer | yes | Days with a vacation note. (from -9007199254740991 to 9007199254740991) |
| `employees[].late_count` | integer | yes | How many days they arrived late. (from -9007199254740991 to 9007199254740991) |
| `employees[].late_minutes` | integer | yes | Total minutes late. (from -9007199254740991 to 9007199254740991) |
| `employees[].incomplete_days` | integer | yes | Days with a clock entry missing its pair (no clock-out). (from -9007199254740991 to 9007199254740991) |
| `employees[].flagged_marks` | integer | yes | Clock entries with a note to review (flags). (from -9007199254740991 to 9007199254740991) |
| `employees[].overtime_double_minutes` | integer | yes | Overtime paid double: up to 9 per week in 2026 and 2027, 10 in 2028, 11 in 2029 and 12 from 2030 (LFT art. 66 and fourth transitory article of the DOF 01-05-2026 decree). (from -9007199254740991 to 9007199254740991) |
| `employees[].overtime_triple_minutes` | integer | yes | Overtime paid triple: hours beyond the week's double ones, up to 4 per week (LFT art. 68). (from -9007199254740991 to 9007199254740991) |
| `employees[].overtime_minutes` | integer | yes | All extra minutes on the record, authorized or not. (from -9007199254740991 to 9007199254740991) |
| `employees[].week_excess_minutes` | integer | yes | Of the double and triple ones, the minutes of their schedule beyond the week's ordinary working hours (ordinary_week_hours, LFT art. 59): a 48-hour schedule in 2027 gives 2 hours of overtime each week. (from -9007199254740991 to 9007199254740991) |
| `employees[].unapproved_overtime_minutes` | integer | yes | Extra minutes nobody authorized: they stay on the record and don't count for payroll. (from -9007199254740991 to 9007199254740991) |
| `employees[].rejected_overtime_minutes` | integer | yes | Extra minutes the company rejected: they stay on the record, don't count for payroll and are no longer pending authorization. (from -9007199254740991 to 9007199254740991) |
| `employees[].rest_days_worked` | integer | yes | Rest days on which they worked. (from -9007199254740991 to 9007199254740991) |
| `employees[].holidays_worked` | integer | yes | Public holidays on which they worked. (from -9007199254740991 to 9007199254740991) |
| `employees[].weeks_confirmed` | integer | yes | Weeks the employee confirmed in their link. (from -9007199254740991 to 9007199254740991) |
| `employees[].weeks_disputed` | array of object | yes | The weeks the employee disagrees with. |
| `employees[].weeks_disputed[].week` | string | yes | The Monday of the week, YYYY-MM-DD. |
| `employees[].weeks_disputed[].text` | string | yes | What the employee said doesn't match. |
| `employees[].days` | array of object or null | yes | Each day of the period, only when an employee is requested; otherwise null. |
| `employees[].marks` | array of object or null | yes | Their clock entries, removed ones included, only when an employee is requested; otherwise null. |

```json
{
  "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
    }
  ]
}
```

## Errors

- `attendance_invalid` (400): 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).
- `feature_not_in_plan` (403): 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.
- `issuer_archived` (400): The issuer is archived and no longer stamps. Its documents can still be read and canceled.
- `issuer_linked_empresa` (403): 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.
- `issuer_missing` (404): There is no such issuer in the account (or it belongs to the other mode).
- `issuer_not_allowed` (403): This key can't use that issuer.
- `issuer_required` (400): The account has several issuers and the request doesn't say which: send `issuer` (iss_…).
- `livemode_mismatch` (400): The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.
- `resource_missing` (404): 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): https://fiscalisto.com/en/docs/api/errores.md.
