LogoLogo
Document ValidationsPayment Methods
Latest
Latest
  • D24 APIs
  • Getting Started with D24
  • API Documentation
    • Deposits API
      • Technical and Security Aspects
        • Calculating the Signature
      • Endpoints
        • Deposit Creation Endpoint
          • Notifications
        • PCI Deposit Creation Endpoint
        • Deposit Status Endpoint
        • Payment Methods Endpoint
        • Currency Exchange Endpoint
        • Crypto Exchange Endpoint
        • Country States Codes Endpoint
        • Refund Creation Endpoint
          • Notifications
        • Refund Status Endpoint
      • Payment Methods
        • 🌎America
          • 🇦🇷Argentina
          • 🇧🇴Bolivia
          • 🇧🇷Brazil
          • 🇨🇱Chile
          • 🇨🇦Canada
          • 🇨🇴Colombia
          • 🇪🇨Ecuador
          • 🇬🇹Guatemala
          • 🇲🇽Mexico
          • 🇵🇾Paraguay
          • 🇵🇪Peru
        • 🌍Africa
          • 🇧🇼Botswana
          • 🇨🇲Cameroon
          • 🇨🇬Congo Brazzaville
          • 🇨🇩Congo DRC
          • 🇪🇬Egypt
          • 🇬🇦Gabon
          • 🇬🇭Ghana
          • 🇨🇮Ivory Coast
          • 🇰🇪Kenya
          • 🇳🇬Nigeria
          • 🇲🇼Malawi
          • 🇷🇼Rwanda
          • 🇿🇦South Africa
          • 🇺🇬Uganda
          • 🇿🇲Zambia
          • 🇹🇿Tanzania
        • 🌏Asia
          • 🇧🇩Bangladesh
          • 🇨🇳China
          • 🇭🇰Hong Kong
          • 🇮🇳India
          • 🇮🇩Indonesia
          • 🇯🇵Japan
          • 🇲🇾Malaysia
          • 🇵🇰Pakistan
          • 🇹🇭Thailand
          • 🇹🇷Turkey
          • 🇻🇳Vietnam
      • API Codes
    • Cashouts API
      • Technical and Security Aspects
        • Calculating the Payload-Signature
      • Endpoints
        • Cashout Creation Endpoint
          • Notifications
        • Cashout Status Endpoint
        • Cashout Update Status Endpoint
        • Cashout Cancellation Endpoint
        • Cashout Bank Codes
      • Countries Validations
        • American Countries
          • 🇧🇴Bolivia
          • 🇧🇷Brazil
          • 🇨🇦Canada
          • 🇨🇱Chile
          • 🇨🇴Colombia
          • 🇪🇨Ecuador
          • 🇲🇽Mexico
          • 🇵🇪Peru
          • 🇦🇷Argentina
          • 🇵🇾Paraguay
        • African Countries
          • 🇧🇼Botwsana
          • 🇨🇲Cameroon
          • 🇨🇬Congo Brazzaville
          • 🇨🇩Congo DRC
          • 🇪🇬Egypt
          • 🇬🇦Gabon
          • 🇬🇭Ghana
          • 🇰🇪Kenya
          • 🇲🇼Malawi
          • 🇳🇬Nigeria
          • 🇷🇼Rwanda
          • 🇿🇦SOUTH AFRICA
          • 🇿🇲Zambia
        • Asian Countries
          • 🇧🇩Bangladesh
          • 🇨🇳China
          • 🇮🇳India
          • 🇮🇩Indonesia
          • 🇯🇵Japan
          • 🇲🇾Malaysia
          • 🇹🇭Thailand
          • 🇹🇷Turkey
          • 🇵🇰Pakistan
          • 🇻🇳Vietnam
        • Oceania Countries
          • 🇦🇺Australia
      • API Codes
    • Subscriptions API
      • Technical and Security Aspects
        • Calculating the Signature
      • Subscription Creation Endpoints
        • OneShot Subscription Creation
        • PCI Subscription Creation Endpoint
        • Notifications
      • Subscription Cancellation Endpoint
      • Subscription Status Endpoint
    • Bank Accounts Validation API
      • Technical and Security Aspects
        • Calculating the Signature
      • Endpoints
        • Bank Account Validation Endpoint
        • Pix Key Validation Endpoint
      • API Codes
    • KYC API
      • Technical and Security Aspects
        • Calculating the Signature
      • KYC Endpoint
      • API Codes
    • Reconciliation API
      • Technical and Security Aspects
      • Endpoints
      • API Codes
    • Quickpay
      • Endpoints
        • Deposit creation endpoint
          • Notifications
        • Deposit Status Endpoint
    • Tools for Platforms
      • Technical and Security Aspects
        • Calculating the Signature
      • SubMerchant Creation
        • Notifications
      • SubMerchant Status Endpoint
      • Commission Update Endpoint
  • PLUGINS
    • Shopify
      • Installation
      • Onboarding
      • Customer flow
      • Admin Flow
      • Tutorials
      • FAQ
    • WooCommerce
      • Installation
      • Configuration
  • Deposits Tools
    • Cards SDK
      • With User Interface
        • 🚀Color Customization
      • Without User Interface
    • Java SDK
    • PHP SDK
  • Knowledge Base
    • Countries Specifications
    • Deposits with Cards SDK
      • With User Interface
      • Without User Interface
    • Deposits with 3DS Authentication
    • Deposits with Installments
  • v1 Developers Guide
  • Status Page
