Payments

Static vs dynamic Pix QR codes explained

What static and dynamic Pix QR codes carry, how a business matches payments to each one, when to use which, and how to generate both through an API in Brazil.

By Intopays team

7 min read

On the counter, a poster with a static Pix QR code; in the customer's hand, a phone showing the dynamic QR code of one order, already paidStaticDynamic

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 QRDynamic QR
Payments per codeunlimited, foreverone — the charge's
Amountfixed or open (payer types it)always the charge's amount
Expirynoneyes, minutes to days
Createdonce; can be printedon demand, per sale
How you match a paymentby the code's reference and the bank's noticeby the charge's transaction ID (txid)
Closest US/Canada analogya printed payment QR at a market stalla payment intent or invoice link
A static QR code printed at the counter and used by many customers, next to a dynamic QR code on a screen, generated for one charge with an amount and an expiryStatic QRPay with PixSame code, many paymentsOptional amount, printed onceDynamic QRR$42.90expires in 15:00One code per chargeAmount, expiry and IDor
Static: printed once, paid by many customers. Dynamic: one per charge, with an amount, an expiry and an ID your system can match.

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.

One static QR poster takes many payments; each comes back with the QR's reference and joins the live list of payments, with the total at the bottomPay with PixQR referenceIPXVV39JCTE9K6SL8XR4Payments receivedLiveMaria SilvaToday, 9:12 amR$25.00João SouzaToday, 8:47 amR$12.50Ana LimaToday, 8:05 amR$37.503 paymentsR$75.00
One static code, many payments: each one comes back with the code's reference and lands in the live list on its own.

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.

The life of a dynamic QR code in four steps: your system creates the charge with an amount and expiry, the customer sees the QR, pays in seconds, and a webhook marks the order paidPOST /v1/pixsR$42.90expires 15:00Order #1042Paidpix.update1234CreateShowCustomer paysMark paidamount + expiryQR or copy-pastein secondsstatus COMPLETEDExpired unpaid? The bank refuses it: create a new one.
Your system creates the charge, the customer sees the code, pays in seconds, and a webhook marks the order paid. If it expires unpaid, the bank refuses it and you create a new one.

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

  1. Open Banking → Pix estático and click Novo QR Code (new QR code).
  2. Give it an internal name, such as "Counter", and pick the bank account that receives.
  3. Under Valor (amount), choose Aberto (open — the payer types it) or Valor definido (fixed).
  4. Check the merchant name, pick the city from the list and create it.
  5. 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

ScenarioUseWhy
Café or bakery counter, any amountstatic, open amountone poster all day; the live list shows each payment
Single-price item (parking, ticket)static, fixed amountthe payer types nothing and cannot get the amount wrong
E-commerce checkout or WhatsApp orderdynamicthe order is marked paid automatically by txid
Quote or made-to-order itemdynamic, long expiryit expires on its own if the customer walks away
Market stall, event, donation boxstaticworks 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.

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