Skip to Content
Changelog

Changelog

All relevant changes to the Saltra public API, newest first: new endpoints, added parameters and fields, deprecations and behaviour changes. Each entry links to its own page. You can subscribe via RSS and read the versioning policy at the end of this page.

27 November 2026

FIE files: 404 when there is no data

Get FIE files (GET /excel-fie) answers 404 when the TGSS replies «NO EXISTEN DATOS CON ESTOS CRITERIOS». Until now it answered 424, the code for a rejection by the agency, even though there was nothing to correct.

  • The message and errors do not change.
  • The response adds data.no_data: true, also when the search returns 0 results (which was already a 404).
  • The 404 is a final answer, not a TGSS failure: there is no need to retry it.

25 November 2026

Duplicate of TA variations with indice and cancellation of consolidated registrations and deregistrations

Affects GET /api/v4/seg-social/duplicate-ta and GET /api/v4/seg-social/ta-info-for-nss, and the equivalent tools on the public MCP server.

  • New optional indice parameter (integer, ≥ 1) on duplicate-ta: it is the indice of a row returned by ta-info-for-nss. If sent, the TA of that row is downloaded, whether it is a registration, a deregistration or a variation (for example, “CAMBIO DE CONTRATO”). The response keeps its shape (data, employee, movement, file) and movement is the chosen row.
  • startDate is still mandatory on duplicate-ta, also with indice: send the contract start date. movType still accepts only ALTA or BAJA.
  • ta-info-for-nss accepts startDate (optional) and returns the movements from that date onwards. If you will request a duplicate by indice, use the same contract start date in both calls: the indice is numbered over the already filtered list.
  • The indice returned by ta-info-for-nss is unique across the whole list. It used to repeat on every 12-row page; now the second page starts at 13. For the indice to point to the same row, use the same startDate in ta-info-for-nss and duplicate-ta.
  • New validation errors (422): “El índice debe ser un número entero (el indice del listado de TA).” and “El índice debe ser mayor que 0.”, and on ta-info-for-nss “La fecha debe ser formato YYYY-MM-DD.”.
  • Documentation: DELETE /alta and DELETE /baja already worked this way, but the documentation now explains it: with fecha_real later than today the previous registration or deregistration (not yet effective) is deleted; with fecha_real today or earlier the consolidated registration or deregistration is cancelled.

What to check in your integration: nothing mandatory. If you stored the indice from ta-info-for-nss together with the page number, the indice alone is now enough.

More information: Duplicates of TA documents and Get the TA list.

20 November 2026

TGSS registration: beneficios is no longer mandatory with cond_desempleado = 1

Affects the Social Security / RED System registration (POST /api/v4/seg-social/alta), including ETTS registrations, and the equivalent tool on the public MCP server.

  • beneficios is no longer mandatory when cond_desempleado = 1. Until now the API returned 422 (“El campo Beneficios es obligatorio para Condición de desempleo 1”) if it was not sent. TGSS registers contracts such as 402 or 502 with unemployment condition 1 without beneficios, and if they are sent it answers “6347* TIPO DE CONTRATO INCOMPATIBLE CON VALOR DE BENEFICIOS”.
  • The format is still validated: if sent, beneficios must have 2 digits. If the value is not compatible with the contract type, TGSS rejects it and the API returns its error.

What to check in your integration: nothing mandatory. If you were sending a beneficios value only to pass validation, you can stop sending it.

13 November 2026

X-Saltra-Mode header and test environment

Affects Social Security / RED System (including ETTS) and SEPE requests under /api/v4, and the public MCP server. DEHU, AEAT and the Navarre Tax Office have no fictitious mode.

  • New X-Saltra-Mode header. test makes the request fictitious (nothing is sent to the authority and the response carries sample data) and live makes it real. Any other value returns 422. On the public MCP server the header is set on the MCP connection.
  • Documented test environment. https://dev-api.saltra.es has the same endpoints as production; there, without the header, everything is fictitious, and with X-Saltra-Mode: live the request is really sent with the client’s certificate. In production (https://api.saltra.es), without the header, the request is real. Full table in Environments and test mode.
  • The documentation no longer mentions the test=1 parameter on the endpoints: each one now explains how to make the request fictitious with the header.

What to check in your integration: nothing mandatory. Integrations that already send test=1 keep working unchanged. For new integrations, use X-Saltra-Mode.

12 November 2026

TGSS contract change: tgss_actual and tgss_enviado in the response

Affects PUT /api/v4/seg-social/contract-coeficiente (Contract change) and its MCP tool.

  • data.tgss_actual and data.tgss_enviado, with or without an error. tgss_actual is what TGSS had on the contract change screen before the change (starts with fecha_registro); tgss_enviado, what was sent (starts with fecha_cambio). Same readable keys in both, to compare them and see what caused a rejection. data.dni and data.nss are also included. A success without duplicates, which used to return an empty data, now has these keys.
  • The specific F.I.C. is no longer sent. Saltra sent the contract seniority date as the specific F.I.C., and with a total strike TGSS responded 5075* EN SIT. DE HUELGA TOTAL NO SE PUEDE CAMBIAR CARACTERISTICAS. TGSS now keeps the worker’s current one.
  • Strike registered at TGSS. If tgss_actual contains an inactivity type and the contract is in Saltra, it is stored on it from fecha_registro, even when TGSS rejects the change.
  • The IDC returns the inactivity type. GET /api/v4/seg-social/duplicate-idc?format=json (Contribution data) adds tgss_inactividad and tgss_ctp_huelga to data.parsed.contract when the IDC has them (for example, “HUELGA TOTAL” → 2). When syncing by IDC, that strike is stored on the Saltra contract from the start of the IDC period.
  • “Worker’s IDC data” moves to Queries as List worker IDCs. The endpoint (GET /api/v4/seg-social/idc-info-for-nss) does not change and the old URL redirects.

