Body for `POST /v1/validate-ocr` with the receipt in `image` or `image_url`; requires at least one of the two fields. `beneficiary_account` and `candidate_accounts` cannot be sent together.
Properties
Field
Type
Description
image
string (byte)
Receipt encoded in base64, as an image or a PDF. If image_url is also provided, only image_url is considered. Accepted formats: JPEG, PNG, WebP, or a PDF of 1 to 3 pages. Maximum size: 12 MB. Maximum dimensions of an image: 12000px per side. Accepts the data:image/...;base64, or data:application/pdf;base64, prefix.
Show moreShow less
image_url
string (uri)
Public HTTPS URL of the receipt. It follows the same format and size limits as image: JPEG, PNG, WebP, or a PDF of 1 to 3 pages, up to 12 MB. An http URL returns HTTP status 422 (with invalid_url_scheme in the body), and a redirect to http is not followed.
Show moreShow less
beneficiary_account
string
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.
Show moreShow less
candidate_accounts
array
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.
Show moreShow less
sender_bank
string
SPEI name or code of the sending bank, to correct the one read from the receipt. It accepts a code of 4 or 5 digits, e.g. 40012, or the name, e.g. BANCO NACIONAL DE MEXICO. When it cannot be resolved, the response is 422.
Show moreShow less
receiver_bank
string
SPEI name or code of the receiving bank, to correct the one read from the receipt. It accepts a code of 4 or 5 digits, e.g. 40002, or the name, e.g. BBVA MEXICO. When it cannot be resolved, the response is 422.
Show moreShow less
recipient_is_bank
boolean
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.
Show moreShow less
retry_policy
object
Automatic retry policy for this validation. If omitted, the policy configured at PUT /v1/users/me/retry-policy is used. Retries do not consume validation quota.
Show moreShow less
enabled
boolean
true when the retry cycle is active. With false, the other fields are ignored.
Show moreShow less
max_retries
integer
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.
Show moreShow less
interval_seconds
integer
Seconds to wait between each retry (300–86400, i.e., 5 minutes to 24 hours).
Show moreShow less
outcomes
array
Outcomes that trigger a retry. By default, they are not_found, cep_unavailable, and error; the combination ["not_found", "cep_unavailable"] excludes error.
Show moreShow less
client_ref
string
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.
Show moreShow less
retain_image
boolean
true when the platform keeps the receipt file after validation.
It is the default. With false, the file is deleted when the
validation ends; the verdict and the extracted data are kept. With
false, the validation publishes image_retained=false and GET /v1/validations/{id}/image responds 410 (image_not_retained).
It also applies with ?async=1. A non-boolean value is rejected
with 422 (invalid_retain_image).