← Back to schema index

ValidationRequest

Body for `POST /v1/validate` for a manual SPEI validation; requires `tracking_key` or `numeric_reference`, and exactly one of the two ways to give the account: `beneficiary_account` or `candidate_accounts`. `send_date` is conditionally optional: when missing or unusable, the service tries candidate dates (date retries, RN-VALID-013).

Properties

FieldTypeDescription
send_datestring (date)

Sending date of the transfer, in ISO 8601 format, YYYY-MM-DD. Banxico locates the CEP with it. It is conditionally optional: when missing or unusable, the service tries other dates. With nothing to guess from, the request is rejected with 422.

amount*number (double)

Transfer amount in Mexican pesos (MXN), greater than zero, with up to two decimal places and at most 13 integer digits. Scientific notation (e.g. 1e-5) is rejected when sent as text.

tracking_keystring

Transfer tracking key, from 1 to 30 characters. Accepts letters, numbers, spaces, and the punctuation Banxico allows, but not <, >, or \. Required when numeric_reference is not sent. When both are sent, Banxico is queried by the key alone.

numeric_referencestring

Numeric transfer reference, from 1 to 7 digits. Accepts only numbers and spaces. Required when tracking_key is not sent. When tracking_key is sent, the query uses only the key; a malformed reference is ignored and a warning is left.

sender_bankstring

SPEI name or code of the sending bank. When it is missing or incorrect, the tracking key may provide it. If it still cannot be resolved, the response is an HTTP status 422.

receiver_bankstring

SPEI name / code of the receiving bank. Optional when the bank can be identified from beneficiary_account. If it cannot be resolved, the response is HTTP status 422.

beneficiary_accountstring

Receiving account for the transfer. Accepts a CLABE (18 digits), a card (16 digits), or a DiMo phone (10 digits). It cannot be sent together with candidate_accounts: sending both returns 422.

candidate_accountsarray

Accounts among which the receiving one is, when it is not known. It replaces beneficiary_account: sending both returns 422. Between 2 and 10 accounts, CLABE (18 digits), card (16) or DiMo phone (10), with a valid check digit and no repeats.

recipient_is_bankboolean

true when the transfer beneficiary is the receiving institution itself («Pago a Banco» in the Banxico CEP): payment of a card, a loan, or services to the institution. false for a transfer to an account holder. It is the default. 0 and 1 are also accepted.

retry_policyobject

Automatic retry policy for this validation. If omitted, the general policy configured for the user is applied. Retries do NOT consume validation quota.

enabledboolean

true when the retry cycle is active. With false, the other fields are ignored.

max_retriesinteger

Maximum number of automatic retries. Once reached, the cycle enters the exhausted terminal state. The allowed limit depends on the plan: Gratis (free) 1, Personal 3, Negocio (business) 5, Empresa (enterprise) 10 and Volumen (volume) 20; exceeding it returns 422 retry_policy_invalid.

interval_secondsinteger

Seconds to wait between each retry (300–86400, i.e., 5 minutes to 24 hours).

outcomesarray

Outcomes that trigger a retry. By default, they are not_found, cep_unavailable, and error; the combination ["not_found", "cep_unavailable"] excludes error.

client_refstring

Reference of your own that is returned as sent in the validation, in its webhooks, and as an exact filter of GET /v1/validations. Text of 1 to 64 characters, without line breaks or emoji; it is trimmed before being stored. A value that does not comply is rejected with 422 (invalid_client_ref). It must not contain personal data.

Variants

Must include at least one of these fields:

  • tracking_key
  • numeric_reference

Used in operations

  • POST /v1/validate