Skip to content

FISCALISTO / API / REFERENCE

Update an employee · Payroll

Open in ChatGPTOpen in ClaudeOpen in Cursor
POST
/v1/employees/{id}

Changes only the fields you send; receipts already stamped don't change.

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.

Headers

Idempotency-Key?string

Optional (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).

Length1 <= length <= 255

Request body

application/json
  1. body
number?string

Employee number (NumEmpleado).

Length1 <= length <= 15
name?string

The employee's full name, as on their constancia de situación fiscal.

Length1 <= length <= 300
tax_id?string

RFC (Rfc), 12 characters for a persona moral and 13 for a persona física.

curp?string

CURP, 18 characters.

social_security_number?string

Social security number (NumSeguridadSocial), 11 digits.

zip?string

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.

Pattern^\d{5}$
email?|

The employee's email, where their receipts go with send_email.

start_date?string

Start date of the employment relationship (FechaInicioRelLaboral), YYYY-MM-DD.

Pattern^\d{4}-\d{2}-\d{2}$
end_date?|

Last day worked if they no longer work there, YYYY-MM-DD.

daily_salary?number

Daily salary.

Range0 < value
integrated_daily_salary?number

Integrated daily salary (SalarioDiarioIntegrado): not lower than the daily salary.

Range0 < value
aguinaldo_days?number

Days of aguinaldo per year: at least 15 (LFT art. 87), which is the default.

Range15 <= value <= 365
vacation_premium?number

Vacation premium as a fraction of the salary for their vacation: at least 0.25 (LFT art. 80), the default.

Range0.25 <= value <= 5
pantry_vouchers?number

Grocery vouchers per month (perception 029), for the days paid on each ordinary receipt: exempt as social welfare up to the limit of article 93 of the LISR. 0 by default.

Range0 <= value <= 1000000
savings_fund_rate?number

Savings fund: fraction of each receipt's wage that the company and the worker contribute equally, up to 0.13 (LISR art. 27 fr. XI). It goes as perception 005 and as deductions 004 (keys FAT and FAE) of both contributions. 0 by default.

Range0 <= value <= 0.13
contract_type?string

Contract type (TipoContrato), c_TipoContrato. 01 by default, permanent.

One of"01""02""03""04""05""06""07""08"
workday_type?string

Shift type (TipoJornada), c_TipoJornada. 01 by default, day shift.

periodicity?string

Pay frequency (PeriodicidadPago): 02 weekly, 03 every 14 days, 04 every two weeks (the default), 05 monthly.

risk_class?string

The position's risk class with IMSS (RiesgoPuesto), 1 to 5. 1 by default.

state?string

State where they work (ClaveEntFed): JAL, CMX, NLE…

border_zone?boolean

true if they work in the northern border free zone (border minimum wage).

unionized?boolean

true if they're unionized (Sindicalizado).

department?|

Department (Departamento).

position?|

Position (Puesto).

clabe?|

18-digit CLABE of the employee's account: where the bank file pays them (POST /v1/payroll_bank_files).

given_names?|

Given name(s), as on their CURP. With first_surname and second_surname, the IMSS files (IDSE and SUA) write the name in its three parts; without them, Fiscalisto splits it using the CURP.

first_surname?|

First surname, as on their CURP.

second_surname?|

Second surname (empty if they have one).

imss_worker_type?string

IMSS worker type: 1 permanent, 2 temporary in the city, 3 temporary in construction, 4 temporary in the countryside. 1 by default.

One of"1""2""3""4"
imss_salary_type?string

IMSS salary type: 0 fixed, 1 variable, 2 mixed. 0 by default.

One of"0""1""2"
imss_reduced_week?string

Reduced week or shift: 0 normal, 1 to 5 the days they work per week, 6 a shift of less than 8 hours. 0 by default.

One of"0""1""2""3""4""5""6"
family_medicine_unit?|

IMSS family medicine unit (UMF), optional.

exit_reason?|

Reason for the IMSS termination, with end_date: 1 end of contract, 2 voluntary separation (the usual one), 3 abandonment, 4 death, 5 closure, 6 others, 7 absenteeism, 8 rescission, 9 retirement, A pension.

Response body

OK.

application/json
  1. response

An issuer's employee, for their payroll receipts.

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

object*string

What kind of object it is («invoice», «customer»…).

issuer*string

The issuer (iss_…).

number*string

Employee number (NumEmpleado).

name*string

The employee's full name.

tax_id*string

RFC (Rfc), 12 characters for a persona moral and 13 for a persona física.

curp*string

CURP, 18 characters.

social_security_number*string

Social security number (NumSeguridadSocial), 11 digits.

zip*string

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.

email*|

The employee's email, where their receipts go.

start_date*string

Start date of the employment relationship (FechaInicioRelLaboral), YYYY-MM-DD.

end_date*|

Last day worked if they no longer work there, YYYY-MM-DD.

daily_salary*number

Daily salary.

integrated_daily_salary*number

The SDI from fixed elements (daily wage with year-end bonus, vacation premium and other fixed benefits).

variable_integrated_daily_salary*number

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.

variable_salary_from*|

From when variable_integrated_daily_salary applies (YYYY-MM-DD).

aguinaldo_days*number

Days of aguinaldo per year (at least 15).

vacation_premium*number

Vacation premium, fraction of the vacation pay (at least 0.25).

pantry_vouchers*number

Monthly grocery vouchers each ordinary receipt carries (earning 029).

savings_fund_rate*number

Fraction of the wage the company and the worker contribute equally to the savings fund (earning 005).

contract_type*string

Contract type (TipoContrato), c_TipoContrato. 01 by default, permanent.

workday_type*string

Shift type (TipoJornada), c_TipoJornada. 01 by default, day shift.

regime_type*string

Regime type (TipoRegimen): 02 wages and salaries.

periodicity*string

Pay frequency (PeriodicidadPago): 02 weekly, 03 every 14 days, 04 every two weeks (the default), 05 monthly.

risk_class*string

The position's risk class with IMSS (RiesgoPuesto), 1 to 5. 1 by default.

state*string

State where they work (ClaveEntFed): JAL, CMX, NLE…

border_zone*boolean

true if they work in the northern border free zone (border minimum wage).

unionized*boolean

true if they're unionized (Sindicalizado).

department*|

Department (Departamento).

position*|

Position (Puesto).

clabe*|

CLABE of their account, where the bank file pays them, or null.

given_names*|

First name(s) as on their CURP, or null (the IMSS files split it with the CURP).

first_surname*|

First surname as on their CURP, or null.

second_surname*|

Second surname, or null.

imss_worker_type*string

IMSS worker type: 1 permanent, 2 temporary urban, 3 temporary construction, 4 temporary rural.

imss_salary_type*string

IMSS salary type: 0 fixed, 1 variable, 2 mixed.

imss_reduced_week*string

Reduced week or working day: 0 normal, 1 to 5 days a week, 6 working day under 8 hours.

family_medicine_unit*|

IMSS family medicine unit, or null.

exit_reason*|

Reason for the IMSS termination when it has end_date (2 voluntary separation by default), or null.

warnings*array<string>

What the SAT could flag in their data, before stamping.

created_at*string

When it was created, ISO 8601 with Mexico City time (-06:00).

Formatdate-time

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 POST 'https://api.fiscalisto.com/v1/employees/emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV' \  -H 'Authorization: Bearer fk_test_…' \  -H 'Idempotency-Key: pedido-A-1042' \  -H 'Content-Type: application/json' \  -d '{  "daily_salary": 350,  "integrated_daily_salary": 366}'
{  "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"}

Was this page helpful?