Skip to Content
Social SecurityReportsContribution data (IDC)

Contribution data report (IDC)

Parameters

  • regimen (integer) : Scheme, 4 digits. Possible values:
  • ccc (integer) : Contribution account code, 11 digits.
  • nss (integer) : Social Security number, 12 digits.
  • startDate optional (date) : Date, format YYYY-MM-DD. Returns the IDC in force on that date. If omitted, the most recent IDC is returned.
  • last optional (boolean) : true returns the last IDC in the TGSS list (the one with the most recent registration date), whether or not it has a termination date, instead of looking for the one in force on startDate. If startDate is also sent, only IDCs registered on or after that date are considered; if there are none, the TGSS answers «NO EXISTEN DATOS». Without startDate it is the same as not sending it.
  • format optional (string) : json adds data.parsed with the IDC data read from the PDF. data.parsed.contract includes, when the IDC has them, tgss_inactividad (inactivity type code, for example 2 = total strike) and tgss_ctp_huelga (strike/ERE CTP in thousandths, for example 750 = 0.750).
GET /duplicate-idc
{ "regimen": "0111", "ccc": "12345678901", "nss": "123456789011", "startDate": "2023-01-01" }

Which IDC is returned

Each IDC is a period of the worker in the contribution account (from its registration to its termination or a change). Saltra asks the TGSS for the list of periods and downloads one:

RequestReturned IDC
No startDateThe most recent one (latest registration date), whether or not it has a termination.
With startDateThe one in force on that date: the latest registration on or before startDate. If startDate falls in the middle of a period, that period is returned.
With startDate and last=trueThe last of the periods registered on or after startDate. If there are none, the TGSS answers «NO EXISTEN DATOS».

data.date is the registration date (F.R. Alta, YYYY-MM-DD) of the returned IDC period, not the requested date. With startDate it is usually on or before it: compare them to know which period the IDC belongs to.

Example: startDate 2026-11-16 and the IDC in force started on 2026-11-13
{ "success": true, "message": "OK", "data": { "date": "2026-11-13", // registration date of the returned period, not the requested date "file": { "contentType": "application/pdf", "name": "document.pdf", "content": "base64" } } }

Response

Respuesta
{ "success": true, "message": "OK", "data": { "date": "2022-01-01", // fecha de alta del tramo del IDC "file": { "contentType": "application/pdf", "name": "document.pdf", "content": "base64" } } }
Respuesta con format=json (extracto)
{ "success": true, "message": "OK", "data": { "date": "2026-11-11", "file": { "contentType": "application/pdf", "name": "document.pdf", "content": "base64" }, "parsed": { "contract": { "period_start_date": "2026-11-11", "tgss_inactividad": "2" // … resto de datos del contrato del IDC } // … resto de bloques del IDC } } }
Last updated on