Powered by GitBook
On this page
  • Required fields
  • Bank Account Validations
  • CLABE validation algorithm
  • Document Validations
  • Example Request
  • Bank codes
  • Handling Rejected Payouts in Mexico

Was this helpful?

  1. API Documentation
  2. Cashouts API
  3. Countries Validations
  4. American Countries

Mexico

Check the requirements and validations made over the cashouts on Mexico

Required fields

Field

Format

Description

login

String

Cashouts login

pass

String

Cashouts pass

external_id

String (max length: 100)

Transaction's ID on your end

document_id

Beneficiary's document ID

country

MX

currency

MXN / USD

amount

Number with up to 2 decimals

Cashout amount

bank_code

Code specifying the beneficiary's bank. Only mandatory if the bank_account is a debit card

bank_account

Beneficiary's bank account

beneficiary_name

String (max length: 100)

Beneficiary's name

beneficiary_lastname

String (max length: 100)

Beneficiary's last name

Bank Account Validations

Bank name

Bank code

Format

Example

All

-

021790064060296642

All

-

5344867217683750

Todito

10000

10 digits long.

2682883311

Kiosko

10008

Empty String

-

CLABE validation algorithm

Since the first three digits of the CLABE are the bank code, it is not mandatory to send the bank_code field.

Mexico CLABE validation algorithm in Java
public final class Validations {
    static int CLABE_LENGTH = 18;
    
    private static boolean validateClabeLength(String bankAccount) {
        return bankAccount.length() == CLABE_LENGTH;
    }
    
    private static boolean validateClabe(String clabe) {
        if (!validateClabeLength(clabe)) {
            return false;
        } else {
            int sum = 0;
            String clabeWithoutCd = clabe.substring(0, 17);
            Integer[] array = new Integer[]{3, 7, 1};
    
            int checkDigitToVerify;
            for(checkDigitToVerify = 0; checkDigitToVerify < clabeWithoutCd.length(); ++checkDigitToVerify) {
                int digit = clabeWithoutCd.charAt(checkDigitToVerify);
                sum += digit * array[checkDigitToVerify % 3] % 10;
            }
    
            checkDigitToVerify = (10 - sum % 10) % 10;
            int checkDigit = Integer.parseInt(clabe.substring(17));
            return checkDigitToVerify == checkDigit;
        }
    }
}

Document Validations

Example Request

{
    "login": "xxxxxxxx",
    "pass": "xxxxxxxx",
    "external_id": "30000000001",
    "country": "MX",
    "currency": "MXN",
    "amount": 100,
    "document_id": "848392783",
    "bank_account": "021790064060296642",
    "beneficiary_name": "User",
    "beneficiary_lastname": "Test",
    "notification_url": "https://webhook.site/url",
    "type": "json"
}

Bank codes

Bank

Code

BANAMEX

002

BANCOMEXT

006

BANOBRAS

009

BBVA BANCOMER

012

SANTANDER

014

BANJERCITO

019

HSBC

021

BAJIO

030

IXE

032

INBURSA

036

INTERACCIONES

037

MIFEL

042

SCOTIABANK

044

BANREGIO

058

INVEX

059

BANSI

060

AFIRME

062

BANORTE

072

THE ROYAL BANK

102

AMERICAN EXPRESS

103

BAMSA

106

TOKYO

108

JP MORGAN

110

BMONEX

112

VE POR MAS

113

ING

116

DEUTSCHE

124

CREDIT SUISSE

126

AZTECA

127

AUTOFIN

128

BARCLAYS

129

COMPARTAMOS

130

BANCO FAMSA

131

BMULTIVA

132

ACTINVER

133

WALMART

134

NAFIN

135

INTERBANCO

136

BANCOPPEL

137

ABC CAPITAL

138

UBS BANK

139

CONSUBANCO

140

VOLKSWAGEN

141

CIBANCO

143

BBASE

145

BANKAOOL

147

PAGATODO

148

INMOBILIARIO

150

DONDE

151

BANCREA

152

BANCO COVALTO

154

SABADELL

156

BANSEFI

166

HIPOTECARIA FEDERAL

168

MONEXCB

600

GBM

601

MASARI

602

VALUE

605

ESTRUCTURADORES

606

TIBER

607

VECTOR

608

B&B

610

MERRILL LYNCH

615

FINAMEX

616

VALMEX

617

UNICA

618

MAPFRE

619

PROFUTURO

620

CB ACTINVER

621

OACTIN

622

SKANDIA VIDA

623

CBDEUTSCHE

626

ZURICH

627

ZURICHVI

628

SU CASITA

629

CB INTERCAM

630

CI BOLSA

631

BULLTICK CB

632

STERLING

633

FINCOMUN

634

HDI SEGUROS

636

ORDER

637

NUBANK

638

CB JPMORGAN

640

REFORMA

642

STP

646

TELECOMM

647

EVERCORE

648

SKANDIA OPERADORA

649

SEGMTY

651

ASEA

652

KUSPIT

653

SOFIEXPRESS

655

UNAGRA

656

OPCIONES EMPRESARIALES DEL NOROESTE

659

LIBERTAD

670

MERCADO PAGO W

722

CLS

901

INDEVAL

902

Todito

10000

Kiosko

10008

Handling Rejected Payouts in Mexico

For payouts processed in Mexico through the STP provider, please note that rejected payouts may initially appear as "Completed" for a few seconds before being updated to "Rejected." This is a common behavior due to the processing flow in this region. To avoid discrepancies, we recommend that merchants adjust their integration to automatically reject payouts if a "Rejected" notification is received after a "Completed" notification, ensuring accurate handling of cashouts and preventing confusion or customer complaints.

*There are cases in which the banks confirm that a payout was successfully processed and after a few days, it gets returned by the beneficiary's bank therefore the status on our platform will change to REJECTED as well. Those are corner cases but must be considered.

PreviousEcuadorNextPeru

Last updated 4 months ago

Was this helpful?

See

See

See

See

See

: 18 digits long, applies verifier algorithm.

: 15-16 digits long, applies verifier algorithm. Can only be sent through .

for more information about CLABE format.

to check document types and validations.

Notice that the bank_code for Mexico is only mandatory if the bank_account length is between 15 and 16 (Debit Card). In that case,

For the full and most up-to-date list of banks and its codes, please check the

🇲🇽
Click here
Cashout Bank Code endpoint.
CLABE
bank codes
validations below
use the Credit Cards endpoint: https://cc-api-stg.directa24.com/v3/cashout
DEBIT CARD
the Cashout to Debit Cards Endpoint
Click here
document validations
country codes
currency codes