https://api.veriko.mx/v1/validations/{id}/recheckQuery the payment status of a validation again
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
devueltooren_proceso_devolucion, it changesstatusandbanxico_statustoreturned, keeps the CEP, and emits thevalidation.returnedwebhook.
What it accepts:
validcreated at most 72 hours ago: it is queried. Past that period it responds with an HTTP status422(withrecheck_window_expiredin the body).returned: it responds with its current state without querying Banxico, withmeta.recheck.checked_atset tonull.- Any other status: it responds with an HTTP status
422(withrecheck_not_eligiblein 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.nullwhen nothing was queried because the validation was alreadyreturned.changed:truewhen this query moved the validation fromvalidtoreturned.previous_status: Banxico verdict before the query,validorreturned.
The meaning of valid and returned is in the CEP and its verdicts, and event delivery in the webhooks architecture.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id* | path | string (uuid) | required | Validation UUID. |
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.
| Status | Class | Description | Body |
|---|---|---|---|
| 200 | 2xx | 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 |
| 401 | 4xx | Authentication is required or the provided credentials are invalid. | ErrorResponse |
| 403 | 4xx | 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 |
| 404 | 4xx | Validation not found, withdrawn, or not owned by the account ( not_found). | ErrorResponse |
| 410 | 4xx | The validation was purged and this resource no longer exists ( validation_purged). | ErrorResponse |
| 422 | 4xx | 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 |
| 429 | 4xx | 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 |
| 503 | 5xx | 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 |
| Header | Type | Description |
|---|---|---|
Deprecation | string | 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). |
ETag | string | 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. |
Link | string | Migration guide to English field names. |
Sunset | string | Date when Spanish field names stop being accepted (1 March 2027). |
| Status | Code | Example |
|---|---|---|
| 401 | unauthorized | This request requires authentication. Envelope
|
| 403 | permission_denied | You do not have permission to access this resource. Envelope
|
| 404 | not_found | We could not find what you requested. Envelope
|
| 410 | validation_purged | This validation was permanently deleted. Envelope
|
| 422 | validation_error | Some data needs fixing. Envelope
|
| 429 | rate_limit_exceeded | You exceeded the request limit. Envelope
Response headers
|
| 429 | recheck_rate_limited | This validation was checked a moment ago. Envelope
Response headers
|
| 503 | recheck_unavailable | We could not get the payment status. Envelope
Response headers
|