Supplementary hours
Supplementary hours

Supplementary hours

⚠️

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.

  • DATOS_IDENTIFICACION (object): Contract details.

    • FECHA_INICIO_CTO (date) : Contract start date, format Y-m-d.
    • IDENTIFICADORPFISICA (string): Document type + document.
    • CLAVE_CONTRATO (string): SEPE fingerprint of the contract.
  • DATOS_HORAS (object): Conversion details.

    • HORAS_TOTAL (string) : Total number of supplementary hours. Hours and minutes, format: HHHHMM.
    • PORCENTAJE_HORAS (string) : Percentage of supplementary hours, format EEDD. Example: 1230 = 12.30%
  • duplicate (integer) : Optional. Get the PDF as base64 in JSON format in the response; possible values 1 or null.

POST /horas-complementarias
{
  "test": 1,
  "DATOS_IDENTIFICACION":{
      "FECHA_INICIO_CTO":"2026-01-26",
      "IDENTIFICADORPFISICA": "D009665999X",
      "CLAVE_CONTRATO":"E-10-2026-0009999"
  },
  "DATOS_HORAS":{
      "HORAS_TOTAL":"020050",
      "PORCENTAJE_HORAS":"1230"
  },
  "duplicate": 1
}

Response

Respuesta
{
  "success": true,
  "message": "OK",
  "data": {
    "id": "E-10-2026-0009999-1",
    "file": {
      "contentType": "application/pdf",
      "name": "document.pdf",
      "content": "base64"
    }
  }
}