Skip to main content

Create a Payout

This guide provides a quick walkthrough for creating a payout with EBANX, using your existing Direct API integration to complete the process step by step.

Instructions

To create a payout using EBANX Direct API, follow the steps below.

  1. Define your parameters

    Provide the required parameters listed below to create a payout.

    FieldDescription
    integration_keyYour EBANX integration key.
    external_referenceThe unique payout ID provided by you.
    countryThe two-letter country code for the customer country. In this case, we'll use mx (Mexico)
    amountThe amount in the specified currency (currency_code).
    currency_codeThree-letter code of the payout currency. In this case, we'll use MXN (Mexico)
    payeeA JSON object containing the details of the payee of your request.
    Payee Details

    You can either include all payee details in the payout request, or create the payee in advance using the /ws/payee/create endpoint and reference them by document number.

    Document Types Allowed

    These document types are used to identify payees or shareholders.

    Document typeDescription
    RFCFederal taxpayer registration.
    CURPUnique Population Registry Code.
  2. Send payout request to EBANX

    To create a new Payout, you will use the /ws/payout/create endpoint.

    For Mexico only, when you will send all payee's information, the bank_info tag you can only send the bank_details key filled up with the CLABE number. The bank_details key is mandatory. The API will extract bank_name, bank_branch, bank_account and account_type values from CLABE number given in bank_details tag.

    curl -X POST 'https://sandbox.ebanx.com/ws/payout/create' \
    -d 'integration_key=your_test_integration_key' \
    -d 'external_reference=PAYOUT_EBANX_04' \
    -d 'country=mx' \
    -d 'amount=10' \
    -d 'currency_code=USD' \
    -d 'payee[name]=Han Solo' \
    -d 'payee[email]=chew@bac.ca' \
    -d 'payee[phone]=+52312345678' \
    -d 'payee[document]=ROCE000131HNLDNDA0' \
    -d 'payee[document_type]=curp' \
    -d 'payee[bank_info][bank_details]=001180012345678907' \
    -d 'payee[address][zipcode]=20000' \
    -d 'payee[address][state]=AGS' \
    -d 'payee[address][city]=Aguascalientes' \
    -d 'payee[address][street_address]=Fake Street' \
    -d 'payee[address][street_complement]=123'

    To create a payout for an organization entity (company) you should send additional fields holding the shareholders data:

    curl -X POST 'https://sandbox.ebanx.com/ws/payout/create' \
    -d 'integration_key=your_test_integration_key' \
    -d 'external_reference=PAYOUT_EBANX_04' \
    -d 'country=mx' \
    -d 'amount=10' \
    -d 'currency_code=USD' \
    -d 'payee[name]=Han Solo' \
    -d 'payee[email]=chew@bac.ca' \
    -d 'payee[phone]=+52312345678' \
    -d 'payee[document]=ROCE000131HNLDNDA0' \
    -d 'payee[document_type]=rfc' \
    -d 'payee[bank_info][bank_details]=001180012345678907' \
    -d 'payee[address][zipcode]=20000' \
    -d 'payee[address][state]=AGS' \
    -d 'payee[address][city]=Aguascalientes' \
    -d 'payee[address][street_address]=Fake Street' \
    -d 'payee[address][street_complement]=123' \
    -d 'payee[shareholders][0][name]=Roberto Carlos da Silva' \
    -d 'payee[shareholders][0][document]=580176040763abcdef' \
    -d 'payee[shareholders][0][document_type]=CURP' \
    -d 'payee[shareholders][0][email]=roberto.carlos@mail.com.br' \
    -d 'payee[shareholders][0][zipcode]=20000' \
    -d 'payee[shareholders][0][state]=AGS' \
    -d 'payee[shareholders][0][city]=Aguascalientes' \
    -d 'payee[shareholders][0][address]=Rua Fake street' \
    -d 'payee[shareholders][0][complement]=Centro' \
    -d 'payee[shareholders][0][ownership_percent]=51' \
    -d 'payee[shareholders][1][name]=Vanessa Ribeiro' \
    -d 'payee[shareholders][1][document]=571918250046abcdef' \
    -d 'payee[shareholders][1][document_type]=CURP' \
    -d 'payee[shareholders][1][email]=vanessa@mail.com.br' \
    -d 'payee[shareholders][1][zipcode]=20000' \
    -d 'payee[shareholders][1][state]=AGS' \
    -d 'payee[shareholders][1][city]=Aguascalientes' \
    -d 'payee[shareholders][1][address]=Rua Fake Street' \
    -d 'payee[shareholders][1][complement]=Centro' \
    -d 'payee[shareholders][1][ownership_percent]=49'

    For organizations, some fields are mandatory in shareholder set:

    • name
    • document
    • document_type

    And a successful creation will return a JSON Object with type "success" and a payout object with all the details of the newly created Payout.

    {
    "type": "success",
    "payout": {
    "uid": "a1352f5341c3c8c1e40ea9c06715f05778ff35ee",
    "external_reference": "PAYOUT_EBANX_04",
    "status": "OP",
    "request_date": "2020-09-18 13:26:53",
    "status_date": null,
    "paid_date": null,
    "cancel_date": null,
    "payee": {
    "name": "Han Solo",
    "email": "chew@bac.ca",
    "phone": "554112345678",
    "document": "85351346893",
    "document_type": "CPF",
    "birthdate": null,
    "bank_info": {
    "bank_name": "104 Caixa Econ\u00f4mica",
    "bank_branch": "3708",
    "bank_account": "8251777-6",
    "account_type": "C",
    "bank_details": "001"
    }
    },
    "request_amount": "10.00",
    "request_currency": "USD",
    "request_exchange_rate": "1.0000",
    "debit_amount": "10.00",
    "debit_fee": "0.15",
    "debit_amount_total": "10.15",
    "debit_currency": "USD",
    "local_tax_amount": "0.12",
    "local_amount_total": "32.88",
    "local_currency": "USD",
    "local_exchange_rate": "3.2997"
    }
    }
  3. Send commit request to EBANX

    Once the new Payout record is created it'll be committed automatically after 6 hours. Or you can use the /ws/payout/commit endpoint to start the payment process.

    Here's an example of a commit operation using the payout we've just created:

    curl -X POST 'https://sandbox.ebanx.com/ws/payout/commit' \
    -d 'integration_key=your_test_integration_key' \
    -d 'uid=0e495f7a4409c032d54376084b10b9c771e9b39f0'

    Once the new Payout is commited, a JSON Object with type "success" will be returned.

    {
    "type": "success",
    "message": "Payout has already been committed"
    }
  4. Congratulations!

    You have succesfully Created a Payout in Mexico.

