← Back to schema index

Validation

JSON:API SPEI validation resource returned by the individual lookup and synchronous validation.

ExtendsJsonApiResourceBase

Properties

FieldTypeDescription
type*string

JSON:API resource type. Always validation.

id*string (uuid)

Unique identifier of the validation (UUID v4).

attributes*object

Canonical validation data.

validation_typestring

Validation mode — direct: Manual entry of the fields; ocr: Reading of the receipt image.

originValidationOrigin | null

Where the validation came from. null for validations created before the origin was recorded.

is_playgroundboolean

true when the result comes from a playground simulation. The simulation runs without Banxico calls, quota consumption, persistence, webhooks, or notifications.

statusstring

Lifecycle state — queued: Awaiting processing; processing: In progress; valid: The CEP was found and matches; not_found: Banxico cannot find the operation; cep_unavailable: Banxico recognizes the transaction but the CEP is not available; invalid: Banxico did not return a recognizable verdict; returned: the transfer was settled and later returned; failed: The validation stopped because of a problem in the data sent; error: The validation stopped because of a service failure.

banxico_statusstring | null

Verdict reported by Banxico. Values: valid, not_found, cep_unavailable, invalid, returned, or error; pending with no verdict. returned: settled and sent back. valid is not final: it moves to returned when Banxico reports the return on recheck (POST /v1/validations/{id}/recheck, or automatic for 72 hours; validation.returned is emitted). error when the request reached Banxico and the service failed; error_code identifies the cause.

processing_time_msinteger | null

Milliseconds spent processing the validation.

request_dataobject

Copy of the original request fields. send_date keeps the sending date exactly as sent, even when Banxico found the payment with another date. Each field is emitted twice: with its Spanish name, deprecated, and with its canonical English name; read the English one, because the Spanish names will be removed in a future version.

send_datestring (date)

Transfer send date (YYYY-MM-DD).

amountnumber

Transfer amount in MXN.

tracking_keystring

Identifier assigned by the sending bank (tracking key).

numeric_referencestring

Numeric series of up to 7 digits identifying the transfer. It is not unique and may repeat.

sender_bankstring

Sending bank: name or SPEI code in direct validation, SPEI code read from the receipt in OCR validation.

receiver_bankstring

Receiving bank: name or SPEI code in direct validation, SPEI code read from the receipt in OCR validation.

beneficiary_accountstring

Receiving account (CLABE, card, or mobile/DiMo).

candidate_accountsarray

Candidate accounts to try, in order, when the receipt account is masked.

recipient_is_bankboolean

true when the receiver is a SPEI participant (bank).

client_refstring

Reference of your own sent in the request (client_ref), returned as sent. It only appears when the request included it. It lets you tie the validation to an order of your own, and GET /v1/validations accepts it as an exact filter. It must not contain personal data.

created_atstring (date-time)

Validation creation timestamp in ISO 8601 UTC.

completed_atstring | null

Date and time of completion, in ISO 8601 UTC. null while it has not finished.

enqueued_atstring | null

Queue-entry timestamp in ISO 8601 UTC.

processing_started_atstring | null

Processing start timestamp in ISO 8601 UTC.

expires_atstring | null

Expiration timestamp for queued validations in ISO 8601 UTC. After this, the validation moves to error with error_code ttl_expired.

etag_versioninteger | null

Incremental version used with If-None-Match in conditional requests.

image_pathstring | null

Relative reference to the receipt, image or PDF, only when validation_type is ocr. It is not published when the file is not kept: see image_retained.

image_retainedboolean

true when the platform keeps the receipt file; false when it does not, because the request sent retain_image=false or because the validation was purged. It only appears on validations of type ocr. With false, GET /v1/validations/{id}/image responds with an HTTP status 410 (with image_not_retained or validation_purged in the body).

purged_atstring (date-time)

Date and time, in ISO 8601 UTC, when the validation was purged. It only appears on a purged validation, which is left as a tombstone: it keeps the verdict, dates, and normalized_data.amount, and loses the file, the CEP, request_data, ocr_result, and banxico_result; its resources respond with an HTTP status 410 (with validation_purged in the body).