What to check in your integration: nothing mandatory. If you validate that data is empty on success, accept the new keys.

3 November 2026

SEPE extensions: discontinuidad is no longer mandatory in the API

Affects POST /api/v4/sepe/prorroga (Extension) and its MCP tool. Corrects what was stated on 20/10/2026.

  • No more own 422 without discontinuidad. Previously, if the SEPE form had the field and you did not send it, the API responded 422 without reaching SEPE. The extension is now sent stating there was no discontinuity.
  • The field depends on the contract, not on a date gap. SEPE shows it for certain contracts even when the extension starts the following day; in that case, without discontinuity, the communication goes ahead normally.
  • N is valid again and is equivalent to not sending the field.
  • If there is a date gap, SEPE requires S and, if it does not receive it, rejects the communication with “Debe indicar el campo discontinuidad”. That rejection is returned like any other SEPE rejection.

What to check in your integration: nothing if you already omitted the field when there was no inactivity. Send S only if there was inactivity that justifies the discontinuity; if SEPE responds “Debe indicar el campo discontinuidad” and there was none, correct the dates so the extension starts the day after the end of the contract or of the last extension.

29 October 2026

Employee situation: getTc parameter with the +TC data

Affects Query an employee’s situation within the company (GET /api/v4/seg-social/employee-situations) and its MCP tool.

New optional parameter getTc

Additive change, does not break integrations. With getTc=1, each record in data includes a tc key with the data of the RED System “+TC” screen (contribution specifics):

  • rlce and rlce_text: code and description of the special employment relationship (RLCE).
  • special_code: the screen’s “C.Esp” field, exactly as reported by TGSS.
  • sepe_contract_type: contract type reported to SEPE.
  • unemployed_company / unemployed_company_text: unemployed status declared by the company.
  • unemployed_spee / unemployed_spee_text: unemployed status according to the SPEE.
  • fic_age: worker’s age on the contract start date (integer).
  • fict_calculated: contract start date calculated by TGSS (YYYY-MM-DD).

Every field may be null if TGSS does not report it. Without getTc the response does not change.

26 October 2026

TGSS contract change: strike rules and end of strike in the history

Affects the contract change (PUT /api/v4/seg-social/contract-coeficiente) and its MCP tool tgss_update_contract_coeficiente.

The strike CTP belongs only to partial strikes: new 422s

Behaviour change. Before sending anything to TGSS, tgss_ctp_huelga is checked against tgss_inactividad, and the API responds 422 without submitting (the MCP tool returns an error with the same text):

  • Full strike (2) with a strike CTP: no part of the working day is worked in a full strike, so a strike CTP does not apply.
  • Partial strike (3) without a strike CTP: the strike CTP (the coefficient of the worked part of the day) is required.
  • Strike CTP 0 or 000, with any inactivity: if nothing is worked, it is a full strike (type 2 without CTP). Previously a 0 was treated as empty.

With the other inactivity types (ERE/ERTE) the strike CTP is not validated: TGSS still decides. Details and messages in Strike rules.

The end of the strike is kept in the history

Until now this endpoint only submitted to TGSS and saved nothing on the Saltra contract. Now, if the change succeeds and the worker has their contract in Saltra (looked up by ccc among your company’s accounts or those of the companies you manage), the change is saved on it with the change date (startDate), as from the web.

The ATR45 has no end date: a strike is ended with another change without tgss_inactividad or tgss_ctp_huelga. What TGSS clears then is saved as an empty entry dated on the end: the strike row is closed the day before, the strike period is kept in the history and the current value becomes empty.

What to check in your integration: always send tgss_ctp_huelga with inactivity 3, never with 2, and do not use 0/000 for “no CTP” (omit the field). The response of a successful change does not change.

23 October 2026

Authority errors: 424 and 503 instead of 502 and 504

Behaviour change. The HTTP codes the API uses to report a failure of an authority (TGSS/RED System, SEPE, DEHU, AEAT, Navarre Tax Office) or of a connected system change. From Monday 26/10/2026 the API never returns 502 or 504 on purpose. The body does not change: it is still {success: false, message, status, data, errors}, with the reason in message.

Why

We have added a new perimeter protection layer to the API (malicious traffic filtering / WAF and protection against denial-of-service attacks). This layer treats 502 and 504 as network failures and replaces their content with a generic message, so the reason for the error did not reach the client: our JSON was lost and, with it, the message holding the reason for the TGSS or SEPE rejection. 424 and 503 arrive intact.

What changes

SituationBeforeNow
The authority answered and rejected the request (or rejected our certificate)502424 Failed Dependency. Where applicable, message starts with SISTEMA RED: , SEPE: or DEHU: and the response carries the X-Saltra-Error: organism-rejected header. No Retry-After.
We could not communicate with the authority (connection, timeout on a query, invalid response, down)502 / 504503 with retryable: true and retry_after in the body, and the Retry-After (60 seconds by default) and X-Saltra-Error: organism-unavailable headers.
Unknown outcome of a write (registration, deregistration, contract change, communication to SEPE that timed out or was not confirmed)504 / 502503 without Retry-After and without retryable; timeout: true when time ran out. The message asks you to check whether it was registered before retrying.
Authority maintenance503 + maintenance: true + Retry-AfterNo change.
Saltra rejects the data (validation)422No change.

retryable is a new field, at the root of the body next to maintenance and timeout.

