If you are adding Pix to a product that sells in Brazil, the first architecture question is not about code. It is about where the money lands. A payment gateway collects Pix into its own account and pays you out later; a direct bank API issues the charge from your company's Brazilian bank account, so the money is there the second the customer pays.
This guide compares the options as they look to a developer or a foreign company: what each one needs, who charges what, how long until you can use the funds, and which risks you take on. The cost figures are illustrative — they show the shape of the math, not anyone's price list.
Three ways to accept Pix
| Option | What you need | Where the money settles | Typical cost model |
|---|---|---|---|
| Cross-border provider | no Brazilian entity | the provider's account in Brazil, then paid out to you abroad in another currency | a percentage per payment plus currency conversion |
| Local gateway (intermediary) | a Brazilian company (CNPJ) | your balance at the gateway, until you withdraw | a percentage or fixed fee per payment, sometimes a withdrawal fee |
| Direct bank API | a CNPJ and a business account at a Brazilian bank with Pix API access | your own business account, instantly | the bank's fee per Pix received |
The first option is the only one open to a company with no presence in Brazil. Pix moves Brazilian reais between accounts at Brazilian institutions; without an account there, someone else has to receive for you. If you do have a Brazilian entity, the real choice is between the second and the third.
How a gateway works
A gateway is a payment company that gives you an API, a checkout and a dashboard, and receives the money in an account it controls. When the customer pays, your balance at the gateway goes up; you then withdraw it to your company's bank account, on a schedule your contract defines.
In exchange, the gateway charges per transaction and often bundles more than Pix: credit cards, boletos, payment links, marketplace splits and fraud screening. If you come from the US or Canada, this is the familiar model — a processor like the ones you use for cards, with funds held for a while and paid out to your bank.
How a direct bank API works
The Banco Central do Brasil publishes a standard Pix API, and banks that serve businesses implement it: immediate charges with a dynamic QR code (cob), lookups of received payments, refunds and webhooks. Through it, the charge is issued from your company's account, and the payment shows up on your bank statement in seconds. There is no balance to withdraw.
The cost is your bank's fee for each Pix received — set by each bank and usually negotiable. The work is on your side: registering an application on the bank's developer portal, installing a client certificate for mutual TLS, implementing OAuth 2.0 and handling each bank's quirks.
Side by side
| Gateway | Direct bank API | |
|---|---|---|
| Money lands | in your balance at the gateway | in your business account |
| Usable | after payout, per the contract | immediately |
| Who charges | the gateway, per transaction (sometimes per withdrawal) | your bank, per Pix received |
| Fee shape | percentage, fixed or both | set by the bank: fixed, capped percentage or a monthly bundle |
| Integration | one API | one integration per bank (certificate, OAuth, webhook) |
| Cards | usually in the same contract | a separate contract |
| If you leave | balance and history live with the gateway | the money and statement were always in your bank |
The cost math, with illustrative numbers
To compare, you have to fix assumptions. These are illustrative only, chosen to show how the curves behave, and do not describe any company's offer:
- average ticket of R$80.00;
- gateway at 0.99% per Pix (about R$0.79 per payment), no withdrawal fee;
- bank charging R$0.40 per Pix received;
- a flat subscription of R$299.98 a month for the layer that connects your system to the bank (the current price of the Intopays plans).
| Pix per month | Gateway (0.99%) | Bank (R$0.40) + subscription | Difference per month |
|---|---|---|---|
| 100 | R$79.20 | R$339.98 | gateway R$260.78 cheaper |
| 1,000 | R$792.00 | R$699.98 | bank R$92.02 cheaper |
| 10,000 | R$7,920.00 | R$4,299.98 | bank R$3,620.02 cheaper |
The break-even moves with three inputs:
- Average ticket. A percentage grows with the sale. At an average of R$300, the same 0.99% becomes R$2.97 per payment and the break-even drops to a little over 100 payments a month.
- Your bank's fee. Some banks charge a fixed amount, others a percentage with a cap, others include Pix in the account's monthly package. Ask for the fee for Pix received through the API in writing; it can differ from the fee for Pix received in the banking app.
- What else you need. If the gateway's contract also covers the card processing you would buy anyway, compare the whole bundle.
For context: Pix fees in Brazil are generally far below the roughly 3% that card processing costs a US or Canadian merchant, whichever model you pick. The decision here is about a fraction of a percent, cash flow and control.
The risks you take on
With a gateway:
- Custody. Until you withdraw, the money sits in an account the gateway controls. A risk review that freezes your account, or a problem at the gateway, keeps the balance out of reach.
- Payout schedule. Your cash flow follows the contract: same day for some, days for others.
- Lock-in. Switching means a new integration and moving your payment history.
With a direct bank API:
- Engineering. Every bank has its own onboarding, certificate format, OAuth scopes and webhook rules. Two banks are two integrations.
- Maintenance. Certificates expire; banks change endpoints and rules.
- Bank approval. Many Brazilian banks enable the Pix API as a separate request on the business account, with its own lead time.
Which one fits
Pick a cross-border provider if your company has no Brazilian entity. Nothing else works without a CNPJ and a local account.
Pick a gateway if your volume is low, you need cards and Pix in one checkout, you run a marketplace that splits each sale, or you do not want to deal with bank certificates.
Pick a direct bank API if your volume is high enough for the percentage to hurt, you want funds in your own account the moment they are paid, and your company already banks in Brazil.
Where Intopays fits
Intopays takes the third path and removes most of its engineering cost. Your Brazilian company connects its own bank account — Banco do Brasil, Inter, Santander, Sicoob or Sicredi — once, as a bank credential, and your system creates Pix charges through one API:
curl -X POST https://api.intopays.com/v1/pixs \
-H "Authorization: Bearer $INTOPAYS_TOKEN" \
-H "X-Credential-Key: $INTOPAYS_CREDENTIAL_KEY" \
-H "Content-Type: application/json" \
-d '{
"amountOriginal": 80.00,
"calendarExpiration": 900,
"payerRequest": "Order #1042"
}'
The amount is in reais. The charge is issued from your company's account, and the payment reaches your system as a pix.update event on your webhook. With more than one account connected, the X-Credential-Key header picks the one that receives. You pay a flat monthly subscription, with no per-transaction fee; the Pix fee stays whatever your bank charges. The same credential issues boletos, except at Bradesco, where boletos are not available through Intopays yet.
New to Pix itself? Start with what Pix is and how it works. The developers page has the API overview.
Frequently asked questions
Can I accept Pix without a Brazilian company?
Not directly. Pix moves reais between accounts at Brazilian institutions, so you need either your own Brazilian account (which requires a CNPJ) or a cross-border provider that collects for you and pays you out abroad.
Is a "zero fee" Pix gateway really free?
Read the whole contract. Zero-fee offers usually come with conditions: a minimum volume, a limited period, a withdrawal fee or another paid product. Also remember that the bank behind the gateway is paid somehow.
How fast do I get the money with each option?
With a direct bank API, the money is in your account seconds after the customer confirms. With a gateway, it is in your gateway balance at once but reaches your bank only at payout. With a cross-border provider, add the payout and currency conversion schedule.
Can I combine a gateway and a direct bank API?
Yes. A common setup is the bank API for Pix, where volume is high, and a gateway only for online card payments. Your checkout decides which one to call.
Does the customer see a difference?
Before confirming, their banking app shows the name of whoever receives. With a direct API that is your company; with an intermediary it may be the intermediary's name. Otherwise the experience is the same: scan, confirm, done.
