Pix Subscription (Pix Automático)
Last updated: 2026-10-27
This is the Partner edition: endpoint paths and fields match Merchant API · Pix Subscription; see "Sub-merchants" under "General Conventions" for the differences.
Product Overview
Pix Automático is a recurring automatic debit product launched by the Central Bank of Brazil within the Pix ecosystem, suited to subscriptions, membership fees, bills, and other payments collected on a schedule. After the payer approves a debit authorization once in their bank app, the partner creates a debit order for each period, and the payer's account is debited automatically on the debit date, with no per-period action required from the payer.
This API group is intended for partners that collect recurring payments on behalf of downstream sub-merchants (payees). It covers sign-up (generating a composite QR code, or sending an authorization request directly), scheduled debits (creating debit orders), query and cancellation, and refunds after a successful debit.
Core Concepts
| Concept | Description |
|---|---|
| Debit authorization (authorization) | A long-term debit permission approved once by the payer that fixes the payment frequency, amount rules, and start and end dates; once approved, every period's debit runs under it, with no per-period re-authorization. In this API group it is identified by authorizationId; in the Pix network it is identified by recurrenceId (idRecorrencia). |
| Debit order (cashin) | A single-period debit created under an approved debit authorization, with a debit date scheduledDate and an amount amount. |
| First payment | The first payment collected together with the QR code at sign-up (an immediate payment, a static-amount payment, or a payment with a due date), recorded as a debit order whose cashinType is QRCODE; see First Payment. |
| Refund order (refund) | Shares the same endpoint as Cash In refunds; see Create Refund, Get Refund Details and the Cashin Refund Webhook. A refund via the original Pix path for a successfully debited debit order; multiple partial refunds are supported, and the cumulative total cannot exceed the actual paid amount of the debit order (payAmount). |
| Merchant order number / platform order number | mchOrderNo is generated by the partner and used for duplicate prevention, and is returned as-is in responses and query results; platOrderNo is generated by Adopay and identifies debit orders and refund orders. Both have the same meaning as in regular cash-in. |
| Payee | The party that initiates the debit authorization and collects the payments, i.e. the partner integrating this API group. |
| Payer | The party that approves the debit authorization at their bank and is debited each period. |
| Copy-and-paste code (copia e cola) | The EMV text form of a Pix QR code, corresponding to the field qrcode. |
| PSP | Payment service provider, i.e. the bank or payment institution where the payer or payee holds the account. |
| ISPB | Brazilian payment system institution identifier, 8 digits, used to identify a PSP. |
| CPF / CNPJ | Brazilian tax ID for individuals (11 digits) / legal entities (14 digits). |
A Pix Automático debit is a Pix transaction, and the payer may raise a MED (special refund mechanism) dispute against a debited transaction; for how to handle it, see MED.
Choosing a Sign-up Method
Sign-up Method Comparison
There are two ways to sign up: generate a composite QR code for the payer to scan, or send an authorization request directly using the payer's bank account. For the QR code method, qrcodeType further determines whether the QR code also collects a first payment.
| Sign-up Method | API | Suitable Scenario | Payer Experience | First Payment |
|---|---|---|---|---|
Authorization-only QR code (AUTHORIZATION_) | Create Composite QR Code | Sign up first; the first period's amount is debited later on schedule | Scan with the bank app or paste the copy-and-paste code, then confirm the authorization details to complete sign-up | None |
Immediate-payment QR code (AUTHORIZATION_) | Create Composite QR Code | Collect the first payment at sign-up (such as the first subscription fee); the QR code has a short validity period | One scan completes the first payment and the sign-up together | Yes |
Static QR code (STATIC_QRCODE) | Create Composite QR Code | A fixed-amount QR code that needs to be printed or displayed long-term | Scan to pay the fixed amount and sign up at the same time | Yes |
Direct authorization request (DIRECT_REQUEST) | Create Authorization Request | The payer's CPF/CNPJ and bank account are already known and scanning is inconvenient for the payer | Receives the authorization request in the bank app and approves or rejects it after review, with no scan needed | None |
The payer reviews and confirms the authorization details in the bank app (such as the payee, payment frequency, amount, and start and end dates); contract helps the payer recognize what is being paid for.
Note
For QR codes with an embedded first payment (AUTHORIZATION_, STATIC_QRCODE), the debit authorization is approved only after that payment is settled. Until the payment is made, the authorization stays CREATED.
Integration Flow
Sign-up and Debit Sequence
In the diagram, the authorization approval, debit instruction submission, and debit result between Adopay and the payer's bank are communicated by Adopay through the Central Bank of Brazil (BCB) and the payer's bank; the partner only integrates with the Adopay APIs and does not interact directly with the Central Bank or the payer's bank.
sequenceDiagram
autonumber
participant M as Partner
participant A as Adopay
participant B as Payer Bank
participant P as Payer
Note over M,P: Sign-up (choose one)
alt Sign up by QR code
M->>A: Create composite QR code
A-->>M: Debit authorization (status = CREATED) and copy-and-paste code
M->>P: Display the QR code or copy-and-paste code
P->>B: Scan and approve the authorization (for a QR code with a first payment, the payment is completed at the same time)
else Direct authorization request
M->>A: Create authorization request (payer CPF/CNPJ and bank account)
A-->>M: Debit authorization (status = CREATED)
B->>P: Push the authorization request in the bank app
P->>B: Approve the authorization
end
B-->>A: Authorization result
A-->>M: Webhook: authorization approved (status = APPROVED)
Note over M,P: Scheduled debits (repeated each period)
M->>A: Create debit order (2 to 10 calendar days before the debit date)
A-->>M: Debit order (orderStatus = PENDING)
A->>B: Submit debit instruction
B-->>A: Schedule accepted (orderStatus = SCHEDULED)
B->>P: Pre-debit reminder
Note over B: Debit on the debit date
B-->>A: Debit result
A-->>M: Webhook: debit succeeded or failed (orderStatus = SUCCESS / FAILED)
Note over M,A: If no webhook arrives, fall back to Get Authorization Details / Get Debit Order DetailsStatus Tracking
Adopay notifies the partner of status changes of debit authorizations and debit orders through Pix Automático Webhook. A webhook is only a result notification: it may be delayed, duplicated, or out of order, and the final status is whatever the query APIs return. The table below lists the events received in each scenario, the suggested handling, and the query fallback when no notification arrives (the full event type name carries the PIX_AUTOMATICO_ prefix, omitted in the table):
| Scenario | Webhook events | Suggested handling | Query fallback if no notification arrives |
|---|---|---|---|
| Payer approves, rejects, or does not respond in time | AUTHORIZATION_ / AUTHORIZATION_ / AUTHORIZATION_ | After approval, activate the subscription and start the schedule; after a rejection or expiry, notify the payer or start a new request | While the authorization is CREATED, periodically call Get Authorization Details until it becomes APPROVED, REJECTED, or EXPIRED |
| QR code with an embedded first payment | CASHIN_ (cashinType is QRCODE) and AUTHORIZATION_; CASHIN_FAILED (PAYMENT_EXPIRED) if unpaid past the payment deadline | Handle the two events separately; their arrival order is not guaranteed; see First Payment | Call Get Debit Order Details with data. from the QR code response; orderStatus becoming SUCCESS means it has been paid |
| Payer cancels the authorization in their bank app | AUTHORIZATION_ (cancellation. is PAYER_) | Immediately stop creating debit orders for this authorization | Before creating a debit order for each period, confirm that the authorization is still APPROVED and has no cancellation request in progress; stop further debits when it is CANCELLED |
| Payee calls Cancel Authorization or Cancel Debit Order | AUTHORIZATION_ / AUTHORIZATION_; CASHIN_ / CASHIN_ | Update the local status once the cancellation takes effect; a rejected cancellation can be requested again; see Cancellation Request | While cancellation. is PENDING, keep querying until it becomes SUCCESS (the primary status becomes CANCELLED) or FAILED (the primary status is unchanged) |
| Debit order schedule and debit result | CASHIN_, CASHIN_, CASHIN_FAILED | Handle FAILED according to failureReason; see Debit Retry | After creation, query orderStatus; query again after the debit date until it becomes SUCCESS or FAILED; use orderStatus=FAILED in List Debit Orders to find debit failures that need handling |
| Refund result | Not pushed by this Webhook; notified through the Cashin Refund Webhook | Update the refund order status | While a refund order is PENDING, keep querying |
As a safety net against missed notifications, it is recommended to scan once a day for authorizations and debit orders that have not reached a final state, using the status filter of List Authorizations and the orderStatus filter of List Debit Orders.
Time Constraints
All dates and times below are calculated in the America/Sao_Paulo time zone.
Constraints at a Glance
| Constraint | Rule | Related API |
|---|---|---|
| Authorization start and end dates | startDate must be today or a future date; endDate must not be earlier than startDate, and omitting it means the authorization is valid indefinitely | Create Composite QR Code |
| Authorization response deadline | The payer must respond before expiresAt (30 days after creation by default; expiresAt prevails); if there is no response by then, the authorization becomes EXPIRED; this applies to both QR code sign-up and direct authorization requests | Get Authorization Details |
| Immediate-payment QR code | expireTime cannot be a past time | Create Composite QR Code (AUTHORIZATION_) |
| Debit order creation window | REGULAR: scheduledDate must be the 2nd to the 10th calendar day after the creation day; RETRY: scheduledDate is between the current day and the 7th calendar day after the original debit date | Create Debit Order |
| Debit retry | At most 3 retries per period, which must be completed within 7 calendar days after the original debit date | Create Debit Order |
| Cancel debit order | The payee must cancel before 22:00 on the day before scheduledDate; the payer can cancel at their bank until 23:59 on the day before scheduledDate | Cancel Debit Order |
| Refund deadline | Within 90 calendar days after the debit succeeds (payTime) | Create Refund |
Debit Order Creation Window
A debit order for a regular debit (REGULAR) must be created between 2 and 10 calendar days before the debit date. This is a Central Bank of Brazil requirement for Pix Automático, intended to give the payer's bank time to remind the payer before the debit.
Example: if the debit date is 2026-11-15, the debit order must be created between 2026-11-05 and 2026-11-13; creating it before 11-05 or after 11-13 is rejected.
Recommendations:
- Use a scheduled job to create debit orders 8 to 9 days before each period's debit date, rather than in the last two days of the window; if
orderStatusisFAILEDafter creation (failureReasonisSUBMISSION_orFAILED SCHEDULE_), there is still time to investigate and handle it within the window.REJECTED - Before creating, confirm that the debit authorization is still
APPROVED.
State Transitions
Debit Authorization
| Status | Meaning | Next |
|---|---|---|
CREATED | Created, waiting for the payer to respond (deadline in expiresAt); for a QR code with an embedded first payment, the authorization is approved only after that payment is settled | Becomes APPROVED once the payer approves, REJECTED once the payer rejects, and EXPIRED if there is no response by the deadline |
APPROVED | Approved by the payer; debit orders can be created at this point (except while a cancellation request is in progress) | Becomes CANCELLED once a cancellation takes effect (cancelled by the payee, or by the payer at their bank) |
REJECTED | Rejected by the payer; see rejection. for the reason | — |
EXPIRED | The payer made no response before expiresAt | — |
CANCELLED | An approved authorization was cancelled; see cancellation. for the reason | — |
Cancel Authorization is processed asynchronously: while the cancellation is being processed, status stays APPROVED, and the progress is in cancellation.; see Cancellation Request.
Debit Order
The debit result is determined by orderStatus:
| Status | Meaning | Next | Final state |
|---|---|---|---|
PENDING | Created; the debit instruction is being submitted or awaiting acceptance (for the first payment, awaiting payment by the payer) | Becomes SCHEDULED once the schedule is accepted; becomes FAILED if submission fails or the schedule is rejected; becomes CANCELLED once a cancellation takes effect. For the transitions of the first payment (QRCODE), see First Payment | No |
SCHEDULED | The schedule has been accepted, awaiting the debit on the debit date | Becomes SUCCESS if the debit succeeds; becomes FAILED if it fails; becomes CANCELLED once a cancellation takes effect | No |
SUCCESS | The debit succeeded on the debit date, with the debit time in payTime; for the first payment, the payer has paid and it has been settled, with the actual paid amount in payAmount | A refund can be requested within 90 calendar days via Create Refund | Yes |
FAILED | The debit could not be made; see failureReason for the reason | SETTLEMENT_ can be handled via Debit Retry | Yes |
CANCELLED | Cancelled; see cancellation. for the reason | — | Yes |
First Payment
When a QR code with an embedded first payment (AUTHORIZATION_, STATIC_QRCODE) is generated, a debit order whose cashinType is QRCODE is created at the same time, and its platform order number is returned in data. of the Create Composite QR Code response. It records the first payment at sign-up, which the payer pays by scanning the QR code; it is not a scheduled debit:
| Status | Meaning |
|---|---|
PENDING | Awaiting payment from the payer |
SUCCESS | The payer has paid and it has been settled: payTime is the payment time and payAmount is the actual paid amount; the debit authorization is then approved |
FAILED | Not paid within the payment deadline; failureReason is PAYMENT_EXPIRED |
Payment deadline by type:
| QR Code Type | Payment Deadline |
|---|---|
AUTHORIZATION_ | expireTime |
STATIC_QRCODE | The QR code itself does not expire, but the debit authorization must be approved before expiresAt; after that the authorization becomes EXPIRED and the first payment becomes FAILED accordingly |
Differences from regular debit orders:
- There is no scheduled debit date (
scheduledDateisnull); the creation window of 2 to 10 calendar days does not apply, and it never entersSCHEDULED. - It cannot be created through Create Debit Order, nor cancelled through Cancel Debit Order.
- After a successful payment, it can be refunded via Create Refund, with the cumulative cap being
payAmount. - After
PAYMENT_EXPIRED, the QR code can no longer be paid and a new QR code must be generated; the original authorization becomesEXPIREDafterexpiresAt. - Regular debit orders for subsequent periods cannot be created before the authorization is approved.
Debit Retry
failureReason | Meaning | Handling |
|---|---|---|
SETTLEMENT_ | The debit failed on the debit date, such as insufficient balance in the payer's account | When allowRetry of the debit authorization is true, create a retry debit order with cashinType = RETRY |
SCHEDULE_ | The schedule was rejected, such as the amount exceeding the limit the payer set at their bank | Not retryable; adjust the amount or contact the payer |
SUBMISSION_ | The debit instruction failed to submit and did not reach the payer's bank | Does not consume a retry; re-create the regular debit order within the creation window |
PAYMENT_EXPIRED | The first payment was not paid within the payment deadline (QRCODE only) | Not retryable; generate a new QR code, see First Payment |
Retry rules:
- Retry is allowed only for
SETTLEMENT_(the debit failed on the debit date, such as insufficient balance) and only whenFAILURE allowRetryof the debit authorization istrue. - At most 3 retries per period, which must be completed within 7 calendar days after the original debit date.
- A retry requires creating another debit order:
cashinTypeisRETRY, andoriginis the order number of the original debit order for this period. Only one retry can be in progress at a time.Plat Order No - To see whether further retries are possible, how many remain, and the latest date, check the
retryobject of the failed debit order.
Example: the debit date is 2026-12-03, the balance is insufficient, the original debit order is FAILED, and the latest date for retry is 12-10:
| Date | Event | Result |
|---|---|---|
| 12-03 | Debit failed on the debit date | 3 retries available |
| 12-04 | 1st retry | Failed, 2 retries remaining |
| 12-06 | 2nd retry | Succeeded, this period is complete |
Once all 3 retries are used, or the debit is still unsuccessful after 12-10, no further retries are possible, and the partner must handle it (notify the payer to top up the balance, suspend the service, or cancel the debit authorization). For the detailed rules for creating a retry debit order, see Create Debit Order.
Cancellation Request
The primary status of a debit authorization or debit order (status / orderStatus) records only outcomes that have already happened. A cancellation initiated by the payee does not change the primary status until it takes effect; its progress is recorded in the cancellation object. The scenarios are as follows:
| Scenario | Primary status | cancellation |
|---|---|---|
| Cancellation never requested | Authorization APPROVED; debit order PENDING / SCHEDULED | null |
| Payee requested cancellation, awaiting effect | Unchanged | status is PENDING |
| Cancellation takes effect | CANCELLED | status is SUCCESS |
| Cancellation rejected | Unchanged | status is FAILED; cancellation can be requested again |
| Payer cancels at their bank | CANCELLED | status is SUCCESS, reason is PAYER_ |
| Debit order cancelled before the debit instruction is submitted | CANCELLED | status is SUCCESS immediately, without passing through PENDING |
- Whether something has been cancelled is determined only by whether the primary status is
CANCELLED;cancellation.beingstatus PENDINGdoes not mean the cancellation succeeded. - While a debit authorization has a cancellation request in progress, no debit orders can be created under it.
cancellationrecords the most recent cancellation request; it isnullif no cancellation was ever requested.
Refund Order
Refunds share the same endpoint as Cash In refunds; the refund status, status transitions, and asynchronous notifications all follow the Cash In refund; see Create Refund, Get Refund Details and the Cashin Refund Webhook.
Amount Rules
A debit authorization uses amountType to select the amount type and amountValue to give the amount; all amounts have two decimal places:
amountType | Meaning of amountValue | Per-period debit order amount amount |
|---|---|---|
FIXED (fixed amount) | The debit amount for each period | Must equal amountValue; otherwise creating a debit order returns a validation failure |
VARIABLE (variable amount) | The expected single-period debit amount (reference value) | May differ each period; no upper limit is validated when creating a debit order |
In a variable-amount authorization, amountValue is only a reference value and does not limit the amount debited each period; the actual amount for each period is the amount given when the debit order is created. The payer's bank may reject a debit order that exceeds the limit the payer set at their bank (orderStatus is FAILED and failureReason is SCHEDULE_).
How to set amountValue for variable amounts
For VARIABLE, amountValue is the expected single-period debit amount; it is for reference only and is neither a minimum nor a maximum debit amount. It is recommended to set it to the amount usually collected per period.
Refunds: each debit order can be partially refunded multiple times, and the cumulative refund amount must not exceed the actual paid amount payAmount of the debit order (equal to amount); see Create Refund.
General Conventions
- Authentication: All APIs in this group use the common signature authentication (ES256 request signing); set
X-Merchant-Idto the partner's primary merchant ID. See Authentication and Request Signing. - Sub-merchants: The partner integrates on behalf of its downstream sub-merchants. The request body of every POST API (Create Composite QR Code, Create Authorization Request, Create Debit Order, Create Refund, Cancel Authorization, Cancel Debit Order) must carry
subMerchantNo, and for APIs that reference an existing authorization or debit order it must match the sub-merchant that object belongs to; the query (GET) detail APIs locate the object by the identifier of the authorization, debit order, or refund order, with the scope limited to the primary merchant ID inX-Merchant-Id, sosubMerchantNois not required; list APIs can filter bysubMerchantNo, and when it is omitted the data of all the partner's sub-merchants is returned; create, cancel, query, and list responses return thesubMerchantNothat the object belongs to. - Response structure: A unified
status,msg,dataenvelope; see Response Format and Response Status. - Asynchronous processing: Debit authorization approval, debit order submission and debit, cancellation, and refund are all asynchronous results, and the API returns the status at the time of acceptance. Results are notified through Webhook, and you can also query actively according to Status Tracking.
- Webhook: The callback URL is configured by the partner, and all events are sent to the same URL using a flat structure:
eventand the business fields at the top level, with no response code ordatawrapper; the business fields are identical todataof the corresponding detail query API and carry thesubMerchantNoit belongs to, based on which the partner routes the event to the corresponding sub-merchant; see Pix Automático Webhook. - Cursor-based pagination: List APIs use cursor-based pagination, ordered from newest to oldest by time; to page, directly request the full URL provided by
data./next data.in the response (omitprevious idanddirectionfor the first page); see "Pagination Behavior" in each list API. - Idempotency: The request body of every create-type API (Create Composite QR Code, Create Authorization Request, Create Debit Order, Create Refund) must carry
mchOrderNo(the merchant order number, up to 64 characters, generated by the integrator, unique under the same API and the same merchant), which is returned as-is in responses and query results; resubmitting the same merchant order number within its validity period returns the result of the first accepted request without processing it again; see Idempotency.mchOrderNois newly generated by the partner for every new request and does not reuse the number from a previous request; the original number is reused only when retrying the same request after a timeout or network failure. Cancel-type APIs (Cancel Authorization, Cancel Debit Order) do not produce an order and do not needmchOrderNo; they identify the object byauthorizationIdandplatOrderNorespectively, and repeating a cancellation returns a state conflict; see Cancel Authorization and Cancel Debit Order. Query (GET) APIs are naturally idempotent and do not need it. - Time and amount: Date fields (request and response) use
YYYY-MM-DDand are dates in the America/Sao_Paulo time zone, not UTC dates; date-time fields are Unix timestamps in seconds (int, UTC); see Date & Time. Amounts are decimal numbers with two decimal places; see Amount & Currency.
API List
| API | Description |
|---|---|
| Create Composite QR Code | Generates a composite QR code; qrcodeType determines the embedded content: authorization only, or authorization plus a first payment (immediate payment, static amount). |
| Create Authorization Request | Sends an authorization request directly to the payer's bank without a QR code; the payer approves or rejects it in the bank app. |
| Get Authorization Details | Queries a single debit authorization. |
| List Authorizations | Lists debit authorizations with cursor-based pagination. |
| Cancel Authorization | Cancels an approved debit authorization. |
| Create Debit Order | Creates a debit order for an approved debit authorization. |
| Get Debit Order Details | Queries a single debit order. |
| List Debit Orders | Lists debit orders with cursor-based pagination; can filter by debit authorization, debit result status, and debit date range. |
| Cancel Debit Order | Cancels a debit order that has not been debited yet. |
| Create Refund | Shares the same endpoint as Cash In refunds: creates a refund via the original Pix path for a successfully debited debit order; partial refunds are supported. |
| Get Refund Details | Shares the same endpoint as Cash In refunds: queries the status and amount of a single refund order. |
| Pix Automático Webhook | Asynchronous callback notifications for status changes of debit authorizations and debit orders, sent by Adopay to the partner's configured callback URL; data carries subMerchantNo. |
Enum Summary
Authorization Enums
Debit authorization status (status): CREATED, APPROVED, REJECTED, EXPIRED, CANCELLED; for their meanings, see State Transitions.
Amount type (amountType)
| Value | Description |
|---|---|
FIXED | Fixed amount: the debit amount is the same every period and equals amountValue |
VARIABLE | Variable amount: the debit amount may differ each period, and amountValue is the expected single-period debit amount (reference value) |
Frequency (frequency)
| Value | Description |
|---|---|
WEEKLY | Weekly |
MONTHLY | Monthly |
QUARTERLY | Quarterly |
SEMIANNUAL | Semiannual |
ANNUAL | Annual |
Authorization rejection reason (request parameter rejectionReason, response rejection.)
| Value | Description |
|---|---|
UNRECOGNIZED_ | Payee not recognized |
NO_ | No need for Pix automatic debit |
LEGAL_ | The service is not offered to legal-entity accounts |
Authorization cancellation reason (request parameter cancellation, response cancellation., debit authorization)
| Value | Description |
|---|---|
ACCOUNT_CLOSURE | Account closed |
RECEIVER_ | Payee company closed down |
PAYER_DECEASED | Payer deceased |
CONFIRMATION_ | Error in the confirmation request |
FRAUD | Fraud |
CONFIRMED_ | Already confirmed through another sign-up method |
RECEIVER_ | Requested by the payee user |
PAYER_ | Requested by the payer user |
REGULATORY_ | Regulatory response timeout |
Sign-up and QR Code Enums
Sign-up method (response signupType; request qrcodeType takes the first three values)
| Value | Description |
|---|---|
AUTHORIZATION_ | Authorization-only QR code |
AUTHORIZATION_ | Immediate-payment QR code |
STATIC_QRCODE | Static QR code |
DIRECT_REQUEST | Direct authorization request (no QR code) |
Debit Order Enums
Debit order type (cashinType)
| Value | Description |
|---|---|
REGULAR | Regular debit (default): automatic debit on schedule under the authorization |
RETRY | Retry after a debit failed on the debit date, see Debit Retry |
QRCODE | The payment embedded in the sign-up QR code (i.e. the first payment), paid by the payer by scanning the QR code and created by the system, see First Payment |
Debit order result status (orderStatus): PENDING, SCHEDULED, SUCCESS, FAILED, CANCELLED; for their meanings, see State Transitions.
Debit failure reason (failureReason): SUBMISSION_, SCHEDULE_, SETTLEMENT_, PAYMENT_EXPIRED; for their meanings, see Debit Retry.
Debit order cancellation reason (request parameter cancellation, response cancellation., debit order)
| Value | Description |
|---|---|
ACCOUNT_CLOSURE | Account closed |
ACCOUNT_BLOCKED | Account frozen |
AUTHORIZATION_ | The debit authorization has been cancelled |
OTHER_ | Requested by another participant |
PAYER_ | Requested by the payer user |
RECEIVER_ | Requested by the payee user |
Cancellation Enums
Cancellation request status (cancellation., debit authorization and debit order)
| Value | Description |
|---|---|
PENDING | The cancellation request has been accepted and is being processed (non-final state) |
SUCCESS | The cancellation has taken effect and the primary status is CANCELLED (final state) |
FAILED | The cancellation was rejected and the primary status is unchanged (final state; cancellation can be requested again) |
Webhook Events
Event type (event): The format is PIX_AUTOMATICO_<object>_<result>; for the trigger conditions and key fields, see Pix Automático Webhook.
| Object | Values |
|---|---|
| Debit authorization | PIX_, PIX_, PIX_, PIX_, PIX_ |
| Debit order | PIX_, PIX_, PIX_, PIX_, PIX_ |
Error Handling
- For common response codes, see Response Status.
- Querying or operating on a resource that does not belong to the current partner (nonexistent, belonging to another company, or an unauthorized account) returns resource not found.
- State-conflict errors (such as creating a debit order for an unapproved debit authorization, repeated cancellation, cancelling past the deadline, requesting a refund for a debit order that was not debited successfully, exceeding the 90-calendar-day refund deadline, retries exhausted or the retry deadline exceeded) are governed by the "Validation Rules" and "Rules" subsections of each API.
- Request body or parameter validation failures (such as
amountValuemissing or not greater than0, theamountof a fixed-amount authorization differing fromamountValue, or the cumulative refund amount exceeding the actual paid amount of the debit order) return a validation failure, with an explanation attached inmsg.