What you should do

  • Read the body on every status code, not only on 200: the reason is in message.
  • 424: do not retry without fixing the data (or changing the certificate, if that is what the authority rejected). Repeating the same request returns the same rejection.
  • 503 with Retry-After: retry after the seconds given by the header (or retry_after). Do not poll at a fixed interval.
  • 503 without Retry-After: do not retry blindly. First check whether the request was registered (look up the movement, the TA or the relevant mailbox); resending it could duplicate it.
  • A 502, 504 or 52x you may still receive is generated by the network infrastructure, not by the API, and does not carry our body. Treat it as a connection failure: if it was a write, check whether it was registered before retrying.

If your integration checked status == 502 to detect an authority rejection, or 504 for a timeout, you need to adapt it: a rejection is now 424 and a timeout is 503. If you treated any 5xx as “retry”, stop retrying the 503 without Retry-After.

The status code tables of each authority have been updated: Social Security, SEPE, DEHU, AEAT and Navarre Tax Office.

21 October 2026

RED System: Calculations query (settlements, calculations and Bulk query)

Three new endpoints under /api/v4/seg-social/ for the RED System service “Cotización SLD Remesas > Consulta de cálculos”:

  • GET /contribution-calculations: lists the settlements of a contribution account code in a period. MCP tool tgss_list_contribution_calculations. Documentation.
  • GET /contribution-calculations/detail: calculations of a settlement by concept and list of workers; with naf, the worker detail with their tramos. MCP tool tgss_get_contribution_calculations_detail. Documentation.
  • POST /contribution-calculations/siltra: requests the Bulk query of the calculations of all the workers of a settlement; the TGSS delivers it deferred to the SILTRA mailbox. It is a write (409 if communication with the TGSS is disabled). MCP tool tgss_request_contribution_calculations_siltra. Documentation.

detail always returns workers_list_available: for settlements with many workers the TGSS does not give their list, workers is null and warnings says to query each worker with naf (which works in both cases; a naf outside the settlement gives 404). siltra also works for those settlements. ccc is always 11 digits and liquidation_number 17.

Every object in the response carries an extra field, with the TGSS fields that have no translated key (original XML name, unconverted value; {} if none). If the TGSS adds a new field it shows up there with no API change; if it is translated later, it moves to its English key.

liquidation_number is optional in detail and siltra: if omitted, it is looked up with ccc, regimen, start_date, end_date, liquid_type and liquid_origin; a single settlement is used as is, several give a 422 with data.liquidations to choose from (in the bulk query, with nothing sent to the TGSS) and none gives a 404. Get it with GET /contribution-calculations (data.list[].liquidation_number).

Parameters use snake_case (regimen, ccc, start_date, end_date, liquid_type, liquid_origin, liquidation_number, naf, authorized_num, test). This is an additive change: nothing changes for existing integrations.

Contribution Settlement Receipt: format=siltra

The format parameter of the GET /report-rlc endpoint (Contribution Settlement Receipt) accepts a third value:

  • siltra: requests from the TGSS the duplicate of the Workers’ Nominal List (RNT) of all the workers of the settlement. The TGSS delivers it deferred to the RED authorised user’s SILTRA mailbox, not in the response. data.status says whether the request was filed (requested) or one was already pending (already_in_progress).

Unlike pdf and json, siltra is not a query: every call files a request with the TGSS. The tgss_report_rlc MCP tool accepts the same value.

Nothing changes for callers that send pdf, json or no format.


Add assignment (ETTS): optional endDate

In POST /seg-social/etts/cesion (Add an assignment) the endDate parameter becomes optional, as in the TGSS RED System. If omitted, the assignment has no end date. If sent, it cannot be earlier than startDate. The etts_add_cesion MCP tool accepts the same.

endDate is still required in “Update assignment”. Nothing changes for callers that already send endDate.

20 October 2026

Company data: endpoint documented and new situacion option

The GET /enterprise/data endpoint (Company data) now has a documentation page and a new options value:

  • situacion: adds data.situacion with the full CCC situation: status, workers, CNAE (93, 2009 and 2025), main / previous / successor CCC, mutual insurance and collection data. It requires ccc and regimen; without them the response is a 422.

Requesting cnae and situacion together queries the TGSS only once. mutua and recaudacion are absent if the TGSS does not return that screen. With test=1 sample data is returned without querying the TGSS. An equivalent tool exists on the MCP server (tgss_enterprise_data).

Nothing changes for callers that do not send situacion.

SEPE extensions: discontinuidad only accepts S

Corrects what was stated on 16/10/2026 for POST /api/v4/sepe/prorroga (Extension). The discontinuidad field only accepts the value S; N is not valid.

  • When SEPE asks for it: only when the extension does not start the day after the end of the contract or of the previous extension (there is at least one day of gap). It does not depend on the contract type.
  • With N, empty or without the field SEPE always rejects the communication (“Debe indicar el campo discontinuidad. No se acepta la comunicación.”).

What to check in your integration: do not send N. If there was inactivity that justifies the gap, send S. If there was none, correct the dates so the extension starts the day after the end of the contract or of the previous extension; SEPE then does not ask and the field is not needed.

19 October 2026

Status report for a C.C.C.: new format parameter

The GET /report-situation-ccc endpoint (Status report for a C.C.C.) has a new optional format parameter:

  • pdf (default): as before, the PDF in data.file (base64).
  • json: in addition to the PDF, data.parsed with the report data: company name, tax ID, CCC status, registration and status dates and RED authorisation.

Nothing changes for callers that do not send format.

Contribution Settlement Receipt: new format parameter

The GET /report-rlc endpoint (Contribution Settlement Receipt) has a new optional format parameter:

  • pdf (default): as before, the PDF in data.file (base64).
  • json: the data of each receipt of the settlement (bases, contributions and totals) in data.list, without the PDF. Useful when only the amounts are needed, and while the TGSS does not deliver the PDF for some periods.

Nothing changes for callers that do not send format.

16 October 2026

