Documents and duplicates
Duplicates of TA documents

Duplicates of TA documents (registration or deregistration report)

⚠️

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.
  • startDate (date) : Date, format YYYY-MM-DD.
  • movType (string) : Movement type. Possible values:
    • ALTA
    • BAJA
GET /duplicate-ta
{
  "regimen": "0111",
  "ccc": "12345678901",
  "nss": "123456789011",
  "startDate": "2023-01-01",
  "movType": "ALTA"
}

Response

  • data (array) : every movement for the requested NAF.
  • employee (object) : the worker shown by the TGSS in the screen header: name, identity, doc and nss.
  • movement (object) : the specific movement the PDF was taken from. Use it to check the TA is the one you asked for (same date, same type) and not another movement of the same worker.
  • file (object) : the TA document as a PDF.
Respuesta
{
  "success": true,
  "message": "OK",
  "data": {
    "data": [
      {
        "indice": 1,
        "documentoTA": "ALTA (SIT.ACTUAL)",
        "date": "2023-01-01",
        "st": "01",
        "gc": "02",
        "contractType": "200",
        "coeficiente": "0,500"
      }
    ],
    "employee": {
      "name": "NOMBRE APELLIDO APELLIDO",
      "identity": "DNI",
      "doc": "043468731L",
      "nss": "081524252915"
    },
    "movement": {
      "indice": 1,
      "documentoTA": "ALTA (SIT.ACTUAL)",
      "date": "2023-01-01",
      "st": "01",
      "gc": "02",
      "contractType": "200",
      "coeficiente": "0,500"
    },
    "file": {
      "contentType": "application/pdf",
      "name": "document.pdf",
      "content": "base64"
    }
  }
}