Skip to content

FISCALISTO / API / REFERENCE

An employee's vacation · Payroll

Open in ChatGPTOpen in ClaudeOpen in Cursor
GET
/v1/employees/{id}/vacations

The vacation days for each year of service (article 76 of the LFT: 12 the first, two more each year up to 20 and then two more every five), those they took (the vacation days on their stamped receipts, taken from the oldest year they have left), until when to give them (six months after the anniversary, article 81) and when they expire (a year later, article 516). pending_days are those from completed years that haven't expired: the ones the settlement pays.

Authorization

bearerAuth
headerAuthorizationBearer <key>

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

Path parameters

id*string

The object's id.

Query parameters

as_of?string

The day of the balance (YYYY-MM-DD); today by default, or their last day if they already left.

Response body

OK.

application/json
  1. response

An employee's vacation per year of service (LFT 76, 81 and 516).

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_…).

as_of*string

The balance date.

pending_days*number

The days from completed years of service they have left that haven't lapsed: the ones the final settlement pays.

current_year*

The current year of service.

years*array<>

Each completed year of service, from oldest to newest.

opening*|

The balance from before Fiscalisto, or null.

taken*array<>

The vacation days on their stamped receipts.

Errors

  • 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/employees/emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV/vacations' \  -H 'Authorization: Bearer fk_test_…'
{  "object": "employee_vacations",  "livemode": false,  "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",  "as_of": "2026-11-20",  "pending_days": 9,  "current_year": {    "year": 4,    "completes_on": "2027-01-10",    "days": 18,    "taken_in_advance": 0,    "accrued_days": 15.53  },  "years": [    {      "year": 1,      "owed_from": "2024-01-10",      "days": 12,      "taken_days": 12,      "remaining_days": 0,      "grant_by": "2024-07-09",      "prescribes_on": "2025-07-10",      "status": "taken"    },    {      "year": 2,      "owed_from": "2025-01-10",      "days": 14,      "taken_days": 14,      "remaining_days": 0,      "grant_by": "2025-07-09",      "prescribes_on": "2026-07-10",      "status": "taken"    },    {      "year": 3,      "owed_from": "2026-01-10",      "days": 16,      "taken_days": 7,      "remaining_days": 9,      "grant_by": "2026-07-09",      "prescribes_on": "2027-07-10",      "status": "late"    }  ],  "opening": null,  "taken": [    {      "date": "2024-04-15",      "days": 12    },    {      "date": "2025-04-15",      "days": 14    },    {      "date": "2026-03-31",      "days": 7    }  ]}

Was this page helpful?