SEPE extensions (discontinuidad) and TGSS contract change (working-day reduction and initial CTP)

SEPE extensions: discontinuidad N is now sent, and if SEPE requires it and it is missing, a clear 422

In POST /api/v4/sepe/prorroga the discontinuidad parameter (S/N) answers the question “has there been a period of inactivity, in accordance with current regulations, that justifies the discontinuity?”. SEPE only asks it for some contracts (for example, temporary contracts due to production circumstances) and for those it is mandatory.

What was failing: we only sent discontinuidad when it was S. With N it was dropped, the dropdown arrived empty and SEPE rejected the communication with 422: Debe indicar el campo discontinuidad. No se acepta la comunicación.

What changes:

  • S and N are sent to SEPE as-is.
  • If SEPE requires the field for that contract and you did not send it, the API responds 422 without sending anything to SEPE, with the error in errors.discontinuidad: “Para este contrato el SEPE exige indicar si ha existido un periodo de inactividad conforme a la normativa vigente que justifique la discontinuidad. Envía el campo discontinuidad con S o N.”
  • If SEPE does not ask about the discontinuity for that contract, the field is ignored even if you send it.
  • discontinuidad and prorroga_exist_convenio are S/N strings (the documentation wrongly described them as integers).

What to check in your integration: always send discontinuidad (S or N) in extensions; it is harmless when SEPE does not ask for it and avoids the 422 when it does. We assume no default value, because the answer has legal effect and is yours to give.

TGSS contract change: working-day reduction and initial CTP

The contract change (PUT /api/v4/seg-social/contract-coeficiente) accepts two new optional parameters:

  • reduccion_jornada: the TGSS working-day reduction (reason), 3 digits. For example 001 (care of a minor), 002 (care of a person with a disability) or 004 (shared responsibility for infant care). The full table of codes is linked from the endpoint documentation. It is only sent if TGSS shows the field for that contract/coefficient.
  • tgss_ctp_inicial: the initial CTP (“CTP Inicial”), 1 to 3 digits in thousandths of the coefficient (TGSS shows a fixed “0,” in front): 750 = 0.750; it is left-padded with zeros, 75 = 0.075.

Both are preserved if omitted: if you do not send them (or send them empty), TGSS keeps the worker’s current value. To clear the initial CTP, send 000. Note this differs from tgss_inactividad and tgss_ctp_huelga, which are cleared when omitted.

MCP: the tgss_update_contract_coeficiente tool now accepts reduccion_jornada, tgss_inactividad, tgss_ctp_huelga and tgss_ctp_inicial, same as the endpoint.

NAF affiliation: validated identificacion, EU/EEA without NIE limitation and error 3001 naming the rejected field

In POST /api/v4/seg-social/assignment-nss:

  • identificacion (1=DNI, 2=Passport, 6=NIE) is now validated: any other value returns 422 with errors.identificacion (the rule was previously not applied). If omitted, it is inferred from the document (DNI→1, NIE→6, anything else→2).
  • TGSS limitation, now with its own 422: through the RED System a NAF cannot be assigned to an EU/EEA/Swiss citizen (country, excluding Spain) with effective type 2 (passport or national ID, sent or inferred). Saltra answers 422 with errors.identificacion without calling the TGSS (previously it reached the TGSS and failed). A NIE (type 6) is required; without it, the NAF is requested at a TGSS office (form TA.1).
  • When the TGSS rejects a specific field (3001), the 502 names it in the message and in errors.field (new, additive field). Without a recognisable field, the response is the usual one.
  • streetType must be a 2-letter uppercase code (CL), otherwise 422; the address must be the worker’s.

15 October 2026

Clients: new /api/v4/customer route

The clients API now has its v4 version, with the same operations we documented:

GET https://api.saltra.es/api/v4/customer POST https://api.saltra.es/api/v4/customer DELETE https://api.saltra.es/api/v4/customer/{customerID} PUT https://api.saltra.es/api/v4/customer/{customerID}/activate

Until today the documentation pointed to /api/web/v3/customer, which is the route the Saltra platform itself uses. Its validation follows the web form and, because of that, creating a client required profile.codigo_postal and profile.parameters even though the documentation listed them as optional. v4 has its own API validation:

  • Required: name, access.email, profile.dni, profile.razon_social and at least one account in profile.account (regimen, cuenta and alias).
  • Optional: profile.codigo_postal, profile.parameters, access.password (if you send it, with password_confirmation), profile.direccion, profile.external_id, not_notify.
  • Legal representative: the four fields of profile.parameters.representativeData (doc, name, surname, job_position) are only required if you send representativeData.

Responses keep the same format (success, message, data, status) and validation errors return 422 with the per-field detail in errors. The clients_* MCP tools already use v4.

What to check in your integration:

  • Change the base URL to https://api.saltra.es/api/v4/customer. The request bodies do not change.
  • /api/web/v3/customer still works, but it is internal to the platform: its validation may change without notice when the web changes. Do not build on it.
  • perPage in the list accepts 50 at most; asking for more returns 50.

14 October 2026

Certific@ unavailable: immediate 503 with Retry-After

Until today, when SEPE’s Certific@ service was unavailable, a company certificate query (GET /sepe/certifica) could take about 12 seconds and end in a 500 with a “timed out” message that suggested checking the certificate. From today the API answers straight away with 503 Service Unavailable, maintenance: true and a Retry-After header:

HTTP/1.1 503 Service Unavailable Content-Type: application/json Retry-After: 120
Respuesta 503
{ "success": false, "message": "SEPE: El servicio Certific@ no está disponible en este momento. Inténtalo de nuevo más tarde.", "status": 503, "errors": { "sepe": ["SEPE: El servicio Certific@ no está disponible en este momento. Inténtalo de nuevo más tarde."] }, "maintenance": true, "retry_after": 120 }

