Skip to main content
To receive money, create a PIX charge (pix-billing). Portão 3 returns an EMV string — the Copia e Cola / QR Code payload — that you display to the payer. When they pay, you get a PIX_BILLING_PAID webhook.

Flow

Step 1: Create the charge

What you send decides the kind of charge:
  • No dueDate — a static QR Code for txnAmount. It never expires and can’t be canceled. Only the payer’s name is used — up to 25 characters — and description is up to 39.
  • dueDate with no fine, interest, discount or rebate — payable until the end of expiresAt (or dueDate), in UTC.
  • dueDate with a fine, interest, discount or rebate — paid before dueDate it gets the discount, after it the fine and the interest; payable until expiresAt. The payer’s bank works out the amount due on the day.
The response is the charge, with status: "ACTIVE", the emv string and its _id:
Render emv as a QR Code, or offer it as Copia e Cola text for the payer to paste into their bank app. key is the wallet’s Pix key the charge pays into — the wallet needs an active one (see Pix keys). Reference: Create a Pix charge
Keep ?forceWallet=true in the URL so the payment is credited to the wallet in the path. Without it, the QR Code is issued for your organization’s main wallet: the payment is credited there, and a charge that belongs to another wallet is never marked PAID. This matters when you keep a wallet per end customer — see Wallets for your customers.

Step 2: Get notified when it’s paid

When the payer completes the PIX, the charge moves to PAID, with the amount received in confirmedAmount, and Portão 3 sends a PIX_BILLING_PAID webhook. The payload is the charge with status: "PAID":
Match the payload._id to the charge you created in step 1. See Receive webhooks for the delivery envelope.

Look up a charge

Poll a charge’s status, or list charges, instead of (or alongside) webhooks:

Cancel a charge

A charge with a dueDate that is still ACTIVE can be canceled: its QR Code can no longer be paid and it moves to CANCELED. A static QR Code (no dueDate) and a PAID charge can’t be. See Cancel a Pix charge.

Next steps

Recurring billing with Pix Automático

Authorize a recurring debit instead of a one-off charge.

Receive webhooks

The notification envelope and event catalog.