To process a payout via bank transfer in Brazil, you must provide the following fields:
bank
: ISPB code (Identificador do Sistema de Pagamentos Brasileiro)branch
: Agência (branch code)number
: Account number
Each of these fields must follow strict format requirements depending on the destination bank.
Bank Code (ISPB)
PagSeguro uses the ISPB (Identificador do Sistema de Pagamentos Brasileiro) code to identify financial institutions (bank
field). This is not the same as the COMPE code used in TED/DOC transfers. You can reference ISPB values and mappings to COMPE accessing Banco Central ISPB Dataset.
Branch Format
The branch
code is typically 4 digits. Some banks may require a check digit, which should be separated by a hyphen (-
) if present:
1234
1234-5
Account Number Format
Brazilian account numbers may differ by bank. A general format is:
^(?:\d{6,14}|(?=\d+-\d+$)[\d\-]{6,14})$
However, many banks have custom formats.
Banks Validation Data
Below is a partial list of major banks and their required formats:
Bank Name | ISPB Code | Account Branch Format | Account Branch Regex | Account Number Format | Account Number Regex |
---|---|---|---|---|---|
Itaú Unibanco | 60701190 | 4 digits | - | 5 digits + 1 check digit or 7 digits + 1 check digit | ^([0-9]{5}|[0-9]{7})-?[0-9]{1}$ |
Bradesco | 60746948 | 4 digits + 1 optional check digit | (^[0-9]{4,5}$)|(^[0-9]{4}-[0-9]{1}$) | 7 digits + 1 check digit | ^[0-9]{7}-[0-9]{1}$ |
Banco do Brasil | 00000000 | 4 digits + 1 optional check digit | (^[0-9]{4,5}$)|(^[0-9]{4}-[0-9]{1}$) | 8 digits + 1 check digit or 9 digits + 1 check digit or 5 digits + 1 check digit | ^([0-9]{5}|[0-9]{8,9})-?[0-9]{1}$ |
Caixa Econômica Federal | 00360305 | 4 digits | - | 8 digits + 1 check digit or 9 digits + 1 check digit or 12 digits + 1 check digit | (^[0-9]{8}-?[0-9]{1}$)|(^[0-9]{9}-?[0-9]{1}$)|(^[0-9]{12}-?[0-9]{1}$) |
Santander | 90400888 | 4 digits | - | 8 digits + 1 check digit | ^[0-9]{8}-[0-9]{1}$ |
Sicoob | 02038232 | 4 digits | - | 10 digits + 1 check digit | ^[0-9]{10}-[0-9]{1}$ |
BTG Pactual | 30306294 | 3 digits | - | 6 digits + 1 check digit | ^[0-9]{6}-[0-9]{1}$ |
Banco Safra | 58160789 | 4 digits | - | 7 digits + 1 check digit | ^[0-9]{7}-[0-9]{1}$ |
Banco Votorantim (BV) | 59588111 | 3 digits | - | 8 digits + 1 check digit | ^[0-9]{8}-[0-9]{1}$ |
Banrisul | 92702067 | 4 digits + 1 optional check digit | (^[0-9]{4,5}$)|(^[0-9]{4}-[0-9]{1}$) | 9 digits + 1 check digit | ^[0-9]{9}-[0-9]{1}$ |
Citibank | 33042953 | 4 digits + 1 optional check digit | (^[0-9]{4,5}$)|(^[0-9]{4}-[0-9]{1}$) | 7 digits + 1 check digit | ^[0-9]{7}-[0-9]{1}$ |
Banco do Nordeste | 7237373 | 4 digits | - | 7 digits + 1 check digit | ^[0-9]{7}-[0-9]{1}$ |
Banco Original | 92894922 | 4 digits | - | 9 digits + 1 check digit | ^[0-9]{9}-[0-9]{1}$ |
Pagbank (PagSeguro) | 08561701 | 4 digits | - | 8 digits + 1 check digit | ^[0-9]{8}-[0-9]{1}$ |
Nubank | 18236120 | 4 digits | - | 8 digits + 1 check digit | ^[0-9]{8}-[0-9]{1}$ |
Mercado Pago | 10573521 | 4 digits | - | 9 digits + 1 check digit | ^[0-9]{9}-[0-9]{1}$ |
AME Digital | 32778350 | 4 digits | - | 9 digits + 1 check digit | ^[0-9]{9}-[0-9]{1}$ |
C6 Bank | 31872495 | 4 digits | - | 8 digits + 1 check digit | ^[0-9]{8}-[0-9]{1}$ |
Banco Inter | 00416968 | 4 digits | - | 8 digits + 1 check digit | ^[0-9]{8}-[0-9]{1}$ |