Extensions
Extension

Extension

⚠️

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.
  • cif (string) : Company CIF.
  • regimen (integer) : Scheme, 4 digits. Possible values:
  • ccc (integer) : Contribution account code, 11 digits.
  • dni (string) : National identity document.
  • old_startDate (date) : Date of the current contract, format YYYY-MM-DD.
  • startDate (date) : Start date, format YYYY-MM-DD.
  • endDate (date) : End date, format YYYY-MM-DD.
  • discontinuidad (integer) : Optional. Whether there has been a period of inactivity, in accordance with current regulations, that justifies the discontinuity. Possible values:
    • S: Yes
    • N: No
  • prorroga_exist_convenio (integer) : Optional. Whether a collective agreement exists. Possible values:
    • S: Yes
    • N: No
  • duplicate (integer) : Optional. Get the PDF as base64 in JSON format in the response; possible values 1 or null.
POST /prorroga
{
  "test": 1,
  "cif": "A12345678",
  "regimen": "0111",
  "ccc": 12345678901,
  "dni": "12345678A",
  "old_startDate": "2024-01-01",
  "startDate": "2025-01-01",
  "endDate": "2025-01-10",
  "discontinuidad": "N",
  "prorroga_exist_convenio": "S",
  "duplicate": 1
}

Response

Respuesta
{
  "success": true,
  "message": "OK",
  "data": {
    "id": "E-28-2023-9999999",
    "doc": "00000000A",
    "file": {
      "contentType": "application/pdf",
      "name": "document.pdf",
      "content": "base64"
    }
  }
}