Skip to main content
Pix Automático lets a customer authorize a recurring debit once, after which Portão 3 collects each cycle automatically. You create an authorization, send the customer to a hosted approval page, and then follow the lifecycle through webhooks. This guide also covers changing a cycle’s amount and falling back to boleto when a charge fails.

Flow

Step 1: Create the authorization

The response returns the authorization with a paymentUrl and the generated schedules:
Redirect the customer to paymentUrl to approve the authorization in their bank. Reference: POST .../wallets/{walletId}/pix-billing-automatic

Step 2: Follow the authorization lifecycle

The PIX_BILLING_AUTOMATIC_* events track the authorization itself (the contract the customer approves):

Step 3: Follow each cycle

The PIX_BILLING_AUTOMATIC_SCHEDULE_* events track the individual charges (one per cycle):
Portão 3 retries a failed charge automatically before emitting a terminal FAILED.

Change a cycle’s amount

Adjust an individual cycle (for example, a partial charge) by updating its schedule, referencing both the authorization ID and the schedule ID:
The new amount (centavos) must stay within the authorization’s minAmount/maxAmount range. Reference: PUT .../pix-billing-automatic/{pixBillingAutomaticId}/schedules/{pixBillingAutomaticScheduleId}. To list and filter authorizations, use GET .../wallets/{walletId}/pix-billing-automatic.

Fall back to boleto on repeated failure

When cycles keep failing, issue a boleto for the same amount so the customer can still pay:
The boleto is created INITIATED, then a BOLETO_BILLING_UPDATED webhook delivers status: "CREATED" with the barcode and digitableLine to present to the customer. You can also add discount, fine, and interest rules (txnDiscountAmount, txnFineAmount, txnInterestAmount) — see the endpoint reference for the full body. Reference: POST .../wallets/{walletId}/boleto-billing

Next steps

Receive webhooks

Delivery envelope and the full event catalog.

Charge with PIX

One-off PIX charges with a QR Code.