Contract change (type/coefficient)
Add test=1 to run tests without real effects. In production, omit this parameter.
Parameters
- test (number (1)) : For testing, add the test=1 parameter. It must be omitted in production.
- regimen (integer) : Scheme, 4 digits. Possible values:
- 0111: General Scheme
- Table of scheme codes (opens in a new tab)
- 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:
- 967: TC production circumstances
- Table of worker occupation codes (opens in a new tab)
- 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_inactividadis not preserved. If omitted or empty (""/null), it is sent empty to TGSS and the worker's current inactivity type is removed. Unlikerlce, 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. A0counts as empty. -
⚠️
tgss_ctp_huelgais not preserved. Same astgss_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_inicialis preserved. If omitted or empty (""/null), it is not sent and TGSS keeps the initial CTP the worker already has. Unliketgss_inactividadandtgss_ctp_huelga, omitting it does not clear it. To remove it, send000(0or00also work: they are padded to000). - 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):
- 001: care of a minor
- 002: care of a disabled person
- 004: shared responsibility for infant care
- Table of working-day reduction codes (opens in a new tab)
-
reduccion_jornadais preserved. If omitted or empty, it is not sent and TGSS keeps the working-day reduction the worker already has. Unliketgss_inactividadandtgss_ctp_huelga, omitting it does not clear it. - If neither
contractTypenorcoeficienteis sent (for example, to change onlyrlce), the part-time coefficient is kept.
{
"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
{
"success": true,
"message": "OK"
}Inactivity types
Possible values of tgss_inactividad (TGSS table; the descriptions are the official TGSS abbreviations):
| Code | Description |
|---|---|
A | FUNC.SUSP.PROV.FIRME |
A1 | SUS.ERTE ETOP23 3006 |
A2 | RED.ERTE ETOP23 3006 |
A3 | TR.ACT.TOT.PR.ETOP23 |
A4 | TR.ACT.PAR.PR.ETOP23 |
A5 | TR.SUSP.TOT.PR.A3/A4 |
A6 | TR.SUSP.PAR.PR.A3/A4 |
A7 | SUSP.ETOP>ART22.8/20 |
A8 | RED. ETOP>ART22.8/20 |
A9 | ACT.T.ETOP>FM RDL.24 |
B | SUSP.TOT.ERE S/DESEM |
B1 | ACT.P.ETOP>FM RDL.24 |
B2 | SUP.T.ETOP>FM RDL.24 |
B3 | SUP.P.ETOP>FM RDL.24 |
B4 | SUSPE.ERTE FM DA1/24 |
B5 | REDUC.ERTE FM DA1/24 |
B6 | ACT.T.ERE FM REST.24 |
B7 | ACT.P.ERE FM REST.24 |
B8 | SUP.T.ERE FM REST.24 |
B9 | SUP.P.ERE FM REST.24 |
C | SUSP.PAR.ERE S/DESEM |
C1 | SUSP.IMP.ACT 30/20 |
C2 | RED.IMP.ACT 30/20 |
C3 | ACT.T.IMP.ACT.30/20 |
C7 | SUS.LIM.ACT RDL30/20 |
C8 | RED.LIM.ACT RDL30/20 |
C9 | ACT.T.LIM.ACT.30/20 |
D | SUS.PAR.ERE S/DES+HP |
D1 | ACT.P.LIM. ACT.30/20 |
D2 | SUP.T.LIM.ACT 30/20 |
D3 | SUP.P.LIM.ACT 30/20 |
D4 | S.ERTE FM CNAE 30/20 |
D5 | R.ERTE FM CNAE 30/20 |
D6 | ACT.T.FM.CNAE30/20 |
D7 | ACT.P. FM.CNAE30/20 |
D8 | SUP.T.FM.CNAE 30/20 |
D9 | SUP.P.FM.CNAE 30/20 |
E | SUSP.TOT.ERE C/DESEM |
E1 | S.FM CAD VALOR 30/20 |
E2 | R.FM CAD VALOR 30/20 |
F3 | SP.ETOP>FM CNAE E9F1 |
F4 | S.ETOP-CNAE 30/20 |
F5 | R.ETOP-CNAE 30/20 |
F6 | ACT.T.ETOP-CNAE30/20 |
F7 | ACT.P.ETOP-CNAE 3020 |
F8 | S.T.ETOP-CNAE 30/20 |
F9 | S.P.ETOP-CNAE 30/20 |
G | SUS.PAR.ERE C/DES+HP |
G1 | S.ETOP>FM C.VAL30/20 |
G2 | R.ETOP>FM C.VAL30/20 |
G3 | ACT.T.ETOP>FM C.VAL. |
G4 | ACT.P.ETOP>FM C.VAL. |
G5 | SUS.T.ETOP>FM C.VAL. |
G6 | SUS.P.ETOP>FM C.VAL. |
G7 | SUSP.IMP.ACT 2/21 |
G8 | RED.IMP.ACT 2/21 |
G9 | ACT.T.IMP.ACT.2/21 |
H | RESEV.PERIOD.ACTIV. |
H4 | SUS.LIM.ACT RDL2/21 |
H5 | RED.LIM.ACT RDL2/21 |
H6 | ACT.T.LIM.ACT.2/21 |
H7 | ACT.P.LIM. ACT.2/21 |
H8 | SUP.T.LIM.ACT 2/21 |
H9 | SUP.P.LIM.ACT 2/21 |
I | SUSP.TOT.ERE F.MAYOR |
I1 | S.ETOP>FM CNAE 2/21 |
I2 | R.ETOP>FM CNAE 2/21 |
I3 | ACT.T.ETOP>FM CNAE |
I4 | ACT.P.ETOP>FM CNAE |
I5 | ST.ETOP>FM CNAE I3I4 |
I6 | SP.ETOP>FM CNAE I3I4 |
I7 | S.ETOP>FM C.VAL2/21 |
I8 | R.ETOP>FM C.VAL2/21 |
I9 | ACT.T.ETOP>FM C.VAL |
J | SUSP.PAR.ERE F.MAYOR |
J1 | ACT.P.ETOP>FM C.VAL |
J2 | SUS.T.ETOP>FM C.VAL |
J3 | SUS.P.ETOP>FM C.VAL |
J4 | SUS.T.IMP.ACT.11/21 |
J5 | SUS.P.IMP.ACT.11/21 |
J6 | ACT.T.IMP.ACT.11/21 |
K | SUS.PAR.ERE F.MAY+HP |
K1 | ST.LIM.ACT RDL.11/21 |
K2 | SP.LIM.ACT RDL.11/21 |
K3 | ACT.T.LIM.ACT.11/21 |
K4 | ACT.P.LIM. ACT.11/21 |
K5 | ST>K3K4 LIM.ACT11/21 |
K6 | SP>K3K4 LIM.ACT11/21 |
K7 | ST.ETO>FM CNAE 11/21 |
K8 | SP.ETO>FM CNAE 11/21 |
K9 | ACT.T.E>FM CNAE11/21 |
L | MATERN.EXC.HIJO/FAM. |
L1 | ACT.P.E>FM CNAE11/21 |
L2 | STK9L1 E>FM CNAE1121 |
L3 | SPK9L1 E>FM CNAE1121 |
L4 | ST.ETOP>FM CVAL11/21 |
L5 | SP.ETOP>FM CVAL11/21 |
L6 | AT.ETOP>FM CVAL11/21 |
L7 | AP.ETOP>FM CVAL11/21 |
L8 | STL6L7 E>FM CVL11/21 |
L9 | SPL6L7 E>FM CVL11/21 |
M | ERE RED.SIN DESEMP. |
M1 | SUS.T.IMP.ACT.18/21 |
M2 | SUS.P.IMP.ACT.18/21 |
M3 | ST.LIM.ACT RDL18/21 |
M4 | SP.LIM.ACT RDL18/21 |
M5 | ST.ETO>FM CNAE 18/21 |
M6 | SP.ETO>FM CNAE 18/21 |
M7 | ST.ETOP>FM CVAL18/21 |
M8 | SP.ETOP>FM CVAL18/21 |
M9 | SUS.T.IMP.DA5 18/21 |
N | ERE RED.SIN DES.+HP |
N1 | SUS.P.IMP.DA5 18/21 |
N2 | SUS.T.LIM.DA5.18/21 |
N3 | SUS.P.LIM.DA5.18/21 |
N4 | S.T. FM 22 RDL8/20 |
N5 | S.P. FM 22 RDL8/20 |
N6 | S.T. ETOP 23 RDL8/20 |
N7 | S.P. ETOP 23 RDL8/20 |
N8 | SUSP.ERTE IMPE47.6ET |
N9 | REDU.ERTE IMPE47.6ET |
O1 | SUSP.ERTE LIM.47.6ET |
O2 | REDU.ERTE LIM.47.6ET |
O3 | ST SECT.AGEN.VIAJE |
O4 | SP SECT.AGEN.VIAJE |
O5 | SUSP.FM DANA RDL6/24 |
O6 | RED. FM DANA RDL6/24 |
O7 | SUSP.FM DANA RDL7/24 |
O8 | RED.FM DANA RDL7/24 |
P | TRIENIOS LABORALES |
P1 | SUS.ETOPDANA RDL7/24 |
P2 | RED.ETOPDANA RDL7/24 |
P3 | SUSP.SECT.F.VEH.MOT |
P4 | RED.SECT.F.VEH.MOT |
P5 | SUSP.SECT.F.V.MOT.CV |
P6 | RED.SECT.F.V.MOT.CV |
Q | PERCEPT.RETR.NO ALTA |
R | T.ACT.TOT.PR.COVID19 |
S | T.ACT.PAR.PR.COVID19 |
T | SALARIO TRAMITACION |
U | TR.SUSP.PAR.PROC.RS |
V | SUSP.TOT.ERE.COVID19 |
W | SUSP.PAR.ERE.COVID19 |
X | SUSP.P.ERE+H.COVID19 |
Y | TR.SUSP.TOT.PROC.R/S |
Z | INACT.NO COT./PERM |
1 | PERIODO INACTIVIDAD |
11 | ERTE ETOP47ET-RED.ND |
12 | ERTE ETOP47ET-SUSP. |
13 | ERTE ETOP47ET-RED. |
15 | ERTE FM 47ET-RED.ND |
16 | ERTE FM 47ET-SUSP. |
18 | ERTE FM 47ET-RED. |
2 | HUELGA TOTAL |
20 | PERM.PARENTAL T.COMP |
21 | PERM.PAR.E.P.T.COMP |
3 | HUELGA PARCIAL |
4 | TRIENIOS FUNCIONARIO |
5 | AUSENCIA DEL TRABAJO |
6 | ALTA SIN RETRIBUCION |
7 | FUNC.PERM.SIN.SUELDO |
8 | FUNC.SUSPENSION.PROV |
9 | FUNC.SUSP.PROV.NO.FI |