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:
- 0111: General Scheme
- Table of scheme codes
- 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
- 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. It is the coefficient of the worked part of the working day: required withtgss_inactividad=3(partial strike), not allowed with2(full strike) and never0/000(if no part of the working day is worked, it is a full strike: type2without CTP). See Strike rules. -
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
-
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.
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:
| Case | 422 response (message, in Spanish) |
|---|---|
tgss_inactividad = 2 (full strike) with tgss_ctp_huelga | El 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_huelga | Con huelga parcial hay que indicar el coeficiente de jornada trabajada (CTP de huelga). |
tgss_ctp_huelga = 0 / 000, with any inactivity | Si 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:
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.- Do not send
tgss_inactividadortgss_ctp_huelga(or send them empty,""/null). Saltra sends them blank and TGSS clears them: that closes the strike. - Resend the worker’s current
contractTypeandcoeficiente(andworker_collectiveif 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:
{
"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.
{
"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": "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:
dniandnssof the worker.tgss_actual: what TGSS had on the contract change screen (ATR45) before the change. It starts withfecha_registro(YYYY-MM-DD), the date of the last change of characteristics registered at TGSS.tgss_enviado: what Saltra sent to TGSS. It starts withfecha_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):
| 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 |