← Back to schema index

ValidateAccountResponse

Response from `GET /v1/beneficiaries/validate-account?account=`. Structural result for an account number. Under `data.attributes` it reports the detected type, the checksum, the resolved bank metadata (when possible) and, for 17-digit partial CLABEs, the auto-completed form. This endpoint does **not** call Banxico — purely local validation.

Properties

FieldTypeDescription
dataobject

Main response payload. Shape varies by endpoint (object, array, or JSON:API envelope with type, id, attributes).

type*string

JSON:API resource type. Always account_validation.

attributes*object

Structural validation result.

input*string

Raw input as received (un-normalized).

length*integer

Length in digits of the normalized input.

is_numeric*boolean

true when the raw input contained only digits (no separators).

account_type*string

Account type detected by length, or unknown for partial inputs or out-of-range lengths. The recognised types are clabe, card, and phone.

is_complete*boolean

true when the input is complete for its type (18 digits for CLABE, 16 for card, 10 for phone).

checksum_valid*boolean

true when the CLABE control digit verifies, or the card Luhn checksum is valid. For phone always false (not applicable).

computed_control_digitstring | null

CLABE control digit computed from the first 17 digits. null when the type is not CLABE or the calculation does not apply.

auto_completedstring | null

18-digit auto-completed CLABE when the input arrived with 17 digits and the control digit could be calculated. null otherwise.

bankobject | null

Resolved bank metadata, or null when the bank could not be identified. For CLABE derived from the prefix; for card derived from the BIN.

banxico_codestring | null

SPEI code (5 digits) when the bank is mapped.

namestring

Official name of the resolved bank.

cardobject | null

Additional BIN metadata when account_type=card and the BIN matched the directory. null otherwise.

binstring

BIN prefix — the card's first 6 digits — the issuing bank was looked up with.

brandstring | null

Card brand (Visa, Mastercard, etc.).

typestring | null

Card type (debit, credit, etc.).

levelstring | null

Card level (classic, gold, etc.).

country_isostring | null

ISO 3166-1 alpha-2 of the issuing country.

metaobject

Response metadata including API version, route prefix, unique request identifier, and the server timestamp in UTC.

versionstring

API version that processed the request.

api_versionstring

API route prefix version (e.g. v1).

request_idstring

Unique request identifier, 24 hexadecimal characters. Keep it and quote it when you contact support: it locates the request.

datetimeobject

Companion descriptor present in the meta block of every response (and in the meta of outgoing webhook bodies). Lets clients assert the timezone contract without re-reading the spec.

timezone*string

Always UTC: The canonical timezone for every datetime field in the body.

format*string

Always ISO 8601: Explicit Z suffix on every datetime.

field_names_noticeobject

Field-name change notice. It only appears on POST /v1/validate, POST /v1/validate-ocr, GET /v1/validations, GET /v1/validations/{id}, POST /v1/validations/{id}/recheck, GET /v1/summary and GET /v1/finance/summary, the same operations that send the Deprecation and Sunset headers. With legacy_request_fields, the request used Spanish field names; it is also sent on error responses. With legacy_response_fields, the request used English names only and the notice refers to the Spanish fields the response duplicates; it is sent on successful responses only.

code*string

Notice type. legacy_request_fields: the request used Spanish field names. legacy_response_fields: the response includes duplicated Spanish fields that will stop being sent.

message*string

Notice text, in the response language (Accept-Language).

sunset*string (date)

Cut-off date, the same one the Sunset header announces.

documentation_url*string (uri)

Migration guide to the English names, in the response language.

legacy_fieldsarray

Spanish names the request sent. Only with legacy_request_fields.

linksobject

Pagination or related links, present only when the endpoint returns a paginated collection.

Used in operations

  • GET /v1/beneficiaries/validate-account