LogoLogo
  • OKP APIs
  • Getting Started with OKP
  • API Documentation
    • Deposits API
      • Technical and Security Aspects
        • Calculating the Signature
      • Endpoints
        • Deposit Creation Endpoint
          • Notifications
        • Transactional Account Endpoint
          • Understanding the Solution
        • 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
          • πŸ‡§πŸ‡·Brazil
            • PIX Biometric
      • 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
          • πŸ‡§πŸ‡·Brazil
      • 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
    • Quickpay
      • Endpoints
        • Deposit creation endpoint
          • Notifications
        • Deposit status endpoint
    • Bank Account Validation
      • Technical and Security Aspects
        • Calculating the Signature
      • Endpoints
        • Bank Account Validation Endpoint
          • Pix Key Validation and Details Endpoint
      • API Codes
    • KYC API
      • Technical and Security Aspects
        • Calculating the Signature
      • KYC Endpoint
      • API Codes
  • Deposits Tools
    • Cards SDK
      • With User Interface
        • πŸš€Color Customization
      • Without User Interface
    • Java SDK
    • PHP SDK
  • Knowledge Base
    • Deposits with Cards SDK
      • With User Interface
      • Without User Interface
    • Countries Specifications
  • PLUGINS
    • WooCommerce
      • Installation
      • Configuration
  • Status Page
Powered by GitBook
On this page
  • Required fields
  • Bank Account Validations
  • Bank Branch Validations
  • Account Types
  • Example Request
  • Types of Keys
  • Registred bank accounts
  • Bank Codes
  1. API Documentation
  2. Cashouts API
  3. Countries Validations
  4. American Countries

Brazil

Check the requirements and validations made over the cashouts on Brazil

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 CPF.

country

BR

currency

BRL / USD

amount

Number with up to 2 decimals

Cashout amount

bank_code

Code specifying the beneficiary's bank

bank_account

Beneficiary's bank account

bank_branch

Beneficiary's bank branch

account_type

Beneficiary's bank account type

beneficiary_name

String (max length: 100)

Beneficiary's name

Bank Account Validations

Bank name

Bank code

Format

Example

Banco do Brasil

001

Format: DDDDDDDDD-X or DDDDDDDDDX where D are digits and X is a digit or the letter 'X'. The number of digits may change, but can't exceed 10 digits

1234567890, 123456789-0, 123456789-X, 123456789X

Santander

033

Format: DDDDDDDDD, DDDDDDDDDD, DDDDDDDDD-D, DDDDDDDDD-D where D are digits. The number of digits may change, but will range from 9 to 10 digits.

12345678, 12345678-9

Banrisul

041

Format: DDDDDDDDD-D or DDDDDDDDDD where D are digits. The number of digits has to be 10

1234567890, 123456789-0

Caixa

104

Format: DDDDDDDDD-D or DDDDDDDDDDDDDD-D where D are digits. The number of digits has to be between 1 and 20

1234567890,

123456789-0, 12345678901234-5

Bradesco

237

Format: DDDDDDD-D or DDDDDDDD where D are digits. The number of digits may change, but can't exceed 8 digits

12345678, 1234567-8

Mercado Pago

323

Format: DDDDDDDDDD-D or DDDDDDDDDDD where D are digits. The number of digits may change, but can't exceed 11 digits

12345678910, 1234567891-0

ItaΓΊ

341

Format: DDDDDD-D or DDDDDDD where D are digits. The number of digits may change, but will range from 6 to 7

123456, 12345-6

Pix Key Document

10002

Empty string

""

Pix Key Phone

10000

Empty string

Pix Key Email

10001

Empty string

Pix Key Random

10003

Empty string

Others

-

Format: DDDDDDDDDD-D or DDDDDDDDDDD where D are digits. The number of digits may change, but can't exceed 20 digits

123456789, 123456789-0, 123456789012345689

Bank Branch Validations

Bank name

Bank code

Format

Example

Banco do Brasil

001

Format: DDDD-X or DDDDX where D are digits and X is a digit or the letter 'X'. The number of digits may change, but can't exceed 5 digits

1234-1, 12341, 1234-X

Santander

033

Format: DDDDD where D are digits. The number of digits may change, but can't exceed 5 digits

1234, 12345

Banrisul

041

Format: DDDD or DDDD-D The number of digits may change, but can't exceed 5 digits

1234-1, 12341

Banco Inter

077

Format: DDDD-D or DDDDD where D are digits. The number of digits may change, but can't exceed 5 digits

1234-1, 12341

Caixa

104

