1. Introduction
1.1 Understanding Automatic Pix
1.1.1 The Pix ecosystem
Automatic Pix is built on top of Pix, Brazil's instant payment system, created and regulated by the Central Bank of Brazil (Banco Central do Brasil).
Pix enables individuals and businesses to transfer funds directly between bank accounts and digital wallets in real time, 24 hours a day, 7 days a week, including weekends and holidays. Unlike traditional card payments, it does not rely on card networks or card credentials. Today, Pix is the most widely used payment method in Brazil and is supported by virtually all financial institutions in the country.
While standard Pix is designed for one-time payments initiated by the payer, the Pix ecosystem also includes specialized payment modalities. One of these is Automatic Pix, which allows customers to authorize recurring payments in advance so that future charges can be processed automatically according to the agreed billing schedule.
1.1.2 What is Automatic Pix?
Automatic Pix is a Pix modality designed specifically for recurring payments. Unlike standard Pix, where the customer must manually approve each payment, Automatic Pix separates customer authorization from the payment execution. The customer grants consent only once, and subsequent recurring charges are processed automatically within the limits of that authorization.
This model makes Automatic Pix well suited for recurring business models such as subscriptions, memberships, utility bills, insurance premiums, and other scheduled payments.
How Automatic Pix differs from traditional recurring card payments
Although Automatic Pix serves a similar business purpose to recurring credit card payments, the underlying payment model is fundamentally different. Understanding these differences helps explain why the integration flow, API behavior, and customer experience differ from traditional card-based recurring billing.
Traditional recurring card payments | Automatic Pix |
|---|---|
Payments are charged to a tokenized credit card. | Payments are debited directly from the customer's bank account through the Pix ecosystem. |
Recurring payments depend on card validity and available credit. | Payments depend on available funds rather than card expiration dates or credit limits. |
The payment provider stores and uses card credentials or tokens to initiate future charges. | The customer's bank collects and manages the recurring payment authorization (consent). |
Chargebacks are part of the card payment lifecycle. | Pix has no chargebacks. Instead, it has MED (Special Return Mechanism), a separate mechanism strictly limited to cases of proven fraud, scams, or operational system failures, and is subject to investigation and fund recovery. |
Authorization and payment processing are managed through card networks. | Authorization and payment execution follow standardized rules defined by the Central Bank of Brazil and are carried out through the Pix ecosystem. |
Because Automatic Pix is regulated by the Central Bank of Brazil, many aspects of the payment flow—including how consent is collected, managed, and revoked—follow standardized rules defined by the Pix ecosystem rather than by individual payment service providers.
Roles and responsibilities
Automatic Pix is a collaborative payment flow involving the merchant, PagBrasil, and the Pix ecosystem.
Participant | Responsibility |
|---|---|
Merchant | Manages the subscription or recurring billing lifecycle*, requests customer consent, and schedules recurring charges. |
PagBrasil | Provides the integration layer between the merchant and the Pix ecosystem, processes API requests, delivers payment and consent notifications.* |
Participating financial institutions | Authenticate the customer, collect and manage consent, initiate recurring debits on the scheduled date, and allow customers to view, modify, or revoke their consent through their banking application. |
Central Bank of Brazil | Provides the standardized infrastructure and rules that govern Automatic Pix, including how consent is established and how recurring payments are scheduled and executed. |
*Note: When using PagStream®, PagBrasil manages the recurring billing lifecycle on the merchant’s behalf, including the creation and scheduling of recurring charges and managing payment retries.
1.2 Key Concepts
The following concepts form the foundation of an Automatic Pix integration. Understanding how they relate to one another will make it easier to implement recurring payments and interpret the API behavior described later in this documentation.
1.2.1 Consent
What is consent?
Consent is the customer's authorization allowing a merchant to collect recurring payments through Automatic Pix.
Unlike standard Pix, where each payment is individually approved, Automatic Pix requires the customer to approve the recurring payment agreement only once. After consent has been granted, future recurring charges can be processed automatically according to the agreed billing schedule—weekly, monthly, quarterly, semiannually, or annually—and within the limits of that authorization.
How consent works
Every consent is collected and authenticated by the customer's participating financial institution before it becomes active. During the authorization process, the customer confirms the request using the institution's standard authentication methods, such as biometrics, passwords, or other security mechanisms supported by their bank.
The consent is established collaboratively by the merchant, the customer, and the participating financial institution:
Participant | Responsibility |
|---|---|
Merchant | Initiates the consent request and defines the requested authorization parameters, such as the billing frequency, minimum amount, and validity period. |
Customer | Reviews the request, authenticates the authorization through their participating financial institution, and defines the final authorization rules, such as the maximum amount permitted for each recurring charge and whether the bank may use an available credit line if there are insufficient funds in the account at the time of the charge (when supported by the participating financial institution). |
Participating financial institution | Authenticates the customer, validates the authorization, and manages the consent throughout its lifecycle. |
A consent remains active until it is revoked by the customer, expires, or is otherwise terminated according to the rules of the Pix ecosystem. Customers manage their consent directly through their banking app, where they can view, modify, or revoke existing authorizations. Should the customer revoke their consent, the merchant is notified.
Note: The process used to obtain consent depends on the integration flow. Consent can be requested together with the initial payment or independently before the first recurring charge. Both flows are described later in this documentation.
Key considerations
Merchants and payment service providers never authenticate customers directly or store authentication credentials.
No recurring charges can be processed without an active consent.
Once consent is revoked or expires, a new consent must be obtained before additional recurring charges can be scheduled.
Merchants should treat consent webhooks as the primary reference for consent lifecycle events.
1.2.2 Recurring Charge
What is a recurring charge?
A recurring charge is the merchant's request to collect a payment under an active consent. Each recurring charge represents a single payment within a recurring payment agreement and is processed automatically according to the authorization previously granted by the customer.
How do recurring charges work?
Recurring charges are created by the merchant based on an active consent and follow the billing cycle defined in the customer's authorization.
Rather than triggering an immediate payment, each recurring charge is scheduled for a future recurrence date. To comply with the Pix ecosystem rules, merchants must submit recurring charge requests between 2 and 10 calendar days before the recurrence date. For example, if the recurrence date is October 18, the recurring charge request must be submitted between October 8 and October 16.
On the scheduled date, the participating financial institution automatically initiates the payment through the Pix ecosystem, provided the associated consent remains active and its authorization conditions are met.
Note: The first recurrence date is an exception to the standard billing cycle and may occur on a different date. This supports integration scenarios in which an initial payment is collected immediately while the recurring billing schedule begins later, such as a subscription that starts today but renews on the first day of the following month.
Key considerations
Recurring charge amounts may vary over time, provided each charge remains within the maximum amount authorized by the customer's consent.
Customers can cancel an individual scheduled recurring payment through their financial institution up to 23:59 on the day before the payment date.
Merchants are responsible for managing their recurring billing schedule and determining when recurring charges should be created, though always in compliance with the customer's consent and the scheduling rules established by the Pix ecosystem. Merchants can manage this process using their own recurring billing logic or a solution such as PagStream®.
1.2.3 Order
What is an order?
In the context of Automatic Pix, an order represents an individual payment transaction associated with either an initial payment or a recurring charge.
While the recurring charge represents the merchant's request to collect a recurring payment, the order is used to track the corresponding payment transaction and its status throughout the payment lifecycle.
Each order has its own lifecycle and status, allowing merchants to track whether the payment was completed successfully, failed, or is still pending.
How do orders work?
When a payment is initiated through Automatic Pix—whether as an initial payment or a recurring charge—PagBrasil creates an order to track the payment and assigns the status WP (Waiting for Payment).
For an initial payment, the order tracks the payment initiated as part of the customer's initial transaction. For a recurring charge, PagBrasil uses the associated consent to coordinate the payment with the customer's participating financial institution on the scheduled recurrence date.
As the payment progresses, the order status is updated to PC (Payment Completed) or PR (Payment Rejected) to reflect its final outcome.
Key considerations
Order statuses reflect the progress and final outcome of the payment transaction.
Merchants should use order statuses to monitor payment progress and outcomes.
1.2.4 Retry
What is a retry?
Retries allow merchants to make additional attempts to collect a recurring charge when the original payment attempt is unsuccessful, such as when the customer has insufficient funds at the time of the charge.
Retries apply to the existing recurring charge rather than creating a new charge for the same billing cycle. This allows the merchant to attempt the payment again while keeping it associated with the original recurring payment.
How do retries work?
Automatic Pix allows up to three payment attempts per billing cycle, including the original payment attempt. If the first attempt is unsuccessful, the merchant may request additional attempts within a 7-day retry window.
Each retry schedules a new payment attempt for the following day. For example, if a payment fails because the customer has insufficient funds, the merchant can request a retry so that another debit attempt is made on the next day.
Note: Retries are merchant-controlled. Automatic Pix does not automatically determine whether or when another attempt should be made. The merchant decides whether to request a retry based on its own billing logic. When Automatic Pix is used with PagStream®, PagBrasil can manage this retry process automatically on the merchant's behalf.
Key considerations
An unsuccessful recurring charge does not invalidate the customer's consent. As long as the consent remains active, it can continue to authorize recurring charges according to the agreed billing schedule.
Before requesting a retry, merchants should consult the IPN response and error code to determine the appropriate action for the unsuccessful payment.
1.3 Automatic Pix Journeys
Automatic Pix supports different customer journeys depending on how consent is requested and whether an immediate payment is included in the authorization process.
PagBrasil currently supports Journeys 2 and 3, which are particularly well suited to e-commerce and subscription businesses. Journeys 1 and 4 are described below for context only.
Journey 1: App notification for recurrence authorization (Not supported by PagBrasil)
In this journey, the business initiates an Automatic Pix consent request without using a QR code. The customer receives a notification through their participating financial institution and authorizes the recurring payment agreement directly within their banking app. No payment is required as part of the authorization process.
This journey is useful when the business wants to initiate the consent request and have the customer receive it directly through their banking app, rather than requiring them to scan a QR code.
Example: A person joins a membership at a gym, which sends an authorization request for them to approve future monthly membership payments directly through their banking app.
Journey 2: QR code for recurrence authorization (Consent Only)
In this journey, the business presents a QR code containing the recurring payment information but no immediate payment. The customer scans the QR code and authorizes future recurring charges through their participating financial institution.
This journey is useful when consent is incorporated into the customer's signup or checkout experience, but no payment is due at that moment.
Example: a digital subscription service offering a free trial presents a QR code during signup, while the first charge occurs only after the trial period.
Journey 3: QR code for immediate payment and recurrence authorization (Payment + Consent)
In this journey, a single QR code combines an immediate Pix payment with the request to authorize future recurring charges. The customer completes the initial payment and authorizes the recurring payment agreement as part of the same flow.
This journey is well suited to subscription models where the customer pays when signing up. It can also accommodate scenarios where the initial payment differs from subsequent recurring charges, such as an initial setup fee followed by a regular subscription.
Example: a SaaS provider collects the first subscription payment immediately while obtaining consent for subsequent monthly renewals.
Note: The first recurrence date may differ from the regular billing cycle, allowing the initial payment and subsequent renewal schedule to begin on different dates.
Journey 4: Payment followed by recurrence authorization (Not supported by PagBrasil)
In this journey, the customer first completes or schedules a Pix payment using a QR code. After the transaction, their participating financial institution presents the option to authorize future automatic payments to the same business.
The recurrence offer does not represent a new product or subscription offer from the financial institution. Instead, it allows the customer to authorize future automatic payments associated with the existing recurring relationship.
This journey is particularly applicable to recurring bills.
Example: after paying an electricity bill with Pix, a customer is offered the option to authorize future bills from the same provider to be paid automatically through Automatic Pix.
1.4 Integrating Automatic Pix
Integrating Automatic Pix involves two main components: establishing the recurring payment relationship with the customer and managing the recurring charges that follow.
1.4.1 Creating the subscription and capturing consent
This stage establishes the recurring payment relationship by collecting the customer's consent for future Automatic Pix charges.
When creating the subscription, merchants can choose to collect consent together with an initial payment (Journey 3) or independently, without an initial payment (Journey 2).
PagBrasil supports different options depending on the merchant's technical setup and desired payment experience.
API
API integration provides greater control over how Automatic Pix is incorporated into your payment and recurring billing experience.
With a direct API integration, the merchant's system communicates directly with PagBrasil's API to create the subscription and capture customer consent. The API supports both Journey 2 (Consent Only) and Journey 3 (Payment + Consent), allowing merchants to integrate either experience into their existing checkout and business processes.
This approach is best suited for merchants that have the development resources for a direct integration or require greater control over the payment experience.
Payment Link
Payment Link allows merchants to collect the initial payment and consent through a payment page hosted by PagBrasil.
Currently, Payment Link supports Journey 3 (Payment + Consent), allowing the customer to complete an initial payment and authorize future recurring charges through the same hosted experience. PagBrasil provides the front-end payment experience and associated back-end functionality, reducing the development required within the merchant's own checkout.
This approach is best suited for merchants that want a simpler implementation or do not require a fully customized initial payment and consent experience.
Note: Both the API and Payment Link integrations described above determine only how the subscription is created and customer consent is collected. The subsequent recurring billing lifecycle must still be managed separately, either through the merchant's own systems or through PagStream®.
E-commerce integrations
For supported e-commerce platforms Shopify and VTEX, PagBrasil offers Automatic Pix through PagStream® as an end-to-end solution, allowing merchants to offer Automatic Pix without developing their own direct API integration or recurring billing logic.
1.4.2 Managing Recurring Charges
Once the subscription has been created and consent established, the merchant must manage the recurring billing lifecycle, including creating and scheduling recurring charges according to the customer's authorization and the rules of the Pix infrastructure.
There are two approaches to managing recurring billing logic:
Merchant-managed via API
Merchants can use their own billing or subscription management system to manage the recurring billing logic and communicate with PagBrasil's API to create recurring charges, request eligible payment retries, and monitor payment statuses.
This approach provides merchants with control over their recurring billing operations but requires their systems to support the specific rules of Automatic Pix, including the recurrence frequencies established by the Pix infrastructure: weekly, monthly, quarterly, semiannual, and annual.
Managed through PagStream®
Alternatively, merchants can use PagStream®, PagBrasil's complete subscription management service, to manage and automate the recurring billing cycle on their behalf.
When used with Automatic Pix, PagStream® manages processes including:
Recurring charge scheduling: creating and scheduling charges according to the merchant's billing rules, while respecting the customer's consent and Automatic Pix requirements.
Payment retries: automatically managing eligible retry attempts when a recurring payment is unsuccessful.
Payment reconciliation: tracking received payments and associating them with the corresponding subscriptions and charges.
PagStream® also provides broader subscription management capabilities beyond Automatic Pix, allowing merchants to manage their subscription plans and billing operations within the same platform, create promotions, and offer customers a dedicated subscriber portal where they can make view and changes to their own subscriptions.
For configuration requirements and implementation instructions, refer to our PagStream® documentation.