Creating a Payout via Dashboard

You can also create a payout through your Dashboard in the Overview section of the Payout tab. Click on Create Payout, fill in the payee information, payout amount and click Create. Additionally, you can create a Mass Payout for up to 600 payouts.

Supported Banks in Mexico

Here is the list of banks supported for payout operations in Mexico.

Understanding Mexican Bank Identifiers:

In Mexico, bank accounts are identified using the CLABE (Clave Bancaria Estandarizada), an 18-digit standard number.

  • The first three digits of every CLABE identify the specific bank (e.g., 012 for BBVA, 002 for Banamex).

  • This three-digit bank code is the same as the last three digits of the bank's official institution key.

Institution KeyBank Code (from CLABE)Institution Name
40133133ACTINVER
40062062AFIRME
90721721albo
90706706ARCUS FI
90659659ASP INTEGRA OPC
40127127AZTECA
37166166BaBien
40030030BAJIO
40002002BANAMEX
40154154BANCO COVALTO
37006006BANCOMEXT
40137137BANCOPPEL
40160160BANCO S3
40152152BANCREA
37019019BANJERCITO
40147147BANKAOOL
40106106BANK OF AMERICA
40159159BANK OF CHINA
37009009BANOBRAS
40072072BANORTE
40058058BANREGIO
40060060BANSI
2001001BANXICO
40129129BARCLAYS
40145145BBASE
40012012BBVA MEXICO
40112112BMONEX
90677677CAJA POP MEXICA
90683683CAJA TELEFONIST
90715715CASHI CUENTA
90630630CB INTERCAM
90631631CI BOLSA
40124124CITI MEXICO
90901901CLS
90903903CoDi Valida
40130130COMPARTAMOS
40140140CONSUBANCO
90725725COOPDESARROLLO
90652652CREDICAPITAL
90688688CREDICLUB
90680680CRISTOBAL COLON
90723723Cuenca
90729729Dep y Pag Dig
40151151DONDE
90616616FINAMEX
90634634FINCOMUN
90734734FINCO PAY
90699699FONDEADORA
90685685FONDO (FIRA)
90601601GBM
40167167HEY BANCO
37168168HIPOTECARIA FED
40021021HSBC
40155155ICBC
40036036INBURSA
90902902INDEVAL
40150150INMOBILIARIO
40136136INTERCAM BANCO
40059059INVEX
40110110JP MORGAN
40128128KAPITAL
90661661KLAR
90653653KUSPIT
90670670LIBERTAD
90602602MASARI
90722722Mercado Pago W
90720720MexPago
40042042MIFEL
40158158MIZUHO BANK
90600600MONEXCB
40108108MUFG
40132132MULTIVA BANCO
37135135NAFIN
90638638NU MEXICO
90710710NVIO
40148148PAGATODO
90732732Peibo
90620620PROFUTURO
40156156SABADELL
40014014SANTANDER
40044044SCOTIABANK
40157157SHINHAN
90728728SPIN BY OXXO
90646646STP
90703703TESORED
90684684TRANSFER
40138138UALA
90656656UNAGRA
90617617VALMEX
90605605VALUE
90608608VECTOR
40113113VE POR MAS
40141141VOLKSWAGEN

Still need help?

Help Image

We hope this article was helpful. If you still have questions, you can explore the following options: