Payments

Pix payment gateway vs direct bank API: fees, settlement and risk

Three ways to accept Pix in Brazil: a cross-border provider, a local gateway or your own bank's API. Where money settles, who charges what, and the trade-offs.

By Intopays team

7 min read

Two paths for the same Pix payment: on top, the money goes through a gateway's vault, which takes a percentage; below, it lands straight in the business account%Through a gatewayStraight to your account

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

OptionWhat you needWhere the money settlesTypical cost model
Cross-border providerno Brazilian entitythe provider's account in Brazil, then paid out to you abroad in another currencya percentage per payment plus currency conversion
Local gateway (intermediary)a Brazilian company (CNPJ)your balance at the gateway, until you withdrawa percentage or fixed fee per payment, sometimes a withdrawal fee
Direct bank APIa CNPJ and a business account at a Brazilian bank with Pix API accessyour own business account, instantlythe 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.

Through a gateway, a Pix payment sits in the gateway's balance, pays a percentage and reaches your bank only at payout; with a direct bank API it lands in your account and a webhook tells your systemThrough a gatewayCustomerGateway balance% per saleD+NPayoutYour bankDirect bank APICustomerYour accountyour bank's feewebhookYour system
Through a gateway, a Pix payment joins the gateway's balance, pays a percentage and reaches your bank at payout. Through your bank's API, it lands in your account and a webhook tells your system.

Side by side

GatewayDirect bank API
Money landsin your balance at the gatewayin your business account
Usableafter payout, per the contractimmediately
Who chargesthe gateway, per transaction (sometimes per withdrawal)your bank, per Pix received
Fee shapepercentage, fixed or bothset by the bank: fixed, capped percentage or a monthly bundle
Integrationone APIone integration per bank (certificate, OAuth, webhook)
Cardsusually in the same contracta separate contract
If you leavebalance and history live with the gatewaythe 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 monthGateway (0.99%)Bank (R$0.40) + subscriptionDifference per month
100R$79.20R$339.98gateway R$260.78 cheaper
1,000R$792.00R$699.98bank R$92.02 cheaper
10,000R$7,920.00R$4,299.98bank R$3,620.02 cheaper
Illustrative chart of monthly cost: the per-payment percentage line starts at zero and climbs faster; the flat line starts at the subscription and crosses it near 765 Pix payments a monthIllustrative numbersMonthly cost (BRL)05001,0001,5002,000Pix payments received per monthGateway: 0.99% per PixDirect: R$0.40 per Pix + subscriptionbreak-even near 765savings
With the assumptions in the table, the two lines cross near 765 Pix payments a month. Below that, the percentage is cheaper; above it, the flat cost wins.

The break-even moves with three inputs:

  1. 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.
  2. 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.
  3. 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.

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

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.

6 min readRead the article