ocr_resultobject | null

Fields extracted from the receipt, only when validation_type is ocr. They are what was read, not what Banxico confirmed: the confirmed data is in banxico_result. Each field is emitted twice: with its Spanish name, deprecated, and with its canonical English name; read the English one, because the Spanish names will be removed in the future.

receipt_typestring

Receipt type (cep, estado_cuenta, transferencia, ilegible…).

tracking_keystring

Identifier assigned by the sending bank (tracking key).

numeric_referencestring

Numeric series of up to 7 digits identifying the transfer. It is not unique and may repeat.

send_datestring (date)

Transfer send date (YYYY-MM-DD).

timestring

Transfer time (HH:MM:SS).

amountnumber

Transfer amount in MXN.

sender_bankstring

Sending bank: name or SPEI code in direct validation, SPEI code read from the receipt in OCR validation.

receiver_bankstring

Receiving bank: name or SPEI code in direct validation, SPEI code read from the receipt in OCR validation.

sender_namestring

Sender name.

beneficiary_namestring

Beneficiary name.

beneficiary_accountstring

Receiving account (CLABE, card, or mobile/DiMo).

beneficiary_account_is_partialboolean

true when the receiving account read is partial (incomplete).

beneficiary_account_is_maskedboolean

true when the receiving account arrived masked.

beneficiary_account_visible_firststring

First visible digits of the masked receiving account.

beneficiary_account_visible_laststring

Last visible digits of the masked receiving account.

beneficiary_account_total_length_hintinteger

Estimated total length of the receiving account.

sender_accountstring

Sending account (CLABE, card, or mobile/DiMo).

sender_account_is_partialboolean

true when the sending account read is partial (incomplete).

sender_account_is_maskedboolean

true when the sending account arrived masked.

sender_account_visible_firststring

First visible digits of the masked sending account.

sender_account_visible_laststring

Last visible digits of the masked sending account.

sender_account_total_length_hintinteger

Estimated total length of the sending account.

payment_conceptstring

Payment concept.

other_accounts_detectedarray

Other accounts detected in the receipt.

receipts_detectedinteger

Number of receipts found in the PDF.

confidencenumber

Extraction or normalization confidence score (0–1).

confidence_by_fieldobject

Confidence score (0–1) per extracted field.

sender_banknumber

Confidence score (0–1) for extracting sender_bank.

receiver_banknumber

Confidence score (0–1) for extracting receiver_bank.

beneficiary_accountnumber

Confidence score (0–1) for extracting beneficiary_account.

sender_accountnumber

Confidence score (0–1) for extracting sender_account.

amountnumber

Confidence score (0–1) for extracting amount.

tracking_keynumber

Confidence score (0–1) for extracting tracking_key.

send_datenumber

Confidence score (0–1) for extracting send_date.

ocr_confidencenumber | null

OCR score from 0 to 1, only when validation_type is ocr. It is estimated by the reading process itself and Banxico does not confirm it, so it is not meant for deciding whether to release a payment; banxico_status and account_cross_checked are for that.

normalized_dataobject | null

Fields normalized after OCR extraction, or the winning account in beneficiary_account when a direct validation sent candidate_accounts. A tombstone keeps only the amount here. Each field is emitted twice: with its Spanish name, deprecated, and with its canonical English name; read the English one, because the Spanish names will be removed in the future.

receipt_typestring

Receipt type (cep, estado_cuenta, transferencia, ilegible…).

tracking_keystring

Identifier assigned by the sending bank (tracking key).

numeric_referencestring

Numeric series of up to 7 digits identifying the transfer. It is not unique and may repeat.

send_datestring (date)

Transfer send date (YYYY-MM-DD).

timestring

Transfer time (HH:MM:SS).

amountnumber

Transfer amount in MXN.

sender_bank_codestring

SPEI code of the sending bank.

sender_bank_namestring

Name of the sending bank.

receiver_bank_codestring

SPEI code of the receiving bank.

receiver_bank_namestring

Name of the receiving bank.

beneficiary_accountstring

