Payments

Boleto bancário explained, and how to issue boletos via API

What a boleto is, how Brazilians pay it, why it survives next to Pix, and what a business needs to issue registered boletos through its own bank's API.

By Intopays team

6 min read

Your system sends the boleto request, the bank registers it, and the boleto comes out with a barcode and a Pix QR codePOST /v1/boletosBarcode + Pix QRRegistered

A boleto bancário (usually just "boleto") is a payment slip issued by a bank on behalf of a business: an amount, a due date, a barcode and a long number the payer can type. The customer pays it in any banking app, at a bank branch, or in cash at a lottery shop or an authorized agent. Brazilians use it for rent, school fees, utility-style bills, B2B invoices and, for years, for online purchases by people without a credit card.

If you build billing or e-commerce software for Brazil, you will meet boletos sooner or later. This guide explains how they work, how they compare to what you know from the US and Canada, why they still matter now that Pix exists, and what it takes to issue them through an API.

How a boleto works

Every boleto today is registered: before the customer can pay, the issuing bank has to know it — amount, due date, payer and beneficiary. Registration is what lets a boleto be paid at any bank, and what prevents someone from paying a different amount.

The flow looks like this:

  1. the business asks its bank to register a boleto (today, through an API);
  2. the bank returns the barcode, the typeable line (linha digitável, the 47-digit number) and the bank's reference number (nosso número);
  3. the business sends the boleto to the customer as a PDF, a link or the typeable line;
  4. the customer pays it by the due date — or later, with a late fee and interest, until a limit the business sets;
  5. the bank clears the payment, typically in 1 to 3 business days, and reports it as paid.
The parts of a boleto: the typeable line at the top, beneficiary and payer, due date, amount and bank reference number, the Pix QR code and the barcode75691.32456 01002.548713 00001.048001 9 12340000035000Beneficiary (who gets paid)PayerDue dateDec 10, 2026AmountR$350.00Bank reference no. 1048Pix1234561Typeable line (linha digitável)2Beneficiary and payer3Due date4Amount and bank reference5Pix QR (hybrid boleto)6Barcode
The parts of a boleto: the typeable line at the top, beneficiary and payer, due date, amount and bank reference, the Pix QR code (on hybrid boletos) and the barcode.

Compared to what you know

There is no single North American equivalent. The closest references:

Boleto (Brazil)ACH invoice / bill pay (US)Pre-authorized debit (Canada)Credit card
Who starts the paymentthe payer, by the due datethe payer, from their bankthe business, with consentthe payer, at checkout
Needs a bank account to payno — cash at agents worksyesyesno, a card
Due date and late fee built inyeson the invoice, not the railby agreementno
Settles1–3 business days1–3 business daysa few business days1–2 business days
Disputesnone once paidreturnsreversal windowchargebacks

The column that matters most is the second one: a boleto can be paid in cash. That is a big part of why it lasted, and why it is still the default for recurring bills to people who do not want to authorize a debit.

Why boletos survive next to Pix

Pix took over instant payments, but boletos still fit cases Pix does not cover on its own:

  • A due date with consequences. Late fees, daily interest and early-payment discounts are part of the boleto itself, so the bank enforces them.
  • B2B accounts payable. Finance teams in Brazil schedule boletos in their banking apps and pay a batch on the due date.
  • Payment later. A customer who cannot pay today gets a document with a date, not a code that expires in 15 minutes.

The two have also merged: many banks now print a Pix QR code on the boleto (the "hybrid boleto"). The customer who wants to pay now scans it and the payment is instant; the one who wants to pay on the due date uses the barcode. For a side-by-side comparison, see Pix vs boleto.

What a business needs to issue boletos

This part is not negotiable, so it is worth saying plainly:

  • A Brazilian company (CNPJ) with a business account at a Brazilian bank.
  • A collection agreement (carteira de cobrança) with that bank — boleto issuing is a separate product from the account, with its own fee per boleto.
  • API access to the bank's collection service and the application's credentials (client ID, secret or key, and a client certificate).

A foreign company with no Brazilian entity cannot issue boletos in its own name; it would go through a payment provider that issues them for it.

Issuing a boleto through the Intopays API

Intopays connects your company's own bank — Sicoob, Sicredi, Banco do Brasil, Santander or Inter for boletos — as a bank credential, and your system issues boletos through one API:

