# List employees

`GET https://api.fiscalisto.com/v1/employees`

The issuer's employees, most recent first.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `limit` | query |  | How many per page, from 1 to 100. 10 by default. |
| `starting_after` | query |  | The id of the last one on the previous page, for the next one. |
| `issuer` | query |  | The issuer (iss_…). It can be left out if the key or the account has only one. |

## With the TypeScript SDK

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

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

for await (const item of fiscalisto.employees.list()) {
  console.log(item.id);
}
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

for item in fiscalisto.employees.list():
    print(item["id"])
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

foreach ($fiscalisto->employees->list() as $item) {
    echo $item['id'], "\n";
}
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

await foreach (var item in fiscalisto.Employees.ListAutoPagingAsync())
    Console.WriteLine(item.Id);
```

## 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()

	for item, err := range client.Employees.ListAutoPaging(ctx, nil) {
		if err != nil {
			log.Fatal(err)
		}
		fmt.Println(item.ID)
	}
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;

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

for (var item : fiscalisto.employees().listAutoPaging()) {
    System.out.println(item.getId());
}
```

## Response 200

OK.

A `EmployeeList` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"list"` | yes | What kind of object it is («invoice», «customer»…). |
| `data` | array of object | yes | The objects on this page. |
| `data[].id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `data[].livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `data[].object` | `"employee"` | yes | What kind of object it is («invoice», «customer»…). |
| `data[].issuer` | string | yes | The issuer (iss_…). |
| `data[].number` | string | yes | Employee number (NumEmpleado). |
| `data[].name` | string | yes | The employee's full name. |
| `data[].tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `data[].curp` | string | yes | CURP, 18 characters. |
| `data[].social_security_number` | string | yes | Social security number (NumSeguridadSocial), 11 digits. |
| `data[].zip` | string | yes | Postal code of the tax address, 5 digits, as on the constancia de situación fiscal. An issuer's is the place of issue (LugarExpedicion) of its CFDIs. |
| `data[].email` | string or null | yes | The employee's email, where their receipts go. |
| `data[].start_date` | string | yes | Start date of the employment relationship (FechaInicioRelLaboral), YYYY-MM-DD. |
| `data[].end_date` | string or null | yes | Last day worked if they no longer work there, YYYY-MM-DD. |
| `data[].daily_salary` | number | yes | Daily salary. |
| `data[].integrated_daily_salary` | number | yes | The SDI from fixed elements (daily wage with year-end bonus, vacation premium and other fixed benefits). |
| `data[].variable_integrated_daily_salary` | number | yes | The variable part of the SDI from variable_salary_from: what triple overtime, the Sunday premium and the previous two-month period's bonuses add per day (article 30 of the LSS). Set with POST /v1/variable_salaries; receipts use integrated_daily_salary plus this. |
| `data[].variable_salary_from` | string or null | yes | From when variable_integrated_daily_salary applies (YYYY-MM-DD). |
| `data[].aguinaldo_days` | number | yes | Days of aguinaldo per year (at least 15). |
| `data[].vacation_premium` | number | yes | Vacation premium, fraction of the vacation pay (at least 0.25). |
| `data[].pantry_vouchers` | number | yes | Monthly grocery vouchers each ordinary receipt carries (earning 029). |
| `data[].savings_fund_rate` | number | yes | Fraction of the wage the company and the worker contribute equally to the savings fund (earning 005). |
| `data[].contract_type` | string | yes | Contract type (TipoContrato), c_TipoContrato. 01 by default, permanent. |
| `data[].workday_type` | string | yes | Shift type (TipoJornada), c_TipoJornada. 01 by default, day shift. |
| `data[].regime_type` | string | yes | Regime type (TipoRegimen): 02 wages and salaries. |
| `data[].periodicity` | string | yes | Pay frequency (PeriodicidadPago): 02 weekly, 03 every 14 days, 04 every two weeks (the default), 05 monthly. |
| `data[].risk_class` | string | yes | The position's risk class with IMSS (RiesgoPuesto), 1 to 5. 1 by default. |
| `data[].state` | string | yes | State where they work (ClaveEntFed): JAL, CMX, NLE… |
| `data[].border_zone` | boolean | yes | true if they work in the northern border free zone (border minimum wage). |
| `data[].unionized` | boolean | yes | true if they're unionized (Sindicalizado). |
| `data[].department` | string or null | yes | Department (Departamento). |
| `data[].position` | string or null | yes | Position (Puesto). |
| `data[].clabe` | string or null | yes | CLABE of their account, where the bank file pays them, or null. |
| `data[].given_names` | string or null | yes | First name(s) as on their CURP, or null (the IMSS files split it with the CURP). |
| `data[].first_surname` | string or null | yes | First surname as on their CURP, or null. |
| `data[].second_surname` | string or null | yes | Second surname, or null. |
| `data[].imss_worker_type` | string | yes | IMSS worker type: 1 permanent, 2 temporary urban, 3 temporary construction, 4 temporary rural. |
| `data[].imss_salary_type` | string | yes | IMSS salary type: 0 fixed, 1 variable, 2 mixed. |
| `data[].imss_reduced_week` | string | yes | Reduced week or working day: 0 normal, 1 to 5 days a week, 6 working day under 8 hours. |
| `data[].family_medicine_unit` | string or null | yes | IMSS family medicine unit, or null. |
| `data[].exit_reason` | string or null | yes | Reason for the IMSS termination when it has end_date (2 voluntary separation by default), or null. |
| `data[].warnings` | array of string | yes | What the SAT could flag in their data, before stamping. |
| `data[].created_at` | string (date-time) | yes | When it was created, ISO 8601 with Mexico City time (-06:00). |
| `has_more` | boolean | yes | true if there are more: request the next one with starting_after set to the id of the last one. |
| `url` | string | yes | This list's path. |

```json
{
  "object": "list",
  "data": [
    {
      "id": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",
      "object": "employee",
      "livemode": false,
      "issuer": "iss_OufpKqnrvx9p",
      "number": "9",
      "name": "MARIA OLIVIA MARTINEZ SAGAZ",
      "tax_id": "MASO451221PM4",
      "curp": "MASO451221MSLRGL08",
      "social_security_number": "12345678903",
      "zip": "80290",
      "email": "maria.martinez@example.com",
      "start_date": "2024-03-04",
      "end_date": null,
      "daily_salary": 320,
      "integrated_daily_salary": 334.66,
      "variable_integrated_daily_salary": 0,
      "variable_salary_from": null,
      "aguinaldo_days": 15,
      "vacation_premium": 0.25,
      "pantry_vouchers": 0,
      "savings_fund_rate": 0,
      "contract_type": "01",
      "workday_type": "01",
      "regime_type": "02",
      "periodicity": "02",
      "risk_class": "1",
      "state": "SIN",
      "border_zone": false,
      "unionized": false,
      "department": null,
      "position": null,
      "clabe": "012180001234567899",
      "given_names": "MARIA OLIVIA",
      "first_surname": "MARTINEZ",
      "second_surname": "SAGAZ",
      "imss_worker_type": "1",
      "imss_salary_type": "0",
      "imss_reduced_week": "0",
      "family_medicine_unit": null,
      "exit_reason": null,
      "warnings": [],
      "created_at": "2026-10-20T09:02:11-06:00"
    }
  ],
  "has_more": false,
  "url": "/v1/employees"
}
```

## Errors

- `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.

Plus those of any call (key, fields, limits): https://fiscalisto.com/en/docs/api/errores.md.
