Extension
To test without real effects, send the X-Saltra-Mode: test header: nothing is sent to the authority and the response carries sample data. In production, without the header, the request is real. Details in Environments and test mode.
Parameters
- cif (string) : Company CIF.
- regimen (integer) : Scheme, 4 digits. Possible values:
- 0111: General Scheme
- Table of scheme codes
- 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. Send
Sif there was inactivity that justifies the discontinuity. If there was none, do not send the field (Nis equivalent). If there is a gap between the end of the contract (or of the last extension) and the start of this extension, SEPE requiresSand, if it does not receive it, rejects the communication with “Debe indicar el campo discontinuidad”: either there was inactivity (sendS) or correct the dates so the extension starts the day after the end of the contract or of the last extension. When SEPE does not ask for it for that contract, it is ignored. Possible values:- S: Yes
- N: No (same as not sending the field)
- 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
{
"cif": "A12345678",
"regimen": "0111",
"ccc": 12345678901,
"dni": "12345678A",
"old_startDate": "2024-01-01",
"startDate": "2025-01-01",
"endDate": "2025-01-10",
"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"
}
}
}Last updated on