FISCALISTO / API / REFERENCE
Vacation balance before Fiscalisto · Payroll
Saves what the employee had on a day according to your records: the days they had left from completed years and those already taken from the current year. Receipts stamped before that day aren't counted. opening_date null removes it.
bearerAuthAuthorizationBearer <key>Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.
id*stringThe object's id.
Idempotency-Key?stringOptional (the SDKs send it on their own). If the response is lost, repeat the request with the same value within 24 hours: it answers the same, with idempotent-replayed: true, and doesn't do it twice (it doesn't create, send emails or charge).
1 <= length <= 255application/json- body
opening_date*|The day of the balance, according to your records from before Fiscalisto; null removes it. Receipts stamped before that day aren't counted.
opening_pending_days?numberThe days they had left that day from completed years of service.
0 <= value <= 400opening_taken_days?numberThe days of the current year of service they had already taken that day.
0 <= value <= 60OK.
application/json- response
An employee's vacation per year of service (LFT 76, 81 and 516).
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_…).
as_of*stringThe balance date.
pending_days*numberThe 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.
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 POST 'https://api.fiscalisto.com/v1/employees/emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV/vacations' \ -H 'Authorization: Bearer fk_test_…' \ -H 'Idempotency-Key: pedido-A-1042' \ -H 'Content-Type: application/json' \ -d '{ "opening_date": "2025-01-15", "opening_pending_days": 0, "opening_taken_days": 0}'{ "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?
An employee's vacation GET
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.
Vacation certificate GET
The PDF of the certificate article 81 of the LFT asks to hand over every year: their seniority at the last anniversary, the vacation days they're entitled to (article 76) with their vacation premium, when to take them (the dates you send, or the six months after the anniversary) and the days pending from previous years with when they expire, with room for signatures. Before their first anniversary it says when they reach it and how many days they'll get.