curl -X POST https://api.intopays.com/v1/boletos \
  -H "Authorization: Bearer $INTOPAYS_TOKEN" \
  -H "X-Credential-Key: $INTOPAYS_CREDENTIAL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 350.00,
    "dueDate": "2026-12-10T00:00:00.000Z",
    "daysAfterDueDateForCancellation": 30,
    "payerDocument": "12345678909",
    "payerName": "Maria Silva",
    "payerZipCode": "01310100",
    "payerAddress": "Avenida Paulista",
    "payerCity": "São Paulo",
    "payerState": "SP"
  }'

amount is in reais. payerDocument is the payer's CPF (individual) or CNPJ (company), digits only, and daysAfterDueDateForCancellation is how many days after the due date the boleto can still be paid. The response carries digitableLine, barcode, the bank's reference in integrationBankingCode and, at banks that return it (Sicoob, Banco do Brasil, Santander), a Pix payload in qrcode. Late fees, interest and up to two early-payment discounts are optional fields. Everything is in create a boleto.

Tracking payment and cancelling

A new boleto is OPEN. Intopays checks open boletos with the bank once a day; when the bank reports the payment, the boleto becomes PAID and your webhook receives a boleto.update event.

The life of a boleto: issued and registered at the bank, paid by the customer, cleared in 1 to 3 business days and marked paid; or cancelled, going from OPEN to PROCESSING to CANCELLEDWhen the boleto is paid1Issueregistered at the bankOPEN2Paymentapp or agentOPEN3Clearing1–3 business daysOPEN4Paidboleto.update webhookPAID1–3Cancellation (baixa)OPENPROCESSINGCANCELLEDthe bank confirms at the next check
Issued and registered, paid, cleared in 1 to 3 business days, then marked paid. When cancelled, it goes through PROCESSING until the bank confirms.

Because clearing takes business days, do not treat a boleto as paid the moment the customer says so — wait for the bank. To cancel one that will not be paid, request a baixa (write-off) with PATCH /v1/boletos/:id/cancel; it stays PROCESSING until the bank confirms, then becomes CANCELLED. See manage boletos.

Every boleto also has a public page for the payer, with the typeable line, barcode and a print button. Anyone with the link can see it, so send it only to the payer.

What it costs

Boleto fees are set by the issuing bank: per boleto registered, per boleto paid, per write-off, or a monthly bundle. Ask the bank for each. Intopays adds no fee per boleto; you pay a flat monthly subscription (see pricing), and the money settles directly in your company's account — Intopays never holds it.

Frequently asked questions

What is a boleto in English?

There is no standard translation. "Bank payment slip" is the closest description: a bank-registered bill with a barcode, a due date and an amount, payable at any Brazilian bank, in banking apps or in cash at authorized agents.

Can a boleto be paid from outside Brazil?

In practice, no. Paying a boleto requires a Brazilian bank account or paying in person in Brazil. International customers are better served by cards or a cross-border provider.

Is a boleto the same as a Pix?

No. A boleto is a bill with a due date that clears in business days; a Pix is an instant transfer. A hybrid boleto carries both: a barcode for paying later and a Pix QR code for paying now.

Can customers dispute a paid boleto?

There is no chargeback mechanism for boletos. Once the customer pays, the money is the business's, and any refund is something the business does on its own.

Do I need a Brazilian company to issue boletos?

Yes. Boletos are issued from a collection agreement on a Brazilian business account, which requires a CNPJ. Without one, you need a provider that issues boletos on your behalf.

All articles

Keep reading

A checkout page with a Pix QR code and a copy button, a customer paying from her phone and the green mark of a confirmed orderR$89.90expires in 14:32Copy codePix on your website's checkout

Payments

How to accept Pix payments on your website: a developer guide

Build a Pix checkout end to end: create the charge on your backend, show the QR and copy-and-paste code, confirm by webhook, handle expiry. With curl and Node.

7 min readRead the article
An integration created in Banco Inter's online banking becomes a certificate and key bundle, and your system starts generating Pix QR codes.crt + .keyBanco Inter Pix API

Payments

Banco Inter Pix API: how to integrate it

How to create a Banco Inter API integration, download its certificate and key, authenticate, issue a first Pix charge and reuse the same credential for boletos.

6 min readRead the article
An NFC-e receipt comes out of the checkout printer with its lookup QR code, after SEFAZ authorized itNFC-e · model 65SEFAZ

Payments

Brazil e-invoicing: NFC-e vs NF-e explained

How Brazil's electronic invoices work: NFC-e (model 65) vs NF-e (model 55), SEFAZ authorization, what a company needs to issue them and the usual pitfalls.

7 min readRead the article