In Brazil you will see Pix QR codes everywhere: taped to a food truck window, printed on a restaurant bill, shown on a checkout page. They all follow one central bank standard, and the customer pays every one of them the same way. For the business receiving, though, there are two very different tools: a static code you print once and take payments on all day, and a dynamic code generated for one charge, which tells your system exactly which order was paid.
If you build checkout or POS software for Brazilian merchants, this distinction shapes your data model. Here is what each type carries, how payments are matched, and how to generate both.
The short version
| Static QR | Dynamic QR | |
|---|---|---|
| Payments per code | unlimited, forever | one — the charge's |
| Amount | fixed or open (payer types it) | always the charge's amount |
| Expiry | none | yes, minutes to days |
| Created | once; can be printed | on demand, per sale |
| How you match a payment | by the code's reference and the bank's notice | by the charge's transaction ID (txid) |
| Closest US/Canada analogy | a printed payment QR at a market stall | a payment intent or invoice link |
What is inside each code
A Pix QR code is a text payload in the BR Code format, which is based on EMVCo's merchant QR specification (the same family as card QR codes). "Pix Copia e Cola" ("copy and paste") is that text without the image, for customers paying on the same phone that shows it.
- A static code carries everything inline: the receiver's Pix key, the merchant name and city, an optional amount and an identifier. Its point-of-initiation field is
11, meaning "reusable". Because everything is inside the code, nothing about it can change after printing. - A dynamic code carries a URL at the receiving bank where the charge lives: amount, expiry, description and
txid. The payer's app fetches that payload when it scans. That is why the bank knows which charge was paid, and why it refuses a payment after expiry.
One detail that trips up developers: the merchant name and city in a static code only accept letters, digits and spaces. Accents and symbols are stripped and the text is upper-cased; the name is capped at 25 characters and the city at 15. "São Paulo" becomes SAO PAULO.
Matching payments on a static code
The classic weakness of a static code is reconciliation: one code, many payers, and someone scrolling the bank statement to figure out who paid what. It becomes manageable when each code has its own identifier and the bank notifies each payment.
In Intopays, every static QR gets a unique reference (like IPXVV39JCTE9K6SL8XR4) embedded in the code. Each payment on it comes back with that reference and becomes its own record with the amount, payer name and time. The QR's page in the dashboard shows those payments live, with the running total.
Through a webhook, your system gets a pix.create event for every payment, with pixType set to STATIC. A bank notice that arrives twice is recorded once. With Santander, Intopays also asks the bank to confirm each payment before marking it as received.
How a dynamic code works
A dynamic code starts as a charge. Your system asks the bank for a charge with an amount and an expiry, gets the payload back and shows it — on the checkout page, the POS screen or a link sent by message. When the customer pays, the bank notifies you and the order flips to paid with no human check.
With a Brazilian bank account connected to Intopays, the charge is one request:
curl -X POST https://api.intopays.com/v1/pixs \
-H "Authorization: Bearer $INTOPAYS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"amountOriginal": 42.90,
"calendarExpiration": 900,
"payerRequest": "Order #1042"
}'
The amount is in reais and calendarExpiration is in seconds. The response includes the copy-and-paste payload to render as an image; payment arrives as a pix.update event with status COMPLETED. See create a Pix charge and query Pix.
Set the expiry to how long the customer realistically needs: a few minutes at a counter, hours or days for a link sent over WhatsApp.
Generating a static code for a counter
No code needed for this one. In the Intopays dashboard (the panel is in Portuguese; the menu names are given in parentheses):
- Open Banking → Pix estático and click Novo QR Code (new QR code).
- Give it an internal name, such as "Counter", and pick the bank account that receives.
- Under Valor (amount), choose Aberto (open — the payer types it) or Valor definido (fixed).
- Check the merchant name, pick the city from the list and create it.
- On the QR's page, Imprimir (PDF) gives you an A4 poster ready to print.
Through the API, POST /v1/pix-statics creates the code and GET /v1/pix-statics/:id/pdf returns the same poster. Fields and errors are in static Pix.
Which one to use
| Scenario | Use | Why |
|---|---|---|
| Café or bakery counter, any amount | static, open amount | one poster all day; the live list shows each payment |
| Single-price item (parking, ticket) | static, fixed amount | the payer types nothing and cannot get the amount wrong |
| E-commerce checkout or WhatsApp order | dynamic | the order is marked paid automatically by txid |
| Quote or made-to-order item | dynamic, long expiry | it expires on its own if the customer walks away |
| Market stall, event, donation box | static | works on paper, with no screen or internet at the stall |
In the Intopays POS
In the Intopays POS, each terminal can show one of the organization's registered static codes — never a pasted payload, so every payment is tracked. Today a manager confirms that payment at the register; automatic confirmation of static Pix on the POS desktop, and dynamic Pix charges for the exact sale amount from the POS, are not available yet. The payments still appear on the code's page in the dashboard. Pix only applies to organizations that operate in Brazilian reais.
Common mistakes
- Reprinting to change the amount. A static code cannot change; create a new one and replace the poster.
- Expiry too short on links. A 5-minute charge sent by message expires before the customer opens it.
- Static codes with no identifier. A code generated in a banking app with no reference forces manual reconciliation.
- A city longer than 15 characters. The standard truncates it; pick the city from the list.
For the bigger picture of how a payment moves, see what Pix is.
Frequently asked questions
Does a static Pix QR code expire?
No. It has no expiry and no payment limit; it works as long as the Pix key behind it exists. To stop taking payments on it, take the printout down.
Can a dynamic code be paid twice?
No. An immediate charge accepts one payment. Once paid or expired, the bank refuses further attempts and the customer needs a new code.
Can foreigners generate Pix QR codes for their business?
Only with a Brazilian account. Both types point to a Pix key or a charge at a Brazilian institution, which normally means a Brazilian company with a CNPJ and a business account.
Is one type cheaper than the other?
The fee for receiving a Pix is set by your bank and usually does not depend on the type of code. Intopays charges no per-transaction fee for either; the money goes straight to the company's account.
Do I need software to use dynamic codes?
Yes — something has to create each charge, either your own system through an API or a tool that does it for you. Without software, a printed static code is the simplest option.
