Skip to Content
Social SecurityUpdatesContract change (type/coefficient)

Contract change (type/coefficient)

To test without real effects, send the X-Saltra-Mode: test header: nothing is sent to the authority and the response carries sample data. In production, without the header, the request is real. Details in Environments and test mode.

Parameters

  • regimen (integer) : Scheme, 4 digits. Possible values:
  • ccc (integer) : Contribution account code, 11 digits.
  • nss (integer) : Social Security number, 12 digits.
  • dni (string) : National identity document.
  • startDate (date) : Change date, format YYYY-MM-DD..
  • contractType (integer) : Contract type, 3 digits.
  • coeficiente optional (integer) : Part-time coefficient, for part-time working hours, maximum 3 digits.
  • worker_collective optional (integer) : Worker collective; mandatory for contract types (402, 502, 407, 507), 3 digits. Possible values:
  • rlce optional (integer) : Special Employment Relationship (R.L.C.E.), 4 digits. If omitted, the worker keeps the one already registered at TGSS. Example:
    • 9941: Subsidised coaches/instructors (Law 7/2024)
  • tgss_inactividad optional (string) : Inactivity type from the RED System contract change screen (ATR45). It is sent to TGSS as is, and TGSS rejects invalid values. Possible values: see the table of inactivity types. The most common:
    • 1: period of inactivity
    • 2 / 3: full / partial strike
    • 5: absence from work
    • 6: registration without pay
    • Z: non-contributory inactivity / leave
  • tgss_inactividad is not preserved. If omitted or empty ("" / null), it is sent empty to TGSS and the worker’s current inactivity type is removed. Unlike rlce, omitting it does NOT keep the current value: to keep an existing inactivity you must resend its code, and to clear it, send it empty.

  • tgss_ctp_huelga optional (integer) : Strike/ERE activity CTP (“CTP Actvid. Huelga/ERE”) from the RED System contract change screen (ATR45). 1 to 3 digits: they are the thousandths of the coefficient, because TGSS shows a fixed “0,” in front (for example, 750 = 0.750). Saltra left-pads it with zeros to 3 digits before sending it: 75 = 0.075, 5 = 0.005. It is the coefficient of the worked part of the working day: required with tgss_inactividad = 3 (partial strike), not allowed with 2 (full strike) and never 0/000 (if no part of the working day is worked, it is a full strike: type 2 without CTP). See Strike rules.
  • tgss_ctp_huelga is not preserved. Same as tgss_inactividad: if omitted or empty ("" / null), it is sent empty to TGSS and the worker’s current strike/ERE CTP is removed. To keep it you must resend its value, and to clear it, send it empty.

  • tgss_ctp_inicial optional (integer) : Initial CTP (“CTP Inicial”) from the RED System contract change screen (ATR45). Different from tgss_ctp_huelga. 1 to 3 digits: they are the thousandths of the coefficient, because TGSS shows a fixed “0,” in front (for example, 750 = 0.750). Saltra left-pads it with zeros to 3 digits before sending it: 75 = 0.075, 5 = 0.005.
  • tgss_ctp_inicial is preserved. If omitted or empty ("" / null), it is not sent and TGSS keeps the initial CTP the worker already has. Unlike tgss_inactividad and tgss_ctp_huelga, omitting it does not clear it. To remove it, send 000 (0 or 00 also work: they are padded to 000).

  • reduccion_jornada optional (string) : Working-day reduction (reason) from the RED System contract change screen (ATR45), 3 digits. It is only sent if TGSS shows that field for the given contract type/coefficient; if the screen does not show it, it is ignored without error. Possible values (examples):
  • reduccion_jornada is preserved. If omitted or empty, it is not sent and TGSS keeps the working-day reduction the worker already has. Unlike tgss_inactividad and tgss_ctp_huelga, omitting it does not clear it.

  • If neither contractType nor coeficiente is sent (for example, to change only rlce), the part-time coefficient is kept.

Strike rules

Before sending anything to TGSS, the API checks the strike CTP against the inactivity type and responds 422 (without submitting the change) in these cases:

Case422 response (message, in Spanish)
tgss_inactividad = 2 (full strike) with tgss_ctp_huelgaEl CTP de actividad en huelga/ERE no se admite con la inactividad 2 (huelga total): en una huelga total no se trabaja ninguna parte de la jornada. Usa la inactividad 3 (huelga parcial) o quita el CTP.
tgss_inactividad = 3 (partial strike) without tgss_ctp_huelgaCon huelga parcial hay que indicar el coeficiente de jornada trabajada (CTP de huelga).
tgss_ctp_huelga = 0 / 000, with any inactivitySi no se trabaja ninguna parte de la jornada, usa el tipo 2 (huelga total) sin CTP de huelga.

