Step 1: First payment and subscription creation
To initiate the flow, you must start with a standard Pix payment that also sets up the subscription. This generates a QR code or redirect screen for the customer to authorize the recurrence. Once paid, the subscription is created and asubscription_code is returned.
You can define the frequency, availability window, and the amount type (fixed or variable) as part of the subscription payload.
Keep in mind that the information defined in the subscription creation restricts the dates and values that can be used for future payments.
Example
Step 2: Future payments
As defined by the central bank, payments must be created within a schedule window of 10 to 2 days before the scheduled billing date. Use thesubscription_code to identify the recurrence in the payment creation.
Example