Format: DDDD-D or DDDDD where D are digits. The number of digits may change, but can't exceed 5 digits

1234-1, 12341

Banco Original

212

Format: DDDDD-D or DDDDDD where D are digits. The number of digits may change, but can't exceed 5 digits

1234-1, 12341

Bradesco

237

Format: DDDD-D or DDDDD where D are digits. The number of digits may change, but can't exceed 5 digits

1234-1, 12341

Banco Nu Pagamento

260

Format: DDDD-D or DDDDD where D are digits. The number of digits may change, but can't exceed 5 digits

1234-1, 12341

PagSeguro

290

Format: DDD-D or DDDD where D are digits. The number of digits may change, but can't exceed 4 digits

123-4, 1234

Mercado Pago

323

N/A

0001

Itau

341

Format: DDDD-D or DDDDD where D are digits. The number of digits may change, but can't exceed 5 digits

1234-1, 12341

Pix Key Phone

10000

Format: "+55 012 92345-1234"

+55 66 666666666

Pix Key Email

10001

N/A

testuser@gmail.com

Pix Key Document

10002

N/A

N/A

Others

-

Format: DDDD-D or DDDDD where D are digits. The number of digits may change, but can't exceed 5 digits

1234-1, 12341

Account Types

The account_type is specified with only one character described below.

account_type

Description

C

Checkings account

S

Savings account

P

Payments account

Example Request

{
    "login": "xxxxxxx",
    "pass": "xxxxxxx",
    "external_id": "30000000001",
    "country": "BR",
    "currency": "BRL",
    "amount": 100,
    "document_id": "01716001340",
    "beneficiary_name": "User",
    "bank_account": "3423422-7",
    "bank_code": "001",
    "bank_branch": "1234",
    "account_type": "C",
    "notification_url": "https://webhook.site/url",
    "type": "json"
}

Type of keys

Bank

Bank Code

Details

Pix Key Document

10002

bank_account and bank_branch must be empty. The field acount_type can have any value. The field document_id must be sent

If a payout is created without document_id , it will get REJECTED.

Example Requests

Pix Key Document
{
    "login": "xxxxxxx",
    "pass": "xxxxxxx",
    "external_id": "30000000001",
    "country": "BR",
    "currency": "BRL",
    "amount": 100,
    "document_id": "01716001340",
    "beneficiary_name": "User",
    "bank_code": "10002",
    "bank_account": "",
    "bank_branch": "",
    "account_type": "C",
    "notification_url": "https://webhook.site/url",
    "type": "json"
}

Types of Keys

Bank
Bank Code
Bank Details

Pix Key Phone

10000

bank_account and bank_branch must be empty. The field acount_type can have any value. The field phone must be sent

Pix Key Email

10001

bank_account and bank_branch must be empty. The field acount_type can have any value. The field email must be sent

Pix Key Document

10002

bank_account and bank_branch must be empty. The field acount_type can have any value. The field document_id must be sent

Pix Key Random

10003

bank_branch must be empty. The field account_type can have any value. The field bank_account must be sent - this indicates the customer's PIX random key

If a payout is created without the mandatory fields, it will be rejected.

{    
    "login": "xxxxxxx",
    "pass": "xxxxxxx",
    "external_id": "30000000001",
    "country": "BR",
    "currency": "BRL",
    "amount": 100,
    "document_id": "01716001340",
    "beneficiary_name": "User",
    "phone": "+5511666666666"
    "bank_code": "10000",
    "bank_account": "",
    "bank_branch": "",
    "account_type": "C",
    "notification_url": "https://webhook.site/url",
    "type": "json"
}
{    
    "login": "xxxxxxx",
    "pass": "xxxxxxx",
    "external_id": "30000000001",
    "country": "BR",
    "currency": "BRL",
    "amount": 100,
    "document_id": "01716001340",
    "email": "testuser@gmail.com",
    "beneficiary_name": "User",
    "bank_code": "10001",
    "bank_account": "",
    "bank_branch": "",
    "account_type": "C",
    "notification_url": "https://webhook.site/url",
    "type": "json"
}
{    
    "login": "xxxxxxx",
    "pass": "xxxxxxx",
    "external_id": "30000000001",
    "country": "BR",
    "currency": "BRL",
    "amount": 100,
    "document_id": "01716001340",
    "beneficiary_name": "User",
    "bank_code": "10002",
    "bank_account": "",
    "bank_branch": "",
    "account_type": "C",
    "notification_url": "https://webhook.site/url",
    "type": "json"
}

Registred bank accounts

