DELETEhttps://api.veriko.mx/v1/beneficiaries/{id}

Archive a beneficiary

Audience
public
Auth
API key
Permission
beneficiaries:delete
How-to guide →

Archives the beneficiary account. The record is not deleted: it leaves the active, visible list, and the historical validations referencing it stay intact, so archiving a beneficiary does not affect its validation history.

The operation is reversible. A later registration with the same account_number reactivates the account and responds with HTTP status 200, with meta.reactivated=true in the body.

Archived beneficiaries are listed with GET /v1/beneficiaries?with_archived=1.

Parameters
ParameterInTypeRequiredDescription
id*pathintegerrequired

Numeric beneficiary ID.

e.g. 42
Request
curl -X DELETE 'https://api.veriko.mx/v1/beneficiaries/{id}' \
  -H 'Authorization: Bearer veriko_••••' \
  -H 'Content-Type: application/json'

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response status codesDELETE /v1/beneficiaries/{id}
StatusClassDescriptionBody
2042xxBeneficiary archived. No response body. Idempotent — a concurrent archive returns 204 without emitting a duplicate audit entry.No body
4014xxAuthentication is required or the provided credentials are invalid.ErrorResponse
4034xxInsufficient permissions.ErrorResponse
4044xxThe resource does not exist or is not visible to the clientError
Errors from DELETE /v1/beneficiaries/{id}
StatusCodeExample
401unauthorized

Invalid or missing authentication credentials.

Envelope
meta.request_id
c4d5e6f7a8b99b8a7f6e5d4c
403permission_denied

You do not have permission to access this resource.

Envelope
meta.request_id
d5e6f7a8b9c00c9b8a7f6e5d