POSThttps://api.veriko.mx/v1/validations/{id}/recheck

Query the payment status of a validation again

Visibility
public
Auth
API key
Permission
validations.retries.manage
How-to guide →

Queries Banxico again for the payment status of a valid validation and, if it reports the payment as returned, moves it to returned.

A valid verdict is a snapshot of the moment of the query: the CEP proves that the transfer settled, not that the money stayed in the beneficiary's account, and the receiving institution can return it hours or days later. This operation makes only that query, with the data the validation already stored:

  • It uses no AI and does not download another CEP.
  • It consumes no quota and does not count as a new validation.
  • It stores Banxico's answer in banxico_result._payment_status.
  • With the status devuelto or en_proceso_devolucion, it changes status and banxico_status to returned, keeps the CEP, and emits the validation.returned webhook.

What it accepts:

  • valid created at most 72 hours ago: it is queried. Past that period it responds with an HTTP status 422 (with recheck_window_expired in the body).
  • returned: it responds with its current state without querying Banxico, with meta.recheck.checked_at set to null.
  • Any other status: it responds with an HTTP status 422 (with recheck_not_eligible in the body).

Each validation accepts one query every 10 minutes. If it is repeated sooner, it responds with an HTTP status 429 (with recheck_rate_limited in the body) and the Retry-After header gives the seconds left. That cap adds to the API key ones.

The response is the same validation that GET /v1/validations/{id} returns, with the result of the check in meta.recheck:

  • checked_at: Date and time of the query to Banxico, in ISO 8601 UTC. null when nothing was queried because the validation was already returned.
  • changed: true when this query moved the validation from valid to returned.
  • previous_status: Banxico verdict before the query, valid or returned.

The meaning of valid and returned is in the CEP and its verdicts, and event delivery in the webhooks architecture.

Parameters
ParameterInTypeRequiredDescription
id*pathstring (uuid)required

Validation UUID.

Request
curl -X POST 'https://api.veriko.mx/v1/validations/{id}/recheck' \
  -H 'Authorization: Bearer veriko_••••' \
  -H 'Content-Type: application/json'

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response status codesPOST /v1/validations/{id}/recheck
StatusClassDescriptionBody
2002xx
Payment status queried. Returns the validation and, in meta.recheck, when it was queried, whether it changed to returned, and what verdict it had before.
Body without schema
4014xx
Authentication is required or the provided credentials are invalid.
ErrorResponse
4034xx
The validations.retries.manage permission is missing (permission_denied). The "Validate" and "Full access" API key presets include it. With "Read only", or with an explicit permission list that leaves it out, this operation responds 403.
ErrorResponse
4044xx
Validation not found, withdrawn, or not owned by the account (not_found).
ErrorResponse
4104xx
The validation was purged and this resource no longer exists (validation_purged).
ErrorResponse
4224xx
The validation cannot be queried: its status is neither valid nor returned (code recheck_not_eligible, with the status in meta.status) or it is older than the window (code recheck_window_expired, with the window in meta.window_hours). Invalid UUID (invalid_uuid).
ErrorResponse
4294xx
The validation was queried less than 10 minutes ago (code recheck_rate_limited). Retry-After and meta.retry_after give the seconds left. The API key request limit (rate_limit_exceeded) responds the same way.
RetryAfterError
5035xx
Banxico did not return a readable status, or the status query is switched off (code recheck_unavailable). The validation does not change and keeps its interval. Retry-After and meta.retry_after suggest waiting 60 seconds.
RetryAfterError
Response headers200
HeaderTypeDescription
Deprecationstring
Date when this operation was marked as deprecated (11 November 2026, RFC 8594). Spanish field names stop being accepted on 1 March 2027 (see the Sunset header).
ETagstring
Weak ETag of the validation after the query. It follows the W/"{etag_version}-{status}" format and rises on every query, even when the verdict does not change.
Linkstring
Migration guide to English field names.
Sunsetstring
Date when Spanish field names stop being accepted (1 March 2027).
Errors from POST /v1/validations/{id}/recheck
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
f587401d1c18
410validation_purged

This validation was permanently deleted.

Envelope
meta.request_id
1a2b3c4d5e6ff6e5d4c3b2a1
422validation_error

Some data needs fixing.

Envelope
meta.request_id
ab1a5f68af08
429rate_limit_exceeded

You exceeded the request limit.

Envelope
meta.request_id
ab1a5f68af08
Response headers
  • Retry-After: integer — Seconds left before this validation can be queried again.
  • 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.
429recheck_rate_limited

This validation was checked a moment ago.

Envelope
meta.request_id
ab1a5f68af08
Response headers
  • Retry-After: integer — Seconds left before this validation can be queried again.
  • 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.
503recheck_unavailable

We could not get the payment status.

Envelope
meta.request_id
ab1a5f68af08
Response headers
  • Retry-After: integer — Seconds suggested before retrying.