Household employees scheme
Deregister a household employee

Deregister a household employee

⚠️

Add test=1 to run tests without real effects. In production, omit this parameter.

Register the deregistration of a household employee.

Base URL

https://api.saltra.es/api/v4/seg-social/hogar

Parameters

  • test (number (1)): For testing, add the test=1 parameter. It must be omitted in production.
  • ccc (integer): Contribution account code, 11 digits.
  • datos_trabajador (object): Worker details.
    • DOC (string): National identity document.
    • SEL_IPF_TIPO (integer): Optional. Identification type. Possible values:
      • 1: DNI
      • 2: Passport
      • 6: NIE
    • NSS (integer): Social Security number, 12 digits.
  • datos_baja (object): Deregistration details.
    • FECHA_CESE (date): Termination date, format YYYY-MM-DD.
    • SEL_SELEC_CAUSA (integer): Reason for deregistration, 2 digits. Common values:
      • 51: Voluntary resignation
      • 54: End of contract
      • 56: Expiry of contract
      • 65: Dismissal
    • DIAS_VACACIONES (integer): Optional. Holiday days.
POST /hogar/baja
{
  "test": 1,
  "ccc": "12345678901",
  "datos_trabajador": {
    "DOC": "12345678A",
    "SEL_IPF_TIPO": 1,
    "NSS": "123456789012"
  },
  "datos_baja": {
    "FECHA_CESE": "2023-01-31",
    "SEL_SELEC_CAUSA": "51",
    "DIAS_VACACIONES": 0
  }
}

Response

Respuesta
{
  "success": true,
  "message": "OK",
  "data": {
    "file": {
      "contentType": "application/pdf",
      "name": "document.pdf",
      "content": "base64"
    }
  }
}