Skip to Content
Social SecurityRegistrationsDelete a registration

Delete a registration

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

  • regimen (integer) : Scheme, 4 digits. Possible values:
  • ccc (integer) : Contribution account code, 11 digits.
  • dni (string) : National identity document.
  • nss (integer) : Social Security number, 12 digits.
  • fecha_real (date) : Registration date, format YYYY-MM-DD. It determines what is deleted (see below).

What is deleted depending on the date

A single endpoint (DELETE /alta) covers two cases, depending on fecha_real:

  • fecha_real later than today: the previous registration, which is not yet effective, is deleted.
  • fecha_real today or earlier: the consolidated registration, that is, the one already in force at the TGSS, is cancelled.
DELETE /alta
{ "regimen": "0111", "ccc": "12345678901", "dni": "12345678B", "nss": "123456789011", "fecha_real": "2023-01-01" }

Response

Respuesta
{ "success": true, "message": "OK" }
Last updated on