Basic copy
⚠️
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.
- docType (string) : D=NIF/DNI, E=NIE, U=EU citizen, W=Passport.
- dni (string) : National identity document.
- sepeId (string) : Optional. Contract identifier at SEPE, format E-99-9999-9999999.
- TIPO_FIRMA (integer) : Signature type. Possible values:
- 1: SIGNED BY THE LEGAL REPRESENTATIVES.
- 2: THERE IS NO LEGAL REPRESENTATION.
- 3: THE COPY HAS NOT BEEN PROVIDED.
- 4: THEY REFUSE TO SIGN.
- startDate (date) : Contract date, format YYYY-MM-DD.
- TEXTO_COPIABASICA (string) : Text of the basic copy.
- DOMIC_CENTRO_TRABAJO (string) : Work centre.
- duplicate (integer) : Optional. Get the PDF as base64 in JSON format in the response; possible values 1 or null.
POST /copy-basic
{
"test": 1,
"cif": "B12312333",
"docType": "D",
"dni": "12345678A",
"sepeId": "E-99-9999-9999999",
"TIPO_FIRMA": 1,
"startDate": "2023-11-01",
"TEXTO_COPIABASICA": "Texto de la copia básica (Este es un ejemplo ficticio).",
"DOMIC_CENTRO_TRABAJO": "CENTRO DE TRABAJO",
"duplicate": 1
}Response
Respuesta
{
"success": true,
"message": "OK",
"data": {
"file": {
"contentType": "application/pdf",
"name": "document.pdf",
"content": "base64"
}
}
}