PIX (Brazil)
PIX is Brazil’s instant payment system. The payer pays from their bank app, by scanning a QR code or by pasting a PIX “copia e cola” code. With FeitPay you can:
- take PIX payments in Brazilian reais (
BRL): payment intents, payment links and invoices; - add money to your balance by PIX;
- send PIX from your BRL balance to a PIX key.
Availability
Section titled “Availability”FeitPay switches PIX on and off for the platform. GET /v1/pix/pricing tells you where you stand:
available is true while new payments and deposits can accept PIX, and payouts_available while PIX payouts can
be requested. While PIX is off, a payment that asks for it is refused with payment_method_unavailable
(feature_unavailable_error), and PIX is not offered for deposits or payouts.
Accepting PIX on a payment
Section titled “Accepting PIX on a payment”Add pix to allowed_methods on a payment in BRL. The field works the same on payment intents, payment links and
invoices:
allowed_methods |
What the customer can do |
|---|---|
["crypto"] (default) |
Pay with crypto only |
["crypto", "pix"] |
Choose at checkout: PIX is listed first, then the coins |
["pix"] |
Pay with PIX only |
- The currency must be
BRL. Any other currency is refused withpix_requires_brl. - The smallest PIX payment is R$ 9.00 (
minimum_paymentinGET /v1/pix/pricing). Below it the request is refused withamount_below_minimum. - A payment that accepts both crypto and PIX also needs at least R$ 9.00. Below the crypto minimum (
55.00BRL, see Fees, minimums & payouts), the customer can only pay it with PIX.
curl -X POST https://api.feitpay.com/v1/payment-intents \ -H "Authorization: Bearer gp_live_YOUR_KEY" \ -H "Idempotency-Key: order-1042" \ -H "Content-Type: application/json" \ -d '{ "store_id": "store_YOUR_STORE_ID", "amount": "59.90", "currency": "BRL", "allowed_methods": ["crypto", "pix"], "merchant_order_id": "order-1042" }'import { FeitPay } from '@feitpay/sdk';
const gp = new FeitPay({ apiKey: process.env.FEITPAY_API_KEY!, baseUrl: 'https://api.feitpay.com' });
const intent = await gp.paymentIntents.create( { store_id: 'store_YOUR_STORE_ID', amount: '59.90', currency: 'BRL', allowed_methods: ['crypto', 'pix'], merchant_order_id: 'order-1042', }, { idempotencyKey: 'order-1042' },);console.log(intent.checkout_url);A payment link or an invoice takes the same field. This link can only be paid by PIX:
{ "store_id": "store_YOUR_STORE_ID", "title": "Workshop ticket", "amount": "120.00", "currency": "BRL", "allowed_methods": ["pix"]}The link’s public page (GET /v1/public/payment-links/{slug}) carries allowed_methods too; when it is absent or
empty, the link takes crypto only. In the dashboard the same choice reads Crypto, Crypto or PIX and
PIX only.
The checkout
Section titled “The checkout”- With
["crypto", "pix"], the customer first chooses how to pay, and PIX is listed first. With["pix"], the PIX code opens straight away. - The checkout creates one PIX charge for the payment and shows the amount in reais, a QR code and the PIX copia e cola code with a copy button. The amount is fixed inside the code, so the customer never types it. The code pays this payment once and expires with it.
- The customer pays in their bank app. The page updates by itself, and a PIX payment is usually confirmed within seconds.
If you build your own payment page on the public checkout endpoints,
PIX is the option with asset: "pix" in the session’s processor.options. Open the charge with
POST /v1/public/checkout-sessions/{id}/processor-invoice and the body {"asset": "pix"}: the session then has
one method in processor.methods, with asset: "brl", chain: "pix" and pix_copy_paste, the payload to show as a
QR code and to copy. For PIX, address and payment_url are empty.
Statuses and webhooks
Section titled “Statuses and webhooks”A PIX payment does not collect confirmations. It normally goes from awaiting_payment straight to confirmed:
| Status | When |
|---|---|
awaiting_payment |
The PIX code was created and waits to be paid |
confirmed |
The transfer was paid. This is final: fulfillable is true |
expired |
The code expired before anyone paid it |
failed |
The charge failed or was cancelled |
manual_review |
Something unusual happened, for example a paid charge reported as returned. FeitPay reviews it |
There is no underpaid or overpaid: the amount is fixed by the code. The webhooks are the usual ones:
payment.confirmed (with status_reason: "processor_complete"), payment.expired and payment.review_required.
As with every payment, verify the signature, dedupe on event_id and read the intent again before you fulfil (see
Webhooks).
Once the payment is credited, processor.fee on the payment intent is the PIX fee that was deducted (for a R$ 250.00
payment, R$ 10.00), and your balance received the amount minus that fee.
Disputes (MED)
Section titled “Disputes (MED)”A paid PIX payment is final, but when a payer reports fraud, their bank can open a dispute through MED (Mecanismo Especial de Devolução, the Banco Central do Brasil’s special return mechanism). While it is open, the disputed amount is held in your BRL balance:
- your statement (
GET /v1/balance-movements) shows adisputemovement (negative) when it opens, and adispute_returnedmovement (positive) if it is decided in your favour. If it is decided for the payer, thedisputemovement stays as the final debit; - the reconciliation report lists it as a
pix_disputediscrepancy; - a balance that goes below zero blocks payouts until new payments cover it;
- the PIX fee deducted from the payment is not returned, whatever the decision.
Each PIX received pays a FeitPay fee, deducted when it is credited to your balance. That covers PIX payments (including payment links and invoices) and money you add to your balance by PIX:
| Amount of the PIX | FeitPay fee |
|---|---|
| below R$ 100.00 | 2% |
| from R$ 100.00 up to and including R$ 1,000.00 | 4% |
| above R$ 1,000.00 | 5% |
- The fee is at least R$ 0.90 per PIX received, never more than the amount, and is rounded up to the centavo.
- Sending PIX costs R$ 0.80 per transfer, with no percentage: the payee receives the amount minus R$ 0.80. Each PIX payout is from R$ 9.00 up to R$ 1,000.00, and you can send as many payouts as you want.
- The 2% / 3% fee on crypto payouts does not apply to BRL payouts, and BRL payouts do not count toward the €1,000 monthly total of that fee.
| PIX received | FeitPay fee | Credited to your balance |
|---|---|---|
| R$ 20.00 | R$ 0.90 (the minimum; 2% would be R$ 0.40) | R$ 19.10 |
| R$ 59.90 | R$ 1.20 (2% = R$ 1.198, rounded up) | R$ 58.70 |
| R$ 250.00 | R$ 10.00 (4%) | R$ 240.00 |
| R$ 2,000.00 | R$ 100.00 (5%) | R$ 1,900.00 |
Read the fees from the API
Section titled “Read the fees from the API”Show fees from GET /v1/pix/pricing instead of hard-coding them. It answers with the numbers that apply to your
account right now:
{ "object": "pix_pricing", "livemode": true, "available": true, "payouts_available": true, "currency": "BRL", "brazil_only": true, "tiers": [ { "up_to": "100.00", "inclusive": false, "percent": "2" }, { "up_to": "1000.00", "inclusive": true, "percent": "4" }, { "up_to": null, "inclusive": false, "percent": "5" } ], "minimum_fee": "0.90", "minimum_payment": "9.00", "payout_fee": "0.80", "payout_percent": "0", "minimum_payout": "9.00", "maximum_payout": "1000.00", "key_cooldown_seconds": 0}| Field | Meaning |
|---|---|
available / payouts_available |
New PIX payments and deposits / PIX payouts can be used now |
brazil_only |
Always true: PIX works only with Brazilian bank accounts |
tiers |
In order. The first tier that holds applies: up_to is null, or the amount is below up_to (inclusive: false), or at most up_to (inclusive: true) |
minimum_fee |
The smallest fee per PIX received |
minimum_payment |
The smallest PIX payment or PIX deposit |
payout_fee / payout_percent |
Fixed fee and percentage of each PIX payout. payout_fee is null while PIX payouts are unavailable |
minimum_payout |
The smallest PIX payout |
maximum_payout |
The largest PIX payout, per transfer. There is no limit on the number of payouts. null when there is no maximum or PIX payouts are unavailable |
key_cooldown_seconds |
How long, in seconds, a newly added PIX key waits before it can be used. 0: it can be used at once |
For an amount A, take the first tier that holds, then fee = A × percent / 100 rounded up to the centavo, at least
minimum_fee and at most A. Work in integer centavos, never in floating point:
type PixPricing = { tiers: { up_to: string | null; inclusive: boolean; percent: string }[]; minimum_fee: string;};
/** "59.90" → 5990n: BRL has two decimals. */function toCentavos(amount: string): bigint { const m = /^(\d+)(?:\.(\d{1,2}))?$/.exec(amount); if (!m) throw new Error(`not a BRL amount: ${amount}`); return BigInt(m[1]) * 100n + BigInt((m[2] ?? '').padEnd(2, '0'));}
/** "2" → 200n, "2.5" → 250n (hundredths of a percent). */function toBasisPoints(percent: string): bigint { const m = /^(\d+)(?:\.(\d{1,2}))?$/.exec(percent); if (!m) throw new Error(`not a percentage: ${percent}`); return BigInt(m[1]) * 100n + BigInt((m[2] ?? '').padEnd(2, '0'));}
const toBrl = (c: bigint) => `${c / 100n}.${(c % 100n).toString().padStart(2, '0')}`;
/** The FeitPay fee on a PIX received and what reaches the balance. */export function pixFee(amount: string, pricing: PixPricing): { fee: string; net: string } { const a = toCentavos(amount); const tier = pricing.tiers.find( (t) => t.up_to === null || (t.inclusive ? a <= toCentavos(t.up_to) : a < toCentavos(t.up_to)), )!; let fee = (a * toBasisPoints(tier.percent) + 9_999n) / 10_000n; // round up to the centavo const minimum = toCentavos(pricing.minimum_fee); if (fee < minimum) fee = minimum; if (fee > a) fee = a; return { fee: toBrl(fee), net: toBrl(a - fee) };}
// On your server: the API key never goes to a browser.const pricing: PixPricing = await fetch('https://api.feitpay.com/v1/pix/pricing', { headers: { Authorization: `Bearer ${process.env.FEITPAY_API_KEY}` },}).then((res) => res.json());
pixFee('59.90', pricing); // { fee: '1.20', net: '58.70' }FeitPay computes the fee itself when it credits the PIX; this is for showing it in advance. Your statement shows
each PIX received at its full amount and the fee as a separate movement of kind fee, with the same object:
kind |
amount |
asset |
object_type |
|---|---|---|---|
sale |
"250" |
brl |
payment_intent (pi_…) |
fee |
"-10" |
brl |
payment_intent (pi_…) |
A deposit appears the same way, as deposit and fee with object_type: "balance_deposit" (dep_…). Movement
amounts are signed decimal strings: compare them as exact decimals, not as text ("-10" and "-10.00" are the same
amount).
Adding money by PIX
Section titled “Adding money by PIX”While PIX is available, GET /v1/wallet lists PIX first in deposit_options:
{ "asset": "brl", "symbol": "brl", "chain": "pix", "name": "PIX", "memo": false, "minimum_amount": "9.00", "available": true, "unavailable_reason": null, "currency": "BRL", "coin_name": "PIX", "network_name": "PIX"}currency tells you that this option takes deposits in BRL only, whatever the display currency of your wallet, so
minimum_amount is in reais. Create the deposit in BRL:
curl -X POST https://api.feitpay.com/v1/balance-deposits \ -H "Authorization: Bearer gp_live_YOUR_KEY" \ -H "Idempotency-Key: topup-2026-11-02" \ -H "Content-Type: application/json" \ -d '{ "asset": "brl", "amount": "50.00", "currency": "BRL" }'The response (abridged) carries the PIX code to pay:
{ "id": "dep_…", "object": "balance_deposit", "asset": "brl", "chain": "pix", "amount": "50.00", "currency": "BRL", "status": "awaiting_payment", "pay_amount": "50.00", "pay_address": null, "pay_pix_copy_paste": "000201…", "credited_amount": null}Show pay_pix_copy_paste as a QR code with a copy button, and pay it from a Brazilian bank app. The deposit moves
from awaiting_payment to succeeded (or to expired if nobody pays in time). Once it is credited it has
fee: "1.00" and credited_amount: "49.00": the amount minus the PIX fee. A deposit never counts as a sale: there
is no payment webhook for it.
Sending PIX (payouts)
Section titled “Sending PIX (payouts)”- Add the PIX key in the dashboard, under Payouts → Payout addresses, as a Real (PIX) address. An API key
cannot add payout destinations. A key has a type (
cpf,cnpj,email,phoneorevp, the random key) and the key itself. Only the key is needed: the account holder’s full name and CPF or CNPJ are optional, and a CPF or CNPJ key is itself the holder’s document (a CPF or CNPJ you do give must match it). If a transfer is refused because the name and CPF or CNPJ are missing, the payout fails withfailure_code: "pix_holder_required"and the amount returns to your balance; add the same key again with the name and document, then send again. - Check when the key can be used. A new key can be used
key_cooldown_secondsafter it is added. That is0today, so a new key can be used at once; still read the field instead of assuming it, because FeitPay can change it. While a key waits, the destination hasusable: false, andusable_aftersays when it changes. - Find the destination.
GET /v1/payout-destinationslists it withasset: "brl", the key inaddressand apixobject withkey_typeand, when they were given,holder_nameand the maskedholder_document. - Request the payout in
brlwith an API key that haspayouts:write:
curl -X POST https://api.feitpay.com/v1/payouts \ -H "Authorization: Bearer gp_live_YOUR_KEY" \ -H "Idempotency-Key: payout-2026-11-02-001" \ -H "Content-Type: application/json" \ -d '{ "asset": "brl", "amount": "100.00", "destination_id": "pdest_YOUR_PIX_KEY" }'const payout = await gp.payouts.create( { asset: 'brl', amount: '100.00', destination_id: 'pdest_YOUR_PIX_KEY' }, { idempotencyKey: 'payout-2026-11-02-001' },);console.log(payout.status, payout.net_amount);For a payout of R$ 100.00, fee and platform_fee together are the R$ 0.80 a PIX payout costs, and net_amount
(what the payee receives) is R$ 99.20. The amount is held from your balance at once. A PIX payout goes through the same approvals as
every payout, and you get the usual payout.* webhooks. A PIX transfer is never sent twice: if the outcome of a
transfer is unknown, FeitPay looks it up instead of sending it again.
Error codes
Section titled “Error codes”code |
When |
|---|---|
payment_method_unavailable |
PIX is switched off (feature_unavailable_error) |
pix_requires_brl |
allowed_methods includes pix but the currency is not BRL |
amount_below_minimum |
A PIX payment or a PIX payout below R$ 9.00 |
amount_above_maximum |
A PIX payout above R$ 1,000.00. Split a larger amount into several payouts |
insufficient_balance |
The payout amount is more than your available BRL balance |
pix_key_invalid, pix_key_holder_mismatch, holder_name_invalid, holder_document_invalid |
Adding a PIX key in the dashboard: the key does not match its type, a CPF or CNPJ key is not the holder’s document, or the holder’s name or document is not valid |
For what FeitPay does and does not hold, see Regulatory status.