It applies to every Certific@ endpoint: sending the company certificate (POST /sepe/certifica), sending it by XML (POST /sepe/certifica/xml), the duplicate (GET /sepe/certifica), the list (GET /sepe/certifica/list) and the detail (GET /sepe/certifica/detail).

While the Certific@ service is still unavailable, subsequent requests also get a 503 immediately, sometimes with the message SEPE: El SEPE no responde. Inténtelo de nuevo en unos minutos.. In both cases, Retry-After (like retry_after in the body) gives the seconds left until it is worth trying again.

The body format does not change (success, message, status, errors, maintenance, retry_after).

What to check in your integration:

  • A 503 is not a problem with your certificate or with the data you sent. Do not switch certificates or change the request: SEPE is unavailable.
  • Wait for what Retry-After says and do not retry in a loop: retrying early returns the same 503.
  • If you handled the Certific@ 500 as a special case, move it to the logic you already have for 503 with maintenance: true. Status codes are in SEPE errors.

13 October 2026

Contract change: inactivity type and strike/ERE CTP

The contract change (PUT /contract-coeficiente) accepts two new optional parameters from the RED System contract change screen (ATR45):

  • tgss_inactividad: the “Inactivity type”. The possible values are in the table of inactivity types. It is sent to TGSS as is; Saltra does not validate it against the list, and TGSS rejects an invalid value.
  • tgss_ctp_huelga: the strike/ERE activity CTP (“CTP Actvid. Huelga/ERE”), 1 to 3 digits. They are the thousandths of the coefficient, because TGSS shows a fixed “0,” in front: 750 = 0.750. Saltra left-pads it with zeros to 3 digits, so 75 = 0.075.

Neither of them is preserved. If omitted or empty ("" / null), they are sent empty and the worker’s current value is removed. Unlike rlce, omitting them does not keep the current value: to keep it, resend it; to clear it, send it empty.

8 October 2026

Bank details: 404 without accounts and authorisation fix

Query bank details (GET /datos-bancarios) no longer answers 200 with saldo_acreedor and cargo_en_cuenta set to null when the contribution account has no account on record: it answers 404 with success: false and the message «SISTEMA RED: No hay datos bancarios comunicados para esta cuenta de cotización.».

  • If only one of the two accounts is on record, it is still a 200 with the other one null.
  • The 404 is a final answer, not a TGSS failure: there is no need to retry it.

Also, with a certificate holding several RED authorisations, the query and Report bank details (PUT /datos-bancarios) failed with «El campo Autorizado es obligatorio» even when authorized_num was sent. Not anymore: without authorized_num they answer 422 with data.authorized_list, as documented, and with it they use that authorisation.

7 October 2026

Query the bank details of a CCC

New Query bank details endpoint (GET /datos-bancarios, same path as the PUT of Report bank details). Given regimen and ccc, it returns what TGSS has on record for that contribution account:

  • saldo_acreedor and cargo_en_cuenta: full IBAN, its parts and the holder (document type, identification and name); null if no account is on record.
  • datos_bancarios: the full TGSS screen, with its original field names.
  • If the certificate has several RED authorisations, 422 with data.authorized_list, same as the PUT.

The tgss_get_datos_bancarios MCP tool runs the same query.

5 October 2026

Contract change: R.L.C.E. now included

The contract change (PUT /contract-coeficiente) accepts the optional rlce parameter: the Special Employment Relationship, 4 digits (for example, 9941 for coaches and instructors subsidised under Law 7/2024). Until now, an R.L.C.E. that was not registered at hiring could not be sent later through the API.

  • If rlce is omitted, the worker keeps the one already registered at TGSS: it is not cleared.
  • If neither contractType nor coeficiente is sent, the part-time coefficient is kept.
  • An rlce that is not 4 digits returns 422 before calling TGSS.

The tgss_update_contract_coeficiente MCP tool accepts the same parameter.

4 October 2026

Retry-After header on SEPE and TGSS 503 responses

When SEPE (Contrat@, Certific@) or TGSS/RED System is under maintenance or not operational, the API responds 503 with maintenance: true. Until today that response did not say how long to wait, so the only option was to retry blindly. From today it carries a Retry-After header with the seconds to wait before trying again, just like 429:

HTTP/1.1 503 Service Unavailable Content-Type: application/json Retry-After: 120
Respuesta 503
{ "success": false, "message": "SEPE: SEPE en mantenimiento.", "status": 503, "errors": { "sepe": ["SEPE: SEPE en mantenimiento."] }, "maintenance": true, "retry_after": 120 }

The body may also include retry_after (integer, seconds) next to maintenance: true, with the same value as the header. If it is missing, use the header.

The value depends on the case. When Saltra already knows the authority is down (Certific@ under maintenance, for example), it answers without asking it again, and Retry-After is the number of seconds until it checks again (up to 300 seconds, 5 minutes). For any other outage it is a default value of a few minutes.

The body format does not change (success, message, status, errors, maintenance).

What to check in your integration:

  • Wait for what Retry-After says. Retrying early does not unblock anything: it returns the same 503.
  • Do not poll at a fixed interval (every 10 seconds, for example) while the authority is down. Schedule the next attempt from the header value.
  • Status codes and their details are in SEPE errors and Social Security errors.

3 October 2026

FIE as JSON: repeated columns no longer lost

The TGSS FIE report repeats some headers in different sections. With format=json each header was a key, so repeated ones overwrote each other and only the last survived: 85 of the 88 columns came back.

From today the first occurrence keeps its name and the following ones carry their report section code in brackets. Keys still come from the TGSS file itself: if it adds a column or a section, it shows up on its own.

KeySectionBefore
Entidad ResponsableDIT (Temporary Disability)Held the DOP section value
Entidad Responsable (DIP)DIP (Permanent Disability)Missing
Entidad Responsable (DOP)DOP (Other Benefits)Came as Entidad Responsable
Fecha Baja ITDIT (Temporary Disability)Held the DIP section value
Fecha Baja IT (DIP)DIP (Permanent Disability)Came as Fecha Baja IT

The excel format does not change.

What to check in your integration: if you read Entidad Responsable or Fecha Baja IT from the JSON, you used to get the other-benefits or permanent-disability value. It is now the temporary-disability one; for the others, use the keys with (DOP) or (DIP).

FIE by Autorizado RED from MCP

The tgss_excel_fie MCP tool only accepted the company search (regimen + ccc required). It now accepts the same parameters as the endpoint: opcionesBusqueda (0 company, 1 self-employed with naf, 2 Autorizado RED, dates only) and format (excel or json). With opcionesBusqueda: 2 you get the FIE of every company of the certificate’s autorizado.

TGSS rejects ranges of 29 days or more with “El rango de búsqueda no puede ser superior a 30 días”. So the endpoint maximum drops from 30 to 28 days between startDate and endDate: a longer range returns 422 before calling TGSS, with the same limit over API and MCP.

2 October 2026

Unconfirmed operations: 502 instead of 500

When the authority accepted a request but did not confirm whether the operation went through, the API returned 500, sometimes with no message. A 500 says the failure is ours, and it was not. From today these cases come back as 502, with a message that says what happened, like any other unexpected answer from the authority.

OperationBeforeNow
Register a termination (TGSS)500 “Duplicado no obtenido. Por favor, verifique si la operación se realizó correctamente.”Sistema RED is first asked for that worker’s TA on that date. If it exists, 200 with the TA, like a normal termination. Otherwise, 502 with the same message.
Contract change (TGSS)500 with an empty message502 with SISTEMA RED: <RED notice> or, without a notice, “El Sistema RED no confirmó el cambio de contrato. Por favor, verifique si la operación se realizó correctamente.”
Submit work calls (SEPE)500 when SEPE rejected every worker502. Each worker’s reason is still in data.data[]. 422 and 503 do not change.
Cancel contrat@ (SEPE)500 when SEPE did not confirm the cancellation404 or 422 if SEPE’s answer is definitive, 502 with SEPE: <message> for any other rejection, and 502 “El SEPE no confirmó la anulación de la comunicación. Por favor, verifique si la operación se realizó correctamente.” if it said nothing.

The body format does not change (success, message, status, errors), and neither does the termination message: if your integration recognises it by its text, it keeps working.

What to check in your integration:

  • Terminations: some terminations that used to come back as an error now come back as 200 with their TA, because TGSS had actually processed them. If you resent the termination or flagged it for manual review on that error, there is no need in those cases.
  • Retries: a 502 “…verifique si la operación se realizó correctamente” means the operation may have gone through. Check before repeating it. If you blindly retry any 5xx, you may duplicate the termination or the cancellation.

30 September 2026

Navarre Tax Office certificate of being up to date

New Navarre Tax Office section with one endpoint, GET /api/v4/navarra/report-corriente, which requests the certificate of being up to date with tax obligations from the Hacienda Foral de Navarra and returns it as a PDF (base64), just like the AEAT certificate.

  • It uses the AEAT certificate (type 3) in X-Cert-Secret, the same one as the AEAT endpoints.
  • By default it is requested on behalf of (representation=true) the given nif; if you do not send it, the CIF of the user’s company is used. With representation=false it is requested in the certificate holder’s own name.
  • type selects the certificate: EstarAlCorriente (default), DeudasPorNif or EstarAlCorrienteContratistas.
  • The response adds data.result (positive, negative or null), read from the PDF itself.
  • If the tax office does not issue the certificate (the holder does not represent that NIF, or it returns its error PDF), the API answers 502 with the reason in errors.navarra.

On the public MCP server it is available as the navarra_report_corriente tool.

This is an additive change: existing integrations need no changes.

28 September 2026

Rejected replacement reason: 422 with the valid codes

When sending a contract to SEPE, the codes accepted for CAUSA_SUSTITUCION depend on the contract: Contrat@ offers different ones in its form. Until today, if the code you sent was not among them, the API answered 502 with the message “SEPE: Sustitución no permitida por el SEPE”, without saying which ones were valid. It could not be reproduced in test mode either, because the SEPE form is never opened there.

From now on it answers 422, because it is the data that needs fixing, and returns the codes SEPE accepts for that contract in data.accepted:

Now
{ "success": false, "message": "SEPE: Causa de sustitución «19» no admitida por el SEPE para este contrato. Los códigos admitidos van en data.accepted", "status": 422, "data": { "field": "CAUSA_SUSTITUCION", "value": "19", "accepted": [ { "code": "A", "description": "..." }, { "code": "B", "description": "..." } ] } }

What to check in your integration: do not retry this error with the same code. Fix CAUSA_SUSTITUCION using one from data.accepted, which is a single letter (TEIINTER table), not a number.

Disability degree in TGSS registrations

Registering a worker accepts a new parameter, grado_minusvalia: the worker’s recognised disability degree, as a 2-digit number (e.g. 33, 65). Saltra reports it in the “Grado Minusvalía” field of the Sistema RED registration screen.

  • It is optional: if you do not send it, the registration is submitted exactly as before, with no degree.
  • With rlce = 0600 (workers with disabilities in Special Employment Centres), TGSS requires the degree to be 33 or higher; if you send a lower one, the API answers 422 before contacting the agency.

This is an additive change: integrations that do not use it need no changes.

19 September 2026

SEPE outages are now 503, not 502

When SEPE goes down it does not always let us read its maintenance notice: sometimes its server stops answering verifiably and the connection is never established. Until today that came back like this:

Before
{ "success": false, "message": "Error de conexión de SALTRA con el (SEPE). ServiceOffLine", "status": 502, "maintenance": false }

Two problems for an integrator: the message names Saltra, as if the failure were ours, and maintenance is false, so there is no way to tell it apart from a one-off rejection that is worth retrying.

From now on it is an outage on their side like any other:

Now
{ "success": false, "message": "El (SEPE) está en mantenimiento. Inténtelo más tarde.", "status": 503, "maintenance": true }

It affects every SEPE operation, both queries and submissions.

What to check in your integration: if you decide whether to retry by looking at the message text, stop doing that and look at maintenance instead. That is the field meant for this, its wording does not change, and it already told apart every other outage on their side. The full table is in SEPE errors.

18 September 2026

Empty results: 404 instead of 502

Until today, any text SEPE returned when rejecting a query came back as 502. That included the answers where the authority replies perfectly well and what it says is that there is nothing:

  • No existen certificados para ese NIF
  • No se encuentra el documento en esta fecha 19/06/2026. Última fecha disponible para descargar…
  • No se encontraron datos para la consulta solicitada.

For an integration that is indistinguishable from a service failure, so the reasonable response was to retry — and retrying a query with no results always returns the same.

From now on:

CodeWhen
404SEPE answered and there is no data for that query. Final answer: do not retry.
422SEPE rejects the data sent (for example, El NIF/NIE del trabajador es erróneo).
502SEPE rejects the operation for another reason, or answers unexpectedly.
503SEPE is under maintenance (maintenance: true).

The response body does not change: same success, message and errors.sepe with the authority’s text. Only the HTTP status changes.

It affects every SEPE query, and in particular Certific@2 duplicate, Detail and Data.

What to check in your integration: if you treat any 5xx as “retry”, 404 and 422 now leave that path and you stop repeating queries that will not change. The full table is in SEPE errors.

16 September 2026

RLC and per-worker RNT reports: docs and MCP tools

Two TGSS report endpoints that already existed under /api/v4/seg-social had no page in this documentation. They do now:

Both pages list the full catalogue of liquidType values (L00, L02, L03, L13, L90…), the numAutorizado parameter for certificates with several RED authorised users and, for the RLC, the controlDate control date the RED System requires for L03 settlements.

The public MCP server (api.saltra.es/api/v4/mcp, version 1.0.3) adds the two mirror tools: tgss_report_rlc and tgss_report_rnt_for_nss, with the same field names as the pages.

Nothing changes in the REST API: these endpoints were already available.

15 September 2026

Certific@2 as JSON: new GET /certifica/detail

Until now, the only thing you could retrieve from a CERTIFIC@2 already filed was the PDF (GET /certifica). The SEPE does not return the original XML, so anyone who wanted the data had to read it off the document.

New GET /certifica/detail: the same parameters as the duplicate (dni, startDate, ccc) and the whole certificate as JSON, without the PDF: company, representative, worker, suspension cause and dates, month-by-month contribution bases, holidays and totals.

GET /certifica/detail
{ "success": true, "message": "OK", "status": 200, "data": { "enterprise": { "cif": "B99999999", "ccc": "281999699", "name": "NOMBRE EMPRESA" }, "employee": { "nif": "99999999T", "suspension_cause": "02", "suspension_start_date": "2026-07-31" }, "contributions": [ { "year": "2026", "month": "07", "days": 30, "base_cc": 2583.32, "base_unemployment": 2583.32 } ], "holidays": { "days": 0, "base_cc": 0, "base_unemployment": 0 }, "totals": { "days": 180, "base_cc": 13499.97, "base_unemployment": 13499.97 } } }

Also:

  • GET /certifica (duplicate) adds data.detail with that same structure. file is unchanged.
  • GET /certifica/data is renamed GET /certifica/list, which is what it does. The old name keeps working as an alias, with no removal date for now; the MCP tool sepe_certifica_data likewise stays as an alias of sepe_certifica_list.

Dates as YYYY-MM-DD and amounts as numbers, unlike certificates[], which keeps the SEPE screen format (dd/mm/yyyy).

14 September 2026

The TA duplicate now says which movement it belongs to

GET /duplicate-ta returned the TA PDF and, in data.data, every movement for the requested NAF, without saying which one the PDF came from. For a worker with several registrations, whoever received the document could not tell which date it belonged to.

The response now carries data.movement: the specific movement the document was taken from, with its date, its documentoTA and the rest of the screen’s columns.

Respuesta
{ "success": true, "message": "OK", "data": { "data": [ /* todos los movimientos del NAF */ ], "employee": { "name": "...", "doc": "043468731L", "nss": "081524252915" }, "movement": { "indice": 1, "documentoTA": "ALTA (SIT.ACTUAL)", "date": "2023-01-01", "st": "01" }, "file": { "contentType": "application/pdf", "name": "document.pdf", "content": "base64" } } }

It is a new field: data, employee and file are unchanged.

Check movement.date against the date you asked for before treating a movement as filed: the TGSS searches by NAF, so it can return the TA of another registration of the same worker.

8 September 2026

Call-up validation errors now come in the message

When POST /llamamientos did not pass our validation, the response message was always the same literal —validation_errors— and the real detail lived only in errors. Anyone showing message straight to their user was showing a text that says nothing.

Antes
{ "success": false, "message": "Hubo un error al enviar la comunicación. validation_errors", "status": 422, "errors": { "employees.0.nss": [ "El campo NSS del empleado n# 1 debe ser de 12 dígitos." ] } }

The message now carries the field errors, separated by | when there is more than one:

Ahora
{ "success": false, "message": "Hubo un error al enviar la comunicación. El campo NSS del empleado n# 1 debe ser de 12 dígitos.", "status": 422, "errors": { "employees.0.nss": [ "El campo NSS del empleado n# 1 debe ser de 12 dígitos." ] } }

errors does not change: it is still indexed by the worker’s position within employees, starting at 0. Every other SEPE endpoint answers exactly as before.

A single worker’s rejection follows the same rule: when SEPE does not have them in its database and data is missing to create them, data.data[].message names the missing field instead of validation_errors.

Rejections from SEPE itself have never travelled in errors: when the agency rejects one specific worker, the reason comes in data.data[].message. It is explained in Report call-ups.

4 September 2026

New report: contribution data and settlement period by worker

New endpoint Contribution data and settlement period (worker). It is the same report as /idc-ccc, but limited to a single NSS within the contribution account, so you no longer have to download the whole account report and look the worker up inside it.

{ "regimen": "0111", "ccc": "12345678901", "nss": "281234567890", "period": "2023-02" }
  • regimen: scheme, 4 digits.
  • ccc: contribution account code, 11 digits.
  • nss: Social Security number, 12 digits.
  • period: settlement period, format YYYY-MM.

It returns the PDF in data.file.content, base64 encoded, like the rest of the TGSS reports.

The TGSS settlement period is month/year, not a date: that is why period is sent as YYYY-MM and not as YYYY-MM-DD.

Worker data in TA document queries

Get TA list and TA Document Duplicates now return the worker’s identifying data, which until now required a separate query.

"employee": { "name": "MARIA PEREZ GOMEZ", "identity": "1", "doc": "012345678Z", "nss": "289999999999" }
  • name: full name, exactly as returned by TGSS.
  • identity: document type. 1 DNI, 6 NIE, 2 passport.
  • doc: document number.
  • nss: Social Security number, 12 digits.

In /ta-info-for-nss the key hangs off the response root, next to data. In /duplicate-ta it hangs off data, next to data.data and data.file.

This is an additive change: no existing field changes and it costs no extra TGSS request, because the data already travelled in the same screen the listing is extracted from.

employee is accessory information. If TGSS does not return it, the key is absent and the rest of the response is unaffected; individual keys that could not be read are omitted too. Do not assume all four are present.

13 August 2026

Rate limit headers: Retry-After and X-Ratelimit-Reset

We are extending the rate limit information returned by the API. This is an additive change: no limit and no response format changes, it only adds headers.

  • Retry-After on 429 responses. Gives the number of seconds to wait before retrying. Until now 429 responses did not include it and there was no way to know how long the block would last.
  • X-Ratelimit-Reset on every response. UNIX timestamp of the moment the window renews and X-Ratelimit-Remaining returns to its maximum. Together with X-Ratelimit-Remaining it lets you space out requests as you approach the limit, instead of stopping dead or hitting the 429.
HTTP/1.1 429 Too Many Requests X-Ratelimit-Limit: 80 X-Ratelimit-Remaining: 0 X-Ratelimit-Reset: 1786012860 Retry-After: 37

X-Ratelimit-Reset is an absolute instant, not a countdown: it stays the same across every response in the same window and only moves forward when the quota renews.

The full header table is in Rate limits.

If your client already implemented its own wait after a 429, you can replace it with the Retry-After value. Most HTTP libraries honour it automatically.

11 August 2026

Public changelog, RSS feed and versioning policy

  • We launch this section: from now on, all relevant changes to the public API are announced here.
  • The changelog can be followed via RSS at feed.en.xml  (or feed.xml  in Spanish).
  • We publish the API versioning policy: what counts as an additive change, what is a breaking change and what overlap period each major version has.

17 June 2026

TGSS: empty results, 404 instead of 502

Until today, when Sistema RED answered a query saying that there is nothing, the API returned it as 502, the same as an authority failure. For example:

  • SISTEMA RED: Error: 3543* NO EXISTEN DATOS PARA ESTA CONSULTA
  • SISTEMA RED: No hay registros para el movimiento seleccionado!
  • SISTEMA RED: No se encontró el informe con la fecha solicitada.
  • SISTEMA RED: No existe información para el período solicitado.
  • SISTEMA RED: Error. El Empleado no está en situación de Alta. Consulte Situación de Empleado en la Empresa

For an integration that is indistinguishable from an outage, so the reasonable response was to retry — and retrying a query with no results always returns the same.

From now on:

CodeWhen
404TGSS answered and there is no data for that query. Final answer: do not retry.
502TGSS rejects the operation for another reason, or answers unexpectedly.

The response body does not change: same success, message and errors.tgss with the authority’s text. Only the HTTP status changes.

It affects TGSS queries, reports and duplicates, among others: Employee status, CCC status, IDC, Affiliate work history, TA document duplicates, FIE files, Maternity/paternity duplicate, Check IT, Collective agreements query and A1 form.

What to check in your integration: if you treat any 5xx as “retry”, 404 now leaves that path and you stop repeating queries that will not change.

Subscription

The changelog is also published as an RSS feed, so you can receive the notices in your reader or your own tooling without visiting the documentation:

https://docs.saltra.es/feed.xml

Feed for the English version:

https://docs.saltra.es/feed.en.xml

Versioning policy

  • The major version of the API is part of the path: /api/v4.
  • Additive changes do not break the contract and may be published at any time: new endpoints, new optional parameters and new fields in responses. Your integration must tolerate unknown fields in JSON responses.
  • Breaking changes (removing or renaming endpoints or fields, changing types or semantics, tightening validations) are only published in a new major version.
  • When a new major version is published, the previous one remains operational for a minimum overlap period of 6 months, announced in this changelog and in the feed.
  • Deprecations are always announced here in advance, indicating the recommended alternative.
Last updated on