https://api.veriko.mx/v1/validations/statsValidation statistics for the user
How-to guide →Returns the account's validations counted in two different ways, and the distinction matters:
- The top-level counters —
valid,not_found,cep_unavailable,error,pending— count by verdict, which is what Banxico answered.otheris the remainder, in practice the invalid rows. by_statuscounts by lifecycle state (queued,processing,valid, …), the same axis the list filters on. Its buckets sum to the total.
by_type splits between direct and OCR validation, and deleted counts the ones withdrawn from the history.
The filters are the same as on GET /v1/validations — dates, type, search, bank, amount, playground, batch, and deleted — with one exception: status is accepted and does not change the numbers, because each counter carries its own criterion.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
amount_max | query | number (float) | optional | Inclusive maximum amount (normalized_data, fallback request_data). e.g.50000 |
amount_min | query | number (float) | optional | Inclusive minimum amount (normalized_data, fallback request_data). e.g.1000.5 |
bank | query | string | optional | Restricts the counters to the bank's 3-digit SPEI code (receiver or sender). Digits only, max 5 characters. e.g.012 |
batch_id | query | integer | optional | Restricts the counters to the batch of a bulk import. e.g.42 |
from | query | string (date) | optional | Inclusive start date (YYYY-MM-DD). e.g.2025-01-01 |
playground | query | string | optional | Keeps only validations made from the playground. The only accepted value is 1 |
retry_state | query | string | optional | Filter by automatic retry cycle status: pending |
search | query | string | optional | Search by tracking key, numeric reference, sender, and receiver. e.g.MXBA |
status | query | string | optional | Accepted, and it does not change the numbers. It exists so a UI can forward the same filter set it uses on valid |
to | query | string (date) | optional | Inclusive end date (YYYY-MM-DD). e.g.2025-03-31 |
type | query | string | optional | How the validation was requested: direct |
with_deleted | query | string | optional | Whether to include deleted validations. 0 |
curl -X GET 'https://api.veriko.mx/v1/validations/stats' \
-H 'Authorization: Bearer veriko_••••'Python example — coming soon.
JavaScript example — coming soon.
PHP example — coming soon.
| Field | Type | Description |
|---|---|---|
type | string | JSON:API resource type (always validation_stats |
attributes | object | Aggregated counters of the user's validations (matching the filters). The top-level buckets count by |
total | integer | Total count of the user's validations matching the filters. Counts every row regardless of Banxico status. e.g.47 |
valid | integer | Subset of the total with 35 |
not_found | integer | Subset of the total with 5 |
cep_unavailable | integer | Subset of the total with 2 |
error | integer | Subset of the total with 1 |
pending | integer | Subset of the total with 1 |
deleted | integer | Count of the user's soft-deleted validations (matching the same filters). e.g.2 |
other | integer | Remainder of the total after subtracting 1 |
by_type | object | Breakdown by validation type. |
direct* | integer | Direct validations (by CLABE/card/phone fields). e.g.30 |
ocr* | integer | OCR validations (from a receipt image). e.g.17 |
by_status | object | Breakdown by lifecycle status (the |
queued* | integer | Validations queued, not yet processed (async). e.g.3 |
processing* | integer | Validations being processed against Banxico right now. e.g.1 |
valid* | integer | Validations with lifecycle status 35 |
not_found* | integer | Validations with status 5 |
cep_unavailable* | integer | Validations with status 2 |
invalid* | integer | Validations with status 1 |
failed* | integer | Validations with status 0 |
error* | integer | Validations with status 1 |
| Status | Class | Description | Body |
|---|---|---|---|
| 200 | 2xx | Aggregated validation statistics for the user. | No body |
| 401 | 4xx | Authentication is required or the provided credentials are invalid. | ErrorResponse |
| 422 | 4xx | A filter carries a value outside its allowed list. The code is invalid_filter and the detail names the parameter. | ErrorResponse |
| Status | Code | Example |
|---|---|---|
| 401 | unauthorized | Invalid or missing authentication credentials. Envelope
|
| 422 | invalid_filter | The `retry_state` filter has an unsupported value. Envelope
|