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:
- 0111: General Scheme
- Table of scheme codes (opens in a new tab)
- 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 (string) : Conditional. Whether there has been a period of inactivity, in accordance with current regulations, that justifies the discontinuity. SEPE only asks this question for some contracts (e.g. temporary contracts due to production circumstances) and for those it is mandatory: if missing, the API responds
422saying you must sendSorN, without sending the extension to SEPE. Recommendation: always send it (SorN); when SEPE does not ask for it, it is ignored. Possible values:- S: Yes
- N: No
- prorroga_exist_convenio optional (string) : Whether a collective agreement exists. Possible values:
- S: Yes
- N: No
- duplicate optional (integer) : 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"
}
}
}