Receiving account (CLABE, card, or mobile/DiMo).

beneficiary_account_typestring

Receiving account type (clabe, tarjeta, celular).

beneficiary_account_is_maskedboolean

true when the receiving account arrived masked.

sender_accountstring

Sending account (CLABE, card, or mobile/DiMo).

sender_account_is_maskedboolean

true when the sending account arrived masked.

sender_account_visible_firststring

First visible digits of the masked sending account.

sender_account_visible_laststring

Last visible digits of the masked sending account.

sender_namestring

Sender name.

beneficiary_namestring

Beneficiary name.

payment_conceptstring

Payment concept.

confidencenumber

Extraction or normalization confidence score (0–1).

normalization_warningsarray | null

Normalization warnings present. They can explain an unexpected not_found result. If a warning mentions an account, it shows only its last 4 digits.

duplicate_ofobject

Earlier validation that confirmed this transfer in the same account, never another account. It appears only with a valid or returned validation with the same tracking key. When the earlier receipt matches this transfer, its result is reused without re-querying Banxico: a return (returned) always; a valid only when confirmed under an hour ago. normalization_warnings notes the reuse.

id*string (uuid)

Identifier of the earlier validation.

created_at*string (date-time)

Creation date and time of the earlier validation, in ISO 8601 UTC.

account_conflictobject

Conflict between the sent account and the image account. It only appears on ocr validations, when beneficiary_account was sent and the image shows another account. The sent account prevails and is the one queried at Banxico; the field does not change the verdict. It carries only the last 4 digits, and the conflict is added to normalization_warnings.

sent_last4*string

Last 4 digits of the account sent in beneficiary_account.

read_last4*string

Last 4 digits of the account shown in the image (the visible ones, 3 or 4, if it is masked).

truncated_fieldsarray

Fields the receipt shows cut off with an ellipsis. It only appears on ocr validations, when there is at least one. The field value never carries the ellipsis: it holds only the visible part, or is empty when the cut is in the middle or the field is the amount, the date, or the time. A cut-off tracking key is not queried at Banxico (error_code tracking_key_truncated when there is no reference either), and a cut-off reference is discarded. Each field is also added to normalization_warnings.

candidate_matchobject

Which of the candidate_accounts sent won. It only appears when the request carried that list and one of the accounts matched the transfer. The full account is in normalized_data.beneficiary_account; this object says which position of the list it is, so it can be correlated without comparing accounts. It does not change the verdict.

index*integer

Position (from 0) of the winning account in the candidate_accounts array, as sent.

account_last4*string

Last 4 digits of the winning account.

account_cross_checkedboolean

true when the account queried at Banxico is the client's: the account sent in beneficiary_account, one of the candidate_accounts, or a beneficiary's account. With false, a valid confirms the transfer exists, but not that it was paid to the expected account: compare banxico_result.beneficiaryAccount with that account before releasing it. It does not change the verdict.

is_maskedboolean | null

Whether the beneficiary account is masked in the receipt, be it a CLABE, a card or a phone number. It is included only when it is true, and only when validation_type is ocr.

banxico_resultobject | null

Data returned by Banxico, with _payment_status; null when Banxico returned no data. _send_date: date Banxico found the payment with when not the sent one. used, requested and reason are the found date, the queried date and the motive. Values of reason: clave_embedded_date: another date in the key; cutoff_18h: near the 18:00 cutoff; dia_operacion: operation date on the receipt; future_date: next business day on the receipt; date_retry: no usable date. Twins: _send_date and tracking_key_status.

operationDatestring

SPEI business day that Banxico assigned to the operation, as reported by the CEP (YYYY-MM-DD), in Mexico central time. It can differ from the sending date: what is sent from 18:00 on, on a Saturday, on a Sunday, or on a non-business day operates on the next business day.

processingTimestring

Operation time as reported by the CEP (HH:MM:SS), in Mexico central time, not UTC.

speiKeystring

