Treasury in Brazil: payables, receivables, bank files and Pix
SAP’s Brazil localization covers the payment formats that the main Brazilian banks ask for. Here are the banks, the file layouts, the payment methods you will configure, and Pix.
Every Brazilian bank has a 3-digit code, used in bank files, boletos and transfers. In SAP it goes into the bank key of the house bank and of partners’ bank details.
Bank
Code
Good to know
Itaú Unibanco
341
The largest private bank
Banco do Brasil
001
Controlled by the federal government
Bradesco
237
Also bought HSBC’s Brazilian operation in 2016
Caixa Econômica Federal
104
Owned by the federal government
Santander Brasil
033
BTG Pactual
208
Investment and corporate banking
Safra
422
Corporate and private banking
Citibank
745
Corporate banking only; its retail business went to Itaú in 2022
Nubank
260
Digital bank
Banco Inter
077
Digital bank
HSBC
399
Left Brazil Operation sold to Bradesco in 2016; old files may still mention it
Data medium exchange
Bank file layouts SAP supports
Brazilian bank files are flat text files, not XML. SAP handles outgoing files (sent to your bank) and incoming ones (the bank’s return file) in these layouts. Febraban’s CNAB 240 is used by many banks.
Side
Bank
Layout
Details
Payables
Itaú
SISPAG 240
ERPFI versions 010, 020, 050, 080
Payables
Bradesco
PAGFOR 500
Payables
Bradesco
HR 200 (Folha)
Payroll
Payables
Bradesco
CNAB 240 (PFEB)
Payables
Febraban
CNAB 240
Segments A, B and J · ERPFI 030, 040, 050, 087
Payables
Febraban
DDA
Segments G and H · ERPFI 084
Receivables
Itaú
CNAB 400
Record types 0 (header), 1 (detail), 9 (trailer)
Receivables
Bradesco
Cobrança 400
Receivables
Bradesco
CNAB 240
Receivables
Febraban
CNAB 240
Segments P and Q (remittance), T and U (return) · ERPFI 084, 087
CNAB is Febraban’s standard (Centro Nacional de Automação Bancária); 240 and 400 are the line lengths. Each bank still has its own variant, so get its manual.
Getting paid · receivables
Duplicata and boleto
The two most common ways to collect from customers in Brazil. Both start in the SAP payment run and end with the bank’s return file updating your open items.
Duplicata
The payment run creates one duplicata per open item. It “duplicates” what your customer already received on the invoice and works as a trade bill. You send the duplicatas to your bank in a file (or, on paper, as a list called a borderô) and the bank collects.
Like the duplicata, except the company (or the bank) prints the payment slip itself, with a bar code the customer pays anywhere. Printing your own saves the bank’s fee and gets you paid faster. The duplicata file still goes to the bank and the process is the same.
The duplicata number the bank assigned (nosso número)
Reference key 1
The bank statement number and the item number in it
Reference key 2
The collecting branch (agência cobradora)
Paying suppliers · payables
The usual ways to pay in Brazil
Pagamento de boleto
Paying a boleto
The most common way to pay a supplier: you pay the bar code of the boleto it sent, usually in a CNAB 240 file (segment J).
Transferência Eletrônica Disponível
TED
A bank transfer that arrives the same day if sent within banking hours. No maximum amount.
Transferência
Book transfer
A transfer between two accounts at the same bank.
Pix
Pix
Instant, any day, any time. Created by the BCB in 2020. How it works.
Débito Direto Autorizado
DDA
Boletos issued against your CNPJ appear electronically at your bank, so you pay them without the paper slip.
Less common methods
DA · Débito Automático (direct debit)
The bank pays registered bills from your balance on the due date.
Cheques
SAP ECC standard: payment method C, program RFFOUS_C. Rare today.
Vendor operation (Operação Vendor)
A bank finances the buyer while the seller receives in cash. SAP ECC standard: payment method V, program RFFOBR_V.
DDA or DA?
Question
DDA · Débito Direto Autorizado
DA · Débito Automático
What it does
Shows, in one place, every boleto issued against a CPF or CNPJ: the bank app, internet banking, other channels
Pays monthly bills automatically from the account balance
How it works
You sign up once with your bank. From then on, boletos issued in your name appear electronically for you to approve and pay. Nothing is paid without you.
You register each bill once. On the due date the bank pays it from your balance.
Which bills
Boletos: condominium fees, schools, universities, health plans, suppliers
Utilities and some taxes: water, electricity, phone, internet and IPTU (urban property tax)
Retired in 2024
DOC · Documento de Ordem de CréditoEnded
Credit order document. Arrived the next business day, up to R$ 4,999.99.
TEC · Transferência Especial de CréditoEnded
Special credit transfer. Same day, up to R$ 4,999.99.
The banks stopped both in early 2024. Pix and TED replaced them; remove them from payment method configuration and bank files.
Instant payments
Pix, the payment method Brazil switched to
Pix is the Central Bank’s instant payment system, launched in November 2020. Money moves between accounts in seconds, 24 hours a day, every day, with no intermediary. You can pay bills and purchases or make transfers, as an alternative to boleto, TED and cards.
Pix is free for individuals; companies may pay fees agreed with their bank. The name is not an acronym: it is a brand that hints at technology, pixels and transactions.
In a bank app, Pix sits next to the other options. A Pix key works like an alias for a bank account: it links the customer to the institution, branch, account number and account type, so the payer only needs the key or the QR code.
Ways to pay with Pix
QR code, static or dynamic
Key: CPF or CNPJ
Key: e-mail
Key: phone number
Key: random key
Bank details typed by hand (not a key)
Limits
The system sets no cap; each bank sets limits. For individuals, the default at night (20:00 to 06:00) is R$ 1,000 per payment.
Pix Cobrança
A QR code with a due date, interest and fines: Pix doing a boleto’s job.
Pix Automático
Recurring payments the payer authorizes once, live since June 2025.
Pix por aproximação
Contactless Pix with the phone at the till, since February 2025.
Pix in SAP
3127880
Collective note for Brazilian Pix payments in finance: the starting point.
2996095
Announcement of the additional Pix functionality.
Formats
Pix payments go to the bank in the layouts Febraban defined (CNAB 240 and CNAB 750). Check which one your bank accepts.
Master data
Keep the supplier’s Pix key with its bank details, and agree with the treasury team how Pix receipts are matched to open items.