Updates
Contract change (type/coefficient)

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:
  • 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. A 0 counts as empty.
  • ⚠️

    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.
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": "OK"
}

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