Error codes
Every error response identifies its cause with a stable code. This page is the full inventory: 1335 codes, of which 1113 are emitted by the API and the rest are registered for translation.
The shape of the error document, and why branching happens on code rather than detail, are covered in the error contract.
Documented codes
Admin (internal operation)
Async terminal codes for validations
code | Status | detail | hint |
|---|---|---|---|
bank_code_unresolvable_for_phone | 422 | The bank for this phone number could not be determined. | Provide the receiving bank. |
intra_bank_no_cep | 422 | Both accounts are at the same bank, and no CEP is issued in that case. | Confirm this payment directly with your bank. |
preflight_failed | 422 | Some data needs fixing. | — |
Authentication and session
code | Status | detail | hint |
|---|---|---|---|
account_deleted | 401 | This account was deleted. | Restore it with the link in the email, within the grace period. |
account_suspended | 401 / 403 | Your account is suspended or revoked. | Contact support to review your case. |
auth_method_denied | 403 | This operation does not accept API keys. | — |
dashboard_token_misuse | 401 | That is a dashboard session. Use your API key for the API. | Use your API key. |
forbidden | 403 | You do not have permission to perform this action. | Ask whoever manages your account for the permission. |
invalid_access_token | 401 | The access token is not valid, has expired or was revoked. | Request a new token. |
invalid_api_key | 401 | The API key is not valid, has expired or was revoked. | Generate a new key in your account. |
oauth_unavailable | 503 | We can't verify access tokens right now. Try again in a few minutes. | Retry in a few minutes with the same token. |
reauthentication_locked | — | Too many failed attempts. Try again in 15 minutes. | — |
service_key_requires_token | 401 | A service key isn't used directly. Exchange it for an access token. | Exchange the key for an access token. |
unauthorized | 401 | This request requires authentication. | Include your API key in the request. |
Beneficiaries
code | Status | detail | hint |
|---|---|---|---|
account_number_invalid_type | — | The account_number field must be a string. | — |
account_number_required | — | The field account_number is required. | — |
beneficiary_not_found_for_account | 404 | None of your beneficiaries has that account. | — |
label_invalid_type | — | The label field must be a string. | — |
query_param_account_required | 400 | The account number is missing from the query. | — |
Bulk imports (validations + beneficiaries)
code | Status | detail | hint |
|---|---|---|---|
amount_invalid | 422 | The amount must be a number greater than zero: {value}. | Send the amount as a number above zero, with no symbol or commas. |
file_required | 422 | The import file is missing. | — |
job_not_editable | 422 | This import can no longer be edited. | — |
no_valid_fields | 422 | The request has no updatable data. | — |
send_date_invalid | 422 | The payment date is not valid: {value}. | Use the YYYY-MM-DD format with a real date. |
Finance
code | Status | detail | hint |
|---|---|---|---|
csv_stream_failed | 500 | We could not generate the CSV file. | — |
export_expired | 410 | That export has expired and its file was deleted. Request it again. | — |
export_limit_reached | 429 | You already have the maximum number of exports in progress. Wait for one to finish before requesting another. | — |
export_not_found | 404 | We could not find that export. | — |
export_not_ready | 409 | That export is not ready yet or could not be generated. | — |
exports_busy | 503 | There are many exports in progress. Try again in a minute. | — |
invalid_export_format | 400 | The CEP format must be xml or pdf. | — |
invalid_month | 400 | The month is missing or has an invalid format. | Use the YYYY-MM format. |
invalid_period | 400 | The period must be the current one or YYYY-MM. | — |
invalid_range | 400 | A date in the range is missing or not valid. | Use the YYYY-MM-DD format. |
no_ceps | 404 | There are no CEPs between {from} and {to}. | — |
pdf_render_failed | 500 | We couldn't generate the PDF. Try again. | — |
range_too_large | 422 | The range has {count} CEPs and the maximum per export is {max}. Choose a shorter period. | — |
xlsx_render_failed | 500 | We could not generate the XLSX file. | — |
Generic field validation
code | Status | detail | hint |
|---|---|---|---|
account_and_candidates_mutually_exclusive | 422 | The beneficiary account and the candidate accounts cannot be sent together. | Send the account if you know it, or the candidates if you do not. |
alias_conflict | 422 | You sent the same field twice with different values. | — |
bin_invalid | 422 | The BIN must have between 6 and 16 digits. | Send only the first 6 to 8 digits of the card. |
bin_not_found | 404 | We could not find that BIN in the card directory. | Check the first 6 to 8 digits of the card. |
candidate_accounts_invalid | 422 | The candidate accounts must be {min} to {max}, valid and distinct. | Fix the account named in each error. |
image_invalid_format | 422 | The receipt must be a JPEG, PNG, WebP, or PDF file. | — |
image_polyglot_detected | 422 | We can't accept the file in '{field}'. Send the bank's original receipt. | — |
image_too_large | 422 | '{field}' exceeds {max} MB. | — |
invalid_account_format | 400 | The account must contain digits only. | Send the full account, digits only. |
invalid_amount | — | The field '{field}' must be a positive number. | — |
invalid_bank_code | 422 | The bank code {value} is not valid. | Choose a code from the bank catalog. |
invalid_card_luhn | — | The field '{field}' is a card-length value but fails Luhn validation. | — |
invalid_clabe_checksum | — | The field '{field}' has an invalid CLABE control digit. | — |
invalid_client_ref | 422 | The reference must be 1 to {max} characters. | — |
invalid_filter | 422 | A filter was repeated and accepts only one value. | — |
invalid_format | 422 | Invalid template format; accepted: {allowed}. | — |
invalid_image | — | The field '{field}' is not a valid base64 image. | — |
invalid_image_format | — | The field '{field}' must be a JPEG, PNG, WebP, or PDF file. | — |
invalid_recipient_is_bank | 422 | The bank recipient flag must be true or false. | Send yes or no, or omit it. |
invalid_request_body | 422 | The request data is not in the expected format. | Send a JSON object. |
invalid_url | — | The field '{field}' must be a valid URL. | — |
invalid_uuid | — | The field '{field}' must be a valid UUID v4. | — |
max_length_exceeded | — | The field '{field}' must not exceed {max} characters. | — |
missing_field | 422 | A required value is missing from the request. | — |
pdf_active_content | 422 | We can't accept the PDF in '{field}'. Send the bank's original. | — |
pdf_encrypted | 422 | The PDF in '{field}' has a password. Send a copy without one. | — |
| 422 | We can't accept the PDF in '{field}'. Send the bank's original. | — | |
pdf_invalid_structure | 422 | The PDF in '{field}' is damaged. Download it again from the bank. | — |
pdf_modified_after_issue | 422 | We can't accept the PDF in '{field}'. Send the bank's original. | — |
pdf_text_layer_too_large | 422 | We can't accept the PDF in '{field}'. Send the bank's original. | — |
pdf_too_many_pages | 422 | The PDF in '{field}' has too many pages. Send only the receipt. | — |
pdf_unsupported_image | 422 | We can't read the PDF in '{field}'. Send it as JPEG or PNG. | — |
spei_calendar_year_invalid | 422 | The year does not have four digits. | — |
validation_error | 422 | Some data needs fixing. | — |
validation_failed | 422 | Some data needs fixing. | — |
Generic resources
code | Status | detail | hint |
|---|---|---|---|
body_empty | 400 | The request has no body. | Send the data as JSON. |
body_too_large | 413 | The body exceeds the {limit} maximum. | Send a smaller file. |
cep_not_available | 404 / 409 | This validation has no CEP available. | — |
dispatch_failed | 424 / 500 / 503 | We could not start the request. | — |
image_not_available | 404 | The image is not available. | — |
internal_error | 500 | Something went wrong on our side. | If it continues, contact support. |
invalid_json | 400 | The request body is not valid JSON. Check its syntax and resend it. | — |
invalid_user_id | 400 / 422 | The user identifier is not in the expected format. | — |
method_not_allowed | 405 | That address does not allow this method. | — |
not_found | 404 | We could not find what you requested. | — |
spei_calendar_year_not_covered | 404 | We do not have the calendar for {year}. | Request a year from {first} to {last}. |
user_not_found | 401 / 404 | We could not find the user. | — |
Idempotency
code | Status | detail | hint |
|---|---|---|---|
idempotency_key_in_progress | 409 | A request with this Idempotency-Key is still being processed. | — |
idempotency_key_reused | 422 | This idempotency key was already used with a different body. | Resend the same body or use a new key. |
invalid_idempotency_key | 400 | The idempotency key format is not valid. | Use 1 to 255 letters, numbers, hyphens or underscores. |
OTP, 2FA, and verification
code | Status | detail | hint |
|---|---|---|---|
confirmation_token_missing | 422 | The confirmation token is missing. Prepare the change again. | — |
email_verification_required | 403 | Verify your email to continue. | — |
invalid_otp_parameters | — | Invalid OTP parameters. | — |
phone_not_verified | — | You must verify your phone number before signing in. | — |
Plan and billing
code | Status | detail | hint |
|---|---|---|---|
stripe_invalid_mode | 500 | We could not complete the charge. | — |
Profile
code | Status | detail | hint |
|---|---|---|---|
language_invalid_type | — | The language field must be a string. | — |
name_empty | — | Name cannot be empty. | — |
name_invalid_type | — | The name field must be a string. | — |
name_too_long | — | Maximum 100 characters allowed. | — |
timezone_invalid_type | — | The timezone field must be a string. | — |
timezone_unsupported | — | Unsupported timezone. | — |
Rate limit
code | Status | detail | hint |
|---|---|---|---|
quota_exceeded | 429 | You used all {limit} validations in your plan for this period. | Wait for your quota to renew or change plans. |
rate_limit_exceeded | 429 | You exceeded the request limit. | Wait a few seconds and try again. |
rate_limited | — | A generic request limit was exceeded. | Wait Retry-After seconds. |
Registration and account
code | Status | detail | hint |
|---|---|---|---|
email_delivery_failed | — | We couldn't deliver the code by email. Try again in a few minutes. | — |
language_unsupported | — | Unsupported language. | — |
password_too_short | — | The field '{field}' must be at least 8 characters. | — |
phone_taken | — | This phone number is already associated with another account. | — |
SPEI transfer validation
code | Status | detail | hint |
|---|---|---|---|
account_ambiguous | 422 | The visible digits of the account match too many accounts. | Send the full beneficiary account. |
account_ambiguous_in_whitelist | 422 | Several saved beneficiaries end the same way, so we cannot tell which one got the payment. | Send the full beneficiary account. |
account_invalid_checksum | 422 | The CLABE is not valid: its check digit does not match. | Check all 18 digits of the CLABE. |
account_invalid_format | 422 | The beneficiary account must contain digits only. | Send only the digits of the account. |
account_invalid_length | 422 | The account has {length} digits and must have 10, 16 or 18. | Check that the account is complete and has no extra digits. |
account_invalid_luhn | 422 | The card number is not valid: its check digit does not match. | Check all 16 digits of the card. |
account_required | 422 | The beneficiary account is missing. | Send the account or, if you do not know it, candidate accounts. |
account_unknown_bin | 422 | We do not recognize the bank of this card. | Use the account CLABE instead of the card number. |
account_unknown_prefix | 422 | The first three digits of the CLABE ({prefix}) do not match any bank. | Check that the CLABE is typed correctly. |
account_unresolvable | 422 | We could not identify the account that received the payment from the image. | Send the full beneficiary account. |
amount_invalid_precision | 422 | The amount cannot have more than {max} decimal places: {value}. | Send the exact payment amount, to the cent. |
amount_required | 422 | The payment amount is missing. | Send the amount as a number above zero, with no symbol or commas. |
card_receiver_mismatch | 422 | The card belongs to {actual_name} ({actual_code}), not to {declared_name} ({declared_code}). | Make the bank and the account match. |
clabe_prefix_not_recognized | — | CLABE prefix not recognized. | — |
clabe_receiver_mismatch | 422 | The CLABE belongs to {actual_name} ({actual_code}), not to {declared_name} ({declared_code}). | Make the bank and the account match. |
image_decompression_bomb | 422 | We can't process the image in '{field}'. Send a new screenshot. | — |
image_dimensions_too_large | 422 | '{field}' exceeds {max} px per side. | — |
image_invalid | 422 | The image is not valid. Send JPEG, PNG, WebP or PDF. | — |
image_mime_mismatch | 422 | We don't recognize the format of '{field}'. Send JPEG, PNG, WebP or PDF. | — |
image_not_readable | 422 | We couldn't read the image. Upload it again. | — |
image_not_readable_receipt | 422 | The image is not a readable receipt. | — |
image_not_retained | 410 | We didn't keep the receipt for this validation. | — |
image_not_spei_receipt | 422 | The image is not a SPEI receipt. We only validate SPEI. | — |
image_or_image_url_required | 422 | Send 'image' (base64) or 'image_url'. | — |
image_strip_failed | 422 | We couldn't process the image in '{field}'. Try again. | — |
image_too_small | 422 | '{field}' is too small to be an image. | — |
invalid_account | 422 | The parsed account only accepts digits, spaces and hyphens, up to 32 characters. | Use only the digits of the CLABE, card or phone number. |
invalid_account_type | 422 | The account type must be CLABE, card or phone. | Use CLABE for 18 digits, card for 16 and phone for 10. |
invalid_retain_image | 422 | 'retain_image' must be true or false. | — |
masked_account_no_suffix | 422 | The receipt hides the account and does not show its last digits. | Send the full beneficiary account. |
masked_account_unresolvable | 422 | The receipt hides the account and we could not identify it. | Send the full beneficiary account. |
numeric_reference_invalid_format | 422 | The numeric reference must contain digits only. | Send only the digits; if it is the tracking key, send it as such. |
numeric_reference_too_long | 422 | The numeric reference cannot be longer than {max} digits. | If it is the tracking key, send it as the tracking key. |
ocr_not_configured | 502 / 503 | Receipt reading is not available. | Meanwhile, send the details manually. |
pdf_multiple_receipts | 422 | The document has more than one receipt. Send each one separately. | — |
purge_token_mismatch | 422 | This token belongs to another validation or account. | — |
purge_validation_in_progress | 409 | The validation is still in progress (status {status}). | — |
receiver_bank_unresolvable | 422 | The receiving bank could not be identified. | Provide the receiving bank or a full beneficiary account. |
recheck_not_eligible | 422 | Only valid validations can be rechecked. | — |
recheck_rate_limited | 429 | This validation was checked a moment ago. | — |
recheck_unavailable | 503 | We could not get the payment status. | — |
recheck_window_expired | 422 | This validation is past the recheck window. | — |
send_date_before_cep_era | 422 | The payment date ({value}) is earlier than {year}; Banxico has no CEPs from those years. | Check that the year is correct. |
send_date_future | 422 | The payment date cannot be in the future: {value}. | Use the day the payment was made. |
send_date_required | 422 | The payment date is missing. | Provide the payment date in YYYY-MM-DD format. |
sender_bank_unresolvable | 422 | The sending bank could not be identified. | Provide the name or code of the sending bank. |
tracking_key_date_mismatch | 422 | The date in the tracking key ({embedded}) does not match the payment date ({value}). | Correct the date or the tracking key. |
tracking_key_invalid_format | 422 | The tracking key has characters that Banxico does not accept. | Copy it exactly as it appears on the receipt. |
tracking_key_invalid_length | 422 | {bank} tracking keys have {expected} characters; this one has {received} and is incomplete. | Copy it exactly as the bank issued it. |
tracking_key_looks_like_reference | 422 | The tracking key looks like a numeric reference. | Send it as a numeric reference or use the full key. |
tracking_key_or_reference_required | 422 | The tracking key or the numeric reference is missing. | Use the numeric reference only if there is no tracking key. |
tracking_key_too_long | 422 | The tracking key has {length} characters and the maximum is {max}. | Send only the tracking key, without additional text. |
tracking_required | 422 | The tracking key or the numeric reference is missing. | If the receipt does not show it, ask the payer. |
validation_purged | 410 | This validation was permanently deleted. | — |
Validation retries
code | Status | detail | hint |
|---|---|---|---|
reactivation_cap_exceeded | 422 | Retries for this validation were already reactivated {max} times, the maximum. | Create a new validation. |
retry_age_exceeded | 422 | This validation is too old for retries. | — |
retry_already_resolved | 422 | Retries for this validation already finished. | — |
retry_not_active | 422 | This validation has no active retries. | — |
retry_not_applicable | 422 | This validation does not accept retries. | — |
retry_not_supported_for_bulk | 422 | Bulk validations do not support retries. | Validate it individually. |
retry_pending_cap_exceeded | 422 | Your account reached its retry limit. | — |
retry_policy_invalid | 422 | The retry policy is not valid. | — |
Webhooks and notifications
code | Status | detail | hint |
|---|---|---|---|
notifications_preference_last_channel | — | This notice cannot be left without any channel that reaches you. | Turn on another channel for this notice before turning that one off. |
telegram_not_linked | 409 | Your account has no linked Telegram chat. | Link Telegram from the dashboard. |
webhook_description_invalid_type | — | The description field must be a string. | — |
webhook_description_too_long | — | The description field must not exceed 255 characters. | — |
webhook_event_invalid | 422 | The event {event} does not exist. | — |
webhook_events_required | — | At least one event must be selected. | — |
webhook_events_too_many | — | Maximum of 10 events per endpoint. | — |
webhook_immediate_invalid_type | — | The immediate field must be a boolean: true or false. | — |
webhook_limit_reached | 422 | Your account already has {limit} webhooks, the maximum. | — |
webhook_status_invalid | — | Status must be "active" or "disabled". | — |
webhook_url_empty | — | URL cannot be empty. | — |
webhook_url_invalid_format | — | Invalid URL format. | — |
webhook_url_invalid_type | — | The url field must be a string. | — |
webhook_url_not_https | — | Webhook URL must use HTTPS in production. | — |
webhook_url_too_long | — | URL must not exceed 2048 characters. | — |
Without translation
These 199 codes are emitted with no entry in the translation catalogue, so their detail arrives in the language it was written in, untranslated.
Registered with no detected emission
These 184 codes are present in the translation catalogue, but source analysis finds no place where they are emitted. They may be retired codes, or codes assembled at run time. They are listed so the inventory is complete; an integration should not count on receiving them.