Operation key within the SPEI system (the CEP's ClaveSPEI). Distinct from the tracking key.

trackingKeystring

SPEI tracking key of the operation — the same one sent in the validation request.

digitalSignaturestring

Digital seal of the CEP (sello) — the signature Banxico computes over the operation.

certificateNumberstring

Serial number of the digital certificate Banxico used to seal the CEP.

cadenaCdastring

Original data string of the operation (cadenaCDA): the 47 fields the institution sent to Banxico, pipe-separated, including both dates (operation and capture) and the payment type. Lets the CEP be audited without requesting it again.

senderBankstring

Sending bank of the operation, as identified by the CEP.

senderNamestring

Name of the operation's sender, as reported by the CEP.

senderAccountTypestring

Sender's account type (e.g. CLABE or card), as reported by the CEP.

senderAccountstring

Sender's account number, as reported by the CEP — unmasked in this resource (a private lookup, owned by the validation's account).

senderRfcstring

Sender's RFC (Mexican tax ID), as reported by the CEP.

receiverBankstring

Receiving bank of the operation, as identified by the CEP.

beneficiaryNamestring

Name of the operation's beneficiary, as reported by the CEP.

beneficiaryAccountTypestring

Beneficiary's account type (e.g. CLABE or card), as reported by the CEP.

beneficiaryAccountstring

Beneficiary's account number, as reported by the CEP. Unmasked in this resource (a private lookup, owned by the validation's account). Outgoing webhooks DO mask it to the last 4 digits in banxico_confirmed.beneficiaryAccount (see the webhooks guide).

beneficiaryRfcstring

Beneficiary's RFC (Mexican tax ID), as reported by the CEP.

amountnumber (float)

Operation amount Banxico confirmed via the CEP, in pesos.

ivanumber (float)

VAT (IVA) of the operation reported by the CEP, in pesos.

paymentConceptstring

Payment concept of the operation, as reported by the CEP.

error_messagestring | null

Human-readable error message when terminal.

error_codeValidationErrorCode | null

Stable code of the terminal error, when there is one. After not_found, diagnosis may pinpoint the failing field: identity, account, amount, both, or the payment without isolating the field. A diagnosis does not change the verdict or prove payment. Without a conclusive response, the field remains null. Two codes do not come from diagnosis: tracking_key_truncated (the receipt shows the tracking key cut off and there is no reference; Banxico is not queried and there are no retries) and other_account_exists (there is no payment to the sent account, but there is one to another account shown on the receipt; which one is not disclosed).

batch_idinteger | null

Bulk import job identifier, when applicable.

batch_positioninteger | null

Position within the job, starting at 1.

retry_stateobject

Full retry cycle state. Always present; if retries are not active, enabled is false and policy fields are null. Bulk import rows always have enabled equal to false.

enabledboolean

true when the validation has retries configured, even if its cycle has already ended (terminal_state).

max_retriesinteger | null

Configured maximum number of retries; null when enabled is false.

interval_secondsinteger | null

Interval between retries in seconds, from 300 to 86400; null when enabled is false.

outcomesarray | null

Outcomes that trigger a retry: not_found, cep_unavailable, and error; null when enabled is false.

attempts_completedinteger

Number of retries completed so far.

next_attempt_atTimestampUTC | null

Date of the next retry; null when none is scheduled.

resolved_atTimestampUTC | null

Date when a retry produced valid; null until that occurs.

exhausted_atTimestampUTC | null

Date when attempts were exhausted; null until that occurs.

cancelled_atTimestampUTC | null

Cycle cancellation date; null until that occurs.

terminal_statestring | null

Cycle state: pending, resolved, exhausted, or cancelled. It is null when the validation has no retry cycle.

linksobject

Related links (JSON:API links).

selfstring

Canonical link to the validation details.

cep_xmlstring | null

URL of the CEP in XML format. It only appears when banxico_status is valid, or is returned with a receipt, and the validation was not purged; otherwise the links object is omitted.

cep_pdfstring | null

URL of the CEP in PDF format. It only appears when cep_xml appears and the PDF is stored; an older validation can have the XML without the PDF.

Used in operations

  • POST /v1/validate
  • POST /v1/validate-ocr
  • GET /v1/validations/{id}
  • POST /v1/validations/{id}/recheck