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

Withdraw a validation

Visibility
public
Auth
API key
Permission
validations.records.delete
How-to guide →

Withdraws a validation from the history through a soft delete.

The record keeps its result and can reappear in GET /v1/validations with the with_deleted filter. Only the owning account can withdraw it.

The record, the CEP, the extracted data, and the receipt file are kept. To delete them permanently, there is POST /v1/validations/{id}/purge/prepare, followed by POST /v1/validations/{id}/purge/execute.

Parameters
ParameterInTypeRequiredDescription
id*pathstring (uuid)required

Validation UUID.

Request
curl -X DELETE 'https://api.veriko.mx/v1/validations/{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/validations/{id}
StatusClassDescriptionBody
2042xx
Validation withdrawn. Empty body.
No body
4014xx
Authentication is required or the provided credentials are invalid.
ErrorResponse
4034xx
Insufficient permissions. Also email_verification_required: the account's email cannot receive mail and, until it is fixed or verified, only reading the profile, fixing the email, and logging out are allowed.
ErrorResponse
4044xx
Validation not found or not owned by the account.
ErrorResponse
4224xx
Invalid UUID in path (invalid_uuid).
ErrorResponse
4294xx
Rate limit exceeded (rate_limit_exceeded: wait a few seconds).
RetryAfterError
Errors from DELETE /v1/validations/{id}
StatusCodeExample
401unauthorized

This request requires authentication.

Envelope
meta.request_id
c4d5e6f7a8b99b8a7f6e5d4c
403permission_denied

You do not have permission to access this resource.

Envelope
meta.request_id
d5e6f7a8b9c00c9b8a7f6e5d
404not_found

We could not find what you requested.

Envelope
meta.request_id
e696009aa652
422validation_error

Some data needs fixing.

Envelope
meta.request_id
ac9ee0fda4b7
429rate_limit_exceeded

You exceeded the request limit.

Envelope
meta.request_id
f7a8b9c0d1e22e1d0c9b8a7f
Response headers
  • Retry-After: integer — Seconds to wait before retrying. Matches the endpoint's rate-limit window (typically 60s for list endpoints, 1-5s for in-flight idempotent operations).
  • X-RateLimit-Limit: integer — Configured request cap for this bucket. It is emitted on every 429 and, on the authenticated API, also on successful responses, where it is the per-key cap of the account plan.
  • X-RateLimit-Remaining: integer — Requests remaining in the current window. Always 0 at the moment of the 429; on a successful response of the authenticated API it is what is left of the per-key cap.
  • X-RateLimit-Reset: integer — Absolute Unix epoch (seconds) when the window resets. Emitted on every 429, alongside Retry-After, and on successful responses of the authenticated API.