Codes are compared without leading zeros (02 is 2). With the other inactivity types (reduction or suspension ERE/ERTE) the strike CTP is not validated here: TGSS decides.

How to end a strike

The ATR45 has no end date: the strike stays open at TGSS until another contract/coefficient change removes it. To end it:

  1. startDate: the day after the last day of the strike. That is the date from which the worker is no longer on strike; if you send the last strike day, that day will be left without the strike at TGSS.
  2. Do not send tgss_inactividad or tgss_ctp_huelga (or send them empty, "" / null). Saltra sends them blank and TGSS clears them: that closes the strike.
  3. Resend the worker’s current contractType and coeficiente (and worker_collective if their contract type requires it), so the contract stays the same. The other fields (rlce, reduccion_jornada, tgss_ctp_inicial) are kept if you omit them.

Example: a strike on 11 and 12/11/2026 is ended with a change from 13/11/2026:

PUT /contract-coeficiente — end of the strike
{ "regimen": "0111", "ccc": "12345678901", "dni": "12345678B", "nss": "123456789011", "startDate": "2026-11-13", "contractType": "100", "coeficiente": "500" }

If the worker has their contract in Saltra (looked up by ccc among your company’s accounts or, if you are an advisory firm, those of the companies you manage), the change is saved on it with its date and the end of the strike is kept in the history as an empty entry: the strike period is preserved and the current value becomes empty. If no contract is found, the response is the same and nothing is saved in Saltra.

For the same reason, any other contract/coefficient change you communicate during the strike must resend tgss_inactividad (and tgss_ctp_huelga if partial); otherwise TGSS clears them and the strike ends on that date.

PUT /contract-coeficiente
{ "regimen": "0111", "ccc": "12345678901", "dni": "12345678B", "nss": "123456789011", "startDate": "2023-01-01", "contractType": "100", "coeficiente": "500", "worker_collective": "967", "rlce": "9941", "reduccion_jornada": "001" }

Response