{
    "login": "xxxxxxx",
    "pass": "xxxxxxx",
    "external_id": "30000000001",
    "country": "BR",
    "currency": "BRL",
    "amount": 100,
    "document_id": "01716001340",
    "beneficiary_name": "User",
    "bank_account": "3423422-7",
    "bank_code": "001",
    "bank_branch": "1234",
    "registered_bank_accounts":  [
                 { 
                    "account_number": "3423422-7",
                    "ispb_code": "00000000",
                    "bank_code": "001",
                    "bank_branch": "1234"
                  },
                  { 
                    "account_number": "1234567",
                    "ispb_code": "90400888",
                    "bank_code": "33",
                    "bank_branch": "0199"
                   }
                  ],
    "account_type": "C",
    "notification_url": "https://webhook.site/url",
    "type": "json"
}

Bank Codes

Bank

Code

BANCO DO BRASIL S.A.

001

BANCO DA AMAZONIA S.A.

003

BANCO DO NORDESTE DO BRASIL S.A.

004

BANESTES S.A. BANCO DO ESTADO DO ESPIRITO SANTO

021

Banco Alfa S.A.

025

BANCO SANTANDER BRASIL S.A.

033

BANCO ABN AMRO S.A

033

BANCO DO ESTADO DO PARA S.A. - BANPARA

037

BANCO DO ESTADO DO RIO GRANDE DO SUL S.A. - BANRISUL

041

BANCO DO ESTADO DE SERGIPE S.A. - BANESE

047

BANCO DE BRASILIA S.A. - BRB

070

BANCO INTER

077

Banco Original do AgronegΓ³cio S.A.

079

Cooperativa Central de CrΓ©dito (VIACREDI)

085

POLOCRED SCMEPP

093

Credisis - Central de Cooperativas de CrΓ©dito Ltdav

097

XP INVESTIMENTOS S.A

102

CAIXA ECONOMICA FEDERAL - CEF

104

Banco BOCOM BBM S.A.

107

BANCO AGIPLAN S.A.

121

ConfederaΓ§Γ£o Nacional das Cooperativas Centrais Unicred

136

Stone Pagamentos S.A

197

Banco BTG Pactual S.A.

208

BANCO ORIGINAL

212

BANCO BONSUCESSO S.A.

218

Banco Fibra S.A.

224

BANCO BRADESCO S.A.

237

NU PAGAMENTOS

260

Will Financeira S.A.

280

PagSeguro Internet S.A

290

Banco BPP InstituiΓ§Γ£o de Pagamento S/A

301

BANCO BMG S.A

318

China Construction Bank Banco MΓΊltiplo S.A.

320

MERCADOPAGO.COM REPRESENTACOES LTDA.

323

BANCO BARI DE INVESTIMENTOS E FINANCIAMENTOS S.A

330

BAcesso SoluΓ§Γ΅es de Pagamento S.A

332

Banco Digio S.A

335

BANCO C6 S.A

336

ITAU UNIBANCO S.A.

341

GERENCIANET S.A

364

Banco SociΓ©tΓ© GΓ©nΓ©rale Brasil S.A.

366

PICPAY SERVICOS S.A

380

BANCO MERCANTIL DO BRASIL S.A.

389

Banco Hub pagamentos SA

396

HSBC BANK BRASIL S.A. - BANCO MULTIPLO

399

CORA SCD S.A

403

BANCO SAFRA S.A.

422

CITIBANK N.A.

477

Deutsche Bank S.A. – Banco AlemΓ£o

487

JPMorgan Chase Bank, National Association

488

ING Bank N.V.

492

Banco Credit Suisse S.A.

505

Banco PAN S.A.

623

BANCO SOFISA

637

Banco Votorantim S.A.

655

BANCO DAYCOVAL S.A.

707

BANCO OURINVEST S.A

712

BANCO CITIBANK

745

BANCO MODAL S.A.

746

Banco Rabobank International Brasil S.A.

747

BANCO COOPERATIVO SICREDI S.A.

748

Banco BNP Paribas Brasil S.A.

752

BANCO COOPERATIVO DO BRASIL S/A - BANCOOB

756

Pix Key Document

10002

PreviousAmerican CountriesNextAPI Codes

Last updated 3 months ago

See

See

See

See

See

See

See

to check document types and validations.

For withdrawals, it is possible to send the registered accounts of a customer, before creating a cashout, you can find all the information , under the registered_bank_accounts object. You can have up to 3 bank accounts registered under this object. Example

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

πŸ‡§πŸ‡·
Cashout Bank Code endpoint.
bank codes
validations below
validations below
account type codes
Click here
document validations
country codes
currency codes
about the fields here