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

codeStatusdetailhint
bank_code_unresolvable_for_phone 422The bank for this phone number could not be determined.Provide the receiving bank.
intra_bank_no_cep 422Both accounts are at the same bank, and no CEP is issued in that case.Confirm this payment directly with your bank.
preflight_failed 422Some data needs fixing.—

Authentication and session

codeStatusdetailhint
account_deleted 401This account was deleted.Restore it with the link in the email, within the grace period.
account_suspended 401 / 403Your account is suspended or revoked.Contact support to review your case.
auth_method_denied 403This operation does not accept API keys.—
dashboard_token_misuse 401That is a dashboard session. Use your API key for the API.Use your API key.
forbidden 403You do not have permission to perform this action.Ask whoever manages your account for the permission.
invalid_access_token 401The access token is not valid, has expired or was revoked.Request a new token.
invalid_api_key 401The API key is not valid, has expired or was revoked.Generate a new key in your account.
oauth_unavailable 503We 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 401A service key isn't used directly. Exchange it for an access token.Exchange the key for an access token.
unauthorized 401This request requires authentication.Include your API key in the request.

Beneficiaries

codeStatusdetailhint
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 404None of your beneficiaries has that account.—
label_invalid_type —The label field must be a string.—
query_param_account_required 400The account number is missing from the query.—

Bulk imports (validations + beneficiaries)

codeStatusdetailhint
amount_invalid 422The amount must be a number greater than zero: {value}.Send the amount as a number above zero, with no symbol or commas.
file_required 422The import file is missing.—
job_not_editable 422This import can no longer be edited.—
no_valid_fields 422The request has no updatable data.—
send_date_invalid 422The payment date is not valid: {value}.Use the YYYY-MM-DD format with a real date.

Finance

codeStatusdetailhint
csv_stream_failed 500We could not generate the CSV file.—
export_expired 410That export has expired and its file was deleted. Request it again.—
export_limit_reached 429You already have the maximum number of exports in progress. Wait for one to finish before requesting another.—
export_not_found 404We could not find that export.—
export_not_ready 409That export is not ready yet or could not be generated.—
exports_busy 503There are many exports in progress. Try again in a minute.—
invalid_export_format 400The CEP format must be xml or pdf.—
invalid_month 400The month is missing or has an invalid format.Use the YYYY-MM format.
invalid_period 400The period must be the current one or YYYY-MM.—
invalid_range 400A date in the range is missing or not valid.Use the YYYY-MM-DD format.
no_ceps 404There are no CEPs between {from} and {to}.—
pdf_render_failed 500We couldn't generate the PDF. Try again.—
range_too_large 422The range has {count} CEPs and the maximum per export is {max}. Choose a shorter period.—
xlsx_render_failed 500We could not generate the XLSX file.—

Generic field validation

codeStatusdetailhint
account_and_candidates_mutually_exclusive 422The 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 422You sent the same field twice with different values.—
bin_invalid 422The BIN must have between 6 and 16 digits.Send only the first 6 to 8 digits of the card.
bin_not_found 404We could not find that BIN in the card directory.Check the first 6 to 8 digits of the card.
candidate_accounts_invalid 422The candidate accounts must be {min} to {max}, valid and distinct.Fix the account named in each error.
image_invalid_format 422The receipt must be a JPEG, PNG, WebP, or PDF file.—
image_polyglot_detected 422We can't accept the file in '{field}'. Send the bank's original receipt.—
image_too_large 422'{field}' exceeds {max} MB.—
invalid_account_format 400The account must contain digits only.Send the full account, digits only.
invalid_amount —The field '{field}' must be a positive number.—
invalid_bank_code 422The 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 422The reference must be 1 to {max} characters.—
invalid_filter 422A filter was repeated and accepts only one value.—
invalid_format 422Invalid 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 422The bank recipient flag must be true or false.Send yes or no, or omit it.
invalid_request_body 422The 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 422A required value is missing from the request.—
pdf_active_content 422We can't accept the PDF in '{field}'. Send the bank's original.—
pdf_encrypted 422The PDF in '{field}' has a password. Send a copy without one.—
pdf_hidden_content 422We can't accept the PDF in '{field}'. Send the bank's original.—
pdf_invalid_structure 422The PDF in '{field}' is damaged. Download it again from the bank.—
pdf_modified_after_issue 422We can't accept the PDF in '{field}'. Send the bank's original.—
pdf_text_layer_too_large 422We can't accept the PDF in '{field}'. Send the bank's original.—
pdf_too_many_pages 422The PDF in '{field}' has too many pages. Send only the receipt.—
pdf_unsupported_image 422We can't read the PDF in '{field}'. Send it as JPEG or PNG.—
spei_calendar_year_invalid 422The year does not have four digits.—
validation_error 422Some data needs fixing.—
validation_failed 422Some data needs fixing.—

Generic resources

codeStatusdetailhint
body_empty 400The request has no body.Send the data as JSON.
body_too_large 413The body exceeds the {limit} maximum.Send a smaller file.
cep_not_available 404 / 409This validation has no CEP available.—
dispatch_failed 424 / 500 / 503We could not start the request.—
image_not_available 404The image is not available.—
internal_error 500Something went wrong on our side.If it continues, contact support.
invalid_json 400The request body is not valid JSON. Check its syntax and resend it.—
invalid_user_id 400 / 422The user identifier is not in the expected format.—
method_not_allowed 405That address does not allow this method.—
not_found 404We could not find what you requested.—
spei_calendar_year_not_covered 404We do not have the calendar for {year}.Request a year from {first} to {last}.
user_not_found 401 / 404We could not find the user.—

Idempotency

codeStatusdetailhint
idempotency_key_in_progress 409A request with this Idempotency-Key is still being processed.—
idempotency_key_reused 422This idempotency key was already used with a different body.Resend the same body or use a new key.
invalid_idempotency_key 400The idempotency key format is not valid.Use 1 to 255 letters, numbers, hyphens or underscores.

OTP, 2FA, and verification

codeStatusdetailhint
confirmation_token_missing 422The confirmation token is missing. Prepare the change again.—
email_verification_required 403Verify 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

codeStatusdetailhint
stripe_invalid_mode 500We could not complete the charge.—

Profile

codeStatusdetailhint
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

codeStatusdetailhint
quota_exceeded 429You used all {limit} validations in your plan for this period.Wait for your quota to renew or change plans.
rate_limit_exceeded 429You 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

codeStatusdetailhint
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

codeStatusdetailhint
account_ambiguous 422The visible digits of the account match too many accounts.Send the full beneficiary account.
account_ambiguous_in_whitelist 422Several saved beneficiaries end the same way, so we cannot tell which one got the payment.Send the full beneficiary account.
account_invalid_checksum 422The CLABE is not valid: its check digit does not match.Check all 18 digits of the CLABE.
account_invalid_format 422The beneficiary account must contain digits only.Send only the digits of the account.
account_invalid_length 422The 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 422The card number is not valid: its check digit does not match.Check all 16 digits of the card.
account_required 422The beneficiary account is missing.Send the account or, if you do not know it, candidate accounts.
account_unknown_bin 422We do not recognize the bank of this card.Use the account CLABE instead of the card number.
account_unknown_prefix 422The first three digits of the CLABE ({prefix}) do not match any bank.Check that the CLABE is typed correctly.
account_unresolvable 422We could not identify the account that received the payment from the image.Send the full beneficiary account.
amount_invalid_precision 422The amount cannot have more than {max} decimal places: {value}.Send the exact payment amount, to the cent.
amount_required 422The payment amount is missing.Send the amount as a number above zero, with no symbol or commas.
card_receiver_mismatch 422The 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 422The CLABE belongs to {actual_name} ({actual_code}), not to {declared_name} ({declared_code}).Make the bank and the account match.
image_decompression_bomb 422We can't process the image in '{field}'. Send a new screenshot.—
image_dimensions_too_large 422'{field}' exceeds {max} px per side.—
image_invalid 422The image is not valid. Send JPEG, PNG, WebP or PDF.—
image_mime_mismatch 422We don't recognize the format of '{field}'. Send JPEG, PNG, WebP or PDF.—
image_not_readable 422We couldn't read the image. Upload it again.—
image_not_readable_receipt 422The image is not a readable receipt.—
image_not_retained 410We didn't keep the receipt for this validation.—
image_not_spei_receipt 422The image is not a SPEI receipt. We only validate SPEI.—
image_or_image_url_required 422Send 'image' (base64) or 'image_url'.—
image_strip_failed 422We couldn't process the image in '{field}'. Try again.—
image_too_small 422'{field}' is too small to be an image.—
invalid_account 422The 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 422The 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 422The receipt hides the account and does not show its last digits.Send the full beneficiary account.
masked_account_unresolvable 422The receipt hides the account and we could not identify it.Send the full beneficiary account.
numeric_reference_invalid_format 422The numeric reference must contain digits only.Send only the digits; if it is the tracking key, send it as such.
numeric_reference_too_long 422The numeric reference cannot be longer than {max} digits.If it is the tracking key, send it as the tracking key.
ocr_not_configured 502 / 503Receipt reading is not available.Meanwhile, send the details manually.
pdf_multiple_receipts 422The document has more than one receipt. Send each one separately.—
purge_token_mismatch 422This token belongs to another validation or account.—
purge_validation_in_progress 409The validation is still in progress (status {status}).—
receiver_bank_unresolvable 422The receiving bank could not be identified.Provide the receiving bank or a full beneficiary account.
recheck_not_eligible 422Only valid validations can be rechecked.—
recheck_rate_limited 429This validation was checked a moment ago.—
recheck_unavailable 503We could not get the payment status.—
recheck_window_expired 422This validation is past the recheck window.—
send_date_before_cep_era 422The payment date ({value}) is earlier than {year}; Banxico has no CEPs from those years.Check that the year is correct.
send_date_future 422The payment date cannot be in the future: {value}.Use the day the payment was made.
send_date_required 422The payment date is missing.Provide the payment date in YYYY-MM-DD format.
sender_bank_unresolvable 422The sending bank could not be identified.Provide the name or code of the sending bank.
tracking_key_date_mismatch 422The date in the tracking key ({embedded}) does not match the payment date ({value}).Correct the date or the tracking key.
tracking_key_invalid_format 422The 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 422The tracking key looks like a numeric reference.Send it as a numeric reference or use the full key.
tracking_key_or_reference_required 422The tracking key or the numeric reference is missing.Use the numeric reference only if there is no tracking key.
tracking_key_too_long 422The tracking key has {length} characters and the maximum is {max}.Send only the tracking key, without additional text.
tracking_required 422The tracking key or the numeric reference is missing.If the receipt does not show it, ask the payer.
validation_purged 410This validation was permanently deleted.—

Validation retries

codeStatusdetailhint
reactivation_cap_exceeded 422Retries for this validation were already reactivated {max} times, the maximum.Create a new validation.
retry_age_exceeded 422This validation is too old for retries.—
retry_already_resolved 422Retries for this validation already finished.—
retry_not_active 422This validation has no active retries.—
retry_not_applicable 422This validation does not accept retries.—
retry_not_supported_for_bulk 422Bulk validations do not support retries.Validate it individually.
retry_pending_cap_exceeded 422Your account reached its retry limit.—
retry_policy_invalid 422The retry policy is not valid.—

Webhooks and notifications

codeStatusdetailhint
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 409Your 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 422The 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 422Your 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.