Respuesta
{ "success": true, "message": "3408* OPERACION REALIZADA CORRECTAMENTE", "data": { "dni": "12345678B", "nss": "123456789011", "tgss_actual": { "fecha_registro": "2022-06-01", "contractType": "100", "coeficiente": null, "worker_collective": null, "mujer_subrepresentada": false, "fic_especifico": null, "tgss_inactividad": null, "tgss_ctp_huelga": null, "rlce": null, "reduccion_jornada": null, "tgss_ctp_inicial": null // … resto de claves de la pantalla }, "tgss_enviado": { "fecha_cambio": "2023-01-01", "contractType": "100", "coeficiente": "500", "worker_collective": "967", "mujer_subrepresentada": false, "fic_especifico": null, "tgss_inactividad": null, "tgss_ctp_huelga": null, "rlce": "9941", "reduccion_jornada": "001", "tgss_ctp_inicial": null // … resto de claves de la pantalla } } }

The response always includes, with or without an error, in data:

  • dni and nss of the worker.
  • tgss_actual: what TGSS had on the contract change screen (ATR45) before the change. It starts with fecha_registro (YYYY-MM-DD), the date of the last change of characteristics registered at TGSS.
  • tgss_enviado: what Saltra sent to TGSS. It starts with fecha_cambio (YYYY-MM-DD).

Both have the same keys, in screen order: contractType, coeficiente, worker_collective, exclusion_cotizacion, grado_discapacidad, desempleado_empresa, mujer_subrepresentada, incapacidad_readaptacion, exclusion_social_victima, trabajador_autonomo, mujer_reincorporada, nss_sustituido, causa_sustitucion, fic_especifico, renta_activa_insercion, parto_ultimos_24_meses, relevo, tgss_inactividad, tgss_ctp_huelga, vinculo_familiar, rlce, perdida_beneficios, excedente_sector_industrial, cambio_puesto_trabajo, reduccion_jornada, tgss_ctp_inicial, beneficios, excluido_desempleo. Dates are YYYY-MM-DD, checkboxes (mujer_subrepresentada, trabajador_autonomo, renta_activa_insercion, parto_ultimos_24_meses, relevo) are booleans and empty values are null. If the error happens before reaching that screen (for example, the worker is not registered), tgss_actual and tgss_enviado are null.

Comparing them explains a TGSS rejection. For example, 5075* EN SIT. DE HUELGA TOTAL NO SE PUEDE CAMBIAR CARACTERISTICAS appears when another characteristic is changed together with a total strike: the field that differs between tgss_actual and tgss_enviado is the one to leave as it was.

Strike already registered at TGSS. If tgss_actual contains an inactivity type (for example, a strike communicated outside Saltra) and the worker has their contract in Saltra, it is stored on it with fecha_registro as start date, even if TGSS rejects the change. It does not replace what the contract already has for that date.

Specific F.I.C. This endpoint does not send the specific F.I.C.: TGSS keeps the worker’s current one (fic_especifico in tgss_actual).

Inactivity types

Possible values of tgss_inactividad (TGSS table; the descriptions are the official TGSS abbreviations):

CodeDescription
AFUNC.SUSP.PROV.FIRME
A1SUS.ERTE ETOP23 3006
A2RED.ERTE ETOP23 3006
A3TR.ACT.TOT.PR.ETOP23
A4TR.ACT.PAR.PR.ETOP23
A5TR.SUSP.TOT.PR.A3/A4
A6TR.SUSP.PAR.PR.A3/A4
A7SUSP.ETOP>ART22.8/20
A8RED. ETOP>ART22.8/20
A9ACT.T.ETOP>FM RDL.24
BSUSP.TOT.ERE S/DESEM
B1ACT.P.ETOP>FM RDL.24
B2SUP.T.ETOP>FM RDL.24
B3SUP.P.ETOP>FM RDL.24
B4SUSPE.ERTE FM DA1/24
B5REDUC.ERTE FM DA1/24
B6ACT.T.ERE FM REST.24
B7ACT.P.ERE FM REST.24
B8SUP.T.ERE FM REST.24
B9SUP.P.ERE FM REST.24
CSUSP.PAR.ERE S/DESEM
C1SUSP.IMP.ACT 30/20
C2RED.IMP.ACT 30/20
C3ACT.T.IMP.ACT.30/20
C7SUS.LIM.ACT RDL30/20
C8RED.LIM.ACT RDL30/20
C9ACT.T.LIM.ACT.30/20
DSUS.PAR.ERE S/DES+HP
D1ACT.P.LIM. ACT.30/20
D2SUP.T.LIM.ACT 30/20
D3SUP.P.LIM.ACT 30/20
D4S.ERTE FM CNAE 30/20
D5R.ERTE FM CNAE 30/20
D6ACT.T.FM.CNAE30/20
D7ACT.P. FM.CNAE30/20
D8SUP.T.FM.CNAE 30/20
D9SUP.P.FM.CNAE 30/20
ESUSP.TOT.ERE C/DESEM
E1S.FM CAD VALOR 30/20
E2R.FM CAD VALOR 30/20
F3SP.ETOP>FM CNAE E9F1
F4S.ETOP-CNAE 30/20
F5R.ETOP-CNAE 30/20
F6ACT.T.ETOP-CNAE30/20
F7ACT.P.ETOP-CNAE 3020
F8S.T.ETOP-CNAE 30/20
F9S.P.ETOP-CNAE 30/20
GSUS.PAR.ERE C/DES+HP
G1S.ETOP>FM C.VAL30/20
G2R.ETOP>FM C.VAL30/20
G3ACT.T.ETOP>FM C.VAL.
G4ACT.P.ETOP>FM C.VAL.
G5SUS.T.ETOP>FM C.VAL.
G6SUS.P.ETOP>FM C.VAL.
G7SUSP.IMP.ACT 2/21
G8RED.IMP.ACT 2/21
G9ACT.T.IMP.ACT.2/21
HRESEV.PERIOD.ACTIV.
H4SUS.LIM.ACT RDL2/21
H5RED.LIM.ACT RDL2/21
H6ACT.T.LIM.ACT.2/21
H7ACT.P.LIM. ACT.2/21
H8SUP.T.LIM.ACT 2/21
H9SUP.P.LIM.ACT 2/21
ISUSP.TOT.ERE F.MAYOR
I1S.ETOP>FM CNAE 2/21
I2R.ETOP>FM CNAE 2/21
I3ACT.T.ETOP>FM CNAE
I4ACT.P.ETOP>FM CNAE
I5ST.ETOP>FM CNAE I3I4
I6SP.ETOP>FM CNAE I3I4
I7S.ETOP>FM C.VAL2/21
I8R.ETOP>FM C.VAL2/21
I9ACT.T.ETOP>FM C.VAL
JSUSP.PAR.ERE F.MAYOR
J1ACT.P.ETOP>FM C.VAL
J2SUS.T.ETOP>FM C.VAL
J3SUS.P.ETOP>FM C.VAL
J4SUS.T.IMP.ACT.11/21
J5SUS.P.IMP.ACT.11/21
J6ACT.T.IMP.ACT.11/21
KSUS.PAR.ERE F.MAY+HP
K1ST.LIM.ACT RDL.11/21
K2SP.LIM.ACT RDL.11/21
K3ACT.T.LIM.ACT.11/21
K4ACT.P.LIM. ACT.11/21
K5ST>K3K4 LIM.ACT11/21
K6SP>K3K4 LIM.ACT11/21
K7ST.ETO>FM CNAE 11/21
K8SP.ETO>FM CNAE 11/21
K9ACT.T.E>FM CNAE11/21
LMATERN.EXC.HIJO/FAM.
L1ACT.P.E>FM CNAE11/21
L2STK9L1 E>FM CNAE1121
L3SPK9L1 E>FM CNAE1121
L4ST.ETOP>FM CVAL11/21
L5SP.ETOP>FM CVAL11/21
L6AT.ETOP>FM CVAL11/21
L7AP.ETOP>FM CVAL11/21
L8STL6L7 E>FM CVL11/21
L9SPL6L7 E>FM CVL11/21
MERE RED.SIN DESEMP.
M1SUS.T.IMP.ACT.18/21
M2SUS.P.IMP.ACT.18/21
M3ST.LIM.ACT RDL18/21
M4SP.LIM.ACT RDL18/21
M5ST.ETO>FM CNAE 18/21
M6SP.ETO>FM CNAE 18/21
M7ST.ETOP>FM CVAL18/21
M8SP.ETOP>FM CVAL18/21
M9SUS.T.IMP.DA5 18/21
NERE RED.SIN DES.+HP
N1SUS.P.IMP.DA5 18/21
N2SUS.T.LIM.DA5.18/21
N3SUS.P.LIM.DA5.18/21
N4S.T. FM 22 RDL8/20
N5S.P. FM 22 RDL8/20
N6S.T. ETOP 23 RDL8/20
N7S.P. ETOP 23 RDL8/20
N8SUSP.ERTE IMPE47.6ET
N9REDU.ERTE IMPE47.6ET
O1SUSP.ERTE LIM.47.6ET
O2REDU.ERTE LIM.47.6ET
O3ST SECT.AGEN.VIAJE
O4SP SECT.AGEN.VIAJE
O5SUSP.FM DANA RDL6/24
O6RED. FM DANA RDL6/24
O7SUSP.FM DANA RDL7/24
O8RED.FM DANA RDL7/24
PTRIENIOS LABORALES
P1SUS.ETOPDANA RDL7/24
P2RED.ETOPDANA RDL7/24
P3SUSP.SECT.F.VEH.MOT
P4RED.SECT.F.VEH.MOT
P5SUSP.SECT.F.V.MOT.CV
P6RED.SECT.F.V.MOT.CV
QPERCEPT.RETR.NO ALTA
RT.ACT.TOT.PR.COVID19
ST.ACT.PAR.PR.COVID19
TSALARIO TRAMITACION
UTR.SUSP.PAR.PROC.RS
VSUSP.TOT.ERE.COVID19
WSUSP.PAR.ERE.COVID19
XSUSP.P.ERE+H.COVID19
YTR.SUSP.TOT.PROC.R/S
ZINACT.NO COT./PERM
1PERIODO INACTIVIDAD
11ERTE ETOP47ET-RED.ND
12ERTE ETOP47ET-SUSP.
13ERTE ETOP47ET-RED.
15ERTE FM 47ET-RED.ND
16ERTE FM 47ET-SUSP.
18ERTE FM 47ET-RED.
2HUELGA TOTAL
20PERM.PARENTAL T.COMP
21PERM.PAR.E.P.T.COMP
3HUELGA PARCIAL
4TRIENIOS FUNCIONARIO
5AUSENCIA DEL TRABAJO
6ALTA SIN RETRIBUCION
7FUNC.PERM.SIN.SUELDO
8FUNC.SUSPENSION.PROV
9FUNC.SUSP.PROV.NO.FI
Last updated on