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 fortxnAmount. It never expires and can’t be canceled. Only the payer’snameis used — up to 25 characters — anddescriptionis up to 39. dueDatewith no fine, interest, discount or rebate — payable until the end ofexpiresAt(ordueDate), in UTC.dueDatewith a fine, interest, discount or rebate — paid beforedueDateit gets the discount, after it the fine and the interest; payable untilexpiresAt. The payer’s bank works out the amount due on the day.
status: "ACTIVE", the emv string and its _id:
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
Step 2: Get notified when it’s paid
When the payer completes the PIX, the charge moves toPAID, with the amount received in confirmedAmount, and Portão 3 sends a PIX_BILLING_PAID webhook. The payload is the charge with status: "PAID":
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:- Get one charge —
GET .../wallets/{walletId}/pix-billing/{pixId} - List a wallet’s charges, newest first, paginated with
limitandnext:GET .../wallets/{walletId}/pix-billing. The account, organization and realm have lists too. - Show a payment page —
GET /pix-billing/{pixBillingId}needs no token: anyone with the charge’s ID can read it, so it returns only what the payer needs — the status, amount, dates, description,emvand Pix key, and the payer’s name and masked document. Use it only for a page you show the payer, and sendx-environment: LIVE.
Cancel a charge
A charge with adueDate 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.