Skip to content

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 ​

ConceptDescription
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 paymentThe 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 numbermchOrderNo 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.
PayeeThe party that initiates the debit authorization and collects the payments, i.e. the partner integrating this API group.
PayerThe 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.
PSPPayment service provider, i.e. the bank or payment institution where the payer or payee holds the account.
ISPBBrazilian payment system institution identifier, 8 digits, used to identify a PSP.
CPF / CNPJBrazilian 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 MethodAPISuitable ScenarioPayer ExperienceFirst Payment
Authorization-only QR code (AUTHORIZATION_QRCODE)Create Composite QR CodeSign up first; the first period's amount is debited later on scheduleScan with the bank app or paste the copy-and-paste code, then confirm the authorization details to complete sign-upNone
Immediate-payment QR code (AUTHORIZATION_WITH_PAYMENT_QRCODE)Create Composite QR CodeCollect the first payment at sign-up (such as the first subscription fee); the QR code has a short validity periodOne scan completes the first payment and the sign-up togetherYes
Static QR code (STATIC_QRCODE)Create Composite QR CodeA fixed-amount QR code that needs to be printed or displayed long-termScan to pay the fixed amount and sign up at the same timeYes
Direct authorization request (DIRECT_REQUEST)Create Authorization RequestThe payer's CPF/CNPJ and bank account are already known and scanning is inconvenient for the payerReceives the authorization request in the bank app and approves or rejects it after review, with no scan neededNone

The payer reviews and confirms the authorization details in the bank app (such as the payee, payment frequency, amount, and start and end dates); contractDescription helps the payer recognize what is being paid for.

Note

For QR codes with an embedded first payment (AUTHORIZATION_WITH_PAYMENT_QRCODE, 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.

mermaid
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 Details

Status 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):

ScenarioWebhook eventsSuggested handlingQuery fallback if no notification arrives
Payer approves, rejects, or does not respond in timeAUTHORIZATION_APPROVED / AUTHORIZATION_REJECTED / AUTHORIZATION_EXPIREDAfter approval, activate the subscription and start the schedule; after a rejection or expiry, notify the payer or start a new requestWhile the authorization is CREATED, periodically call Get Authorization Details until it becomes APPROVED, REJECTED, or EXPIRED
QR code with an embedded first paymentCASHIN_SUCCEEDED (cashinType is QRCODE) and AUTHORIZATION_APPROVED; CASHIN_FAILED (PAYMENT_EXPIRED) if unpaid past the payment deadlineHandle the two events separately; their arrival order is not guaranteed; see First PaymentCall Get Debit Order Details with data.platOrderNo from the QR code response; orderStatus becoming SUCCESS means it has been paid
Payer cancels the authorization in their bank appAUTHORIZATION_CANCELLED (cancellation.reason is PAYER_USER_REQUESTED)Immediately stop creating debit orders for this authorizationBefore 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 OrderAUTHORIZATION_CANCELLED / AUTHORIZATION_CANCELLATION_FAILED; CASHIN_CANCELLED / CASHIN_CANCELLATION_FAILEDUpdate the local status once the cancellation takes effect; a rejected cancellation can be requested again; see Cancellation RequestWhile cancellation.status 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 resultCASHIN_SCHEDULED, CASHIN_SUCCEEDED, CASHIN_FAILEDHandle FAILED according to failureReason; see Debit RetryAfter 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 resultNot pushed by this Webhook; notified through the Cashin Refund WebhookUpdate the refund order statusWhile 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 ​

ConstraintRuleRelated API
Authorization start and end datesstartDate must be today or a future date; endDate must not be earlier than startDate, and omitting it means the authorization is valid indefinitelyCreate Composite QR Code
Authorization response deadlineThe 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 requestsGet Authorization Details
Immediate-payment QR codeexpireTime cannot be a past timeCreate Composite QR Code (AUTHORIZATION_WITH_PAYMENT_QRCODE)
Debit order creation windowREGULAR: 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 dateCreate Debit Order
Debit retryAt most 3 retries per period, which must be completed within 7 calendar days after the original debit dateCreate Debit Order
Cancel debit orderThe 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 scheduledDateCancel Debit Order
Refund deadlineWithin 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 orderStatus is FAILED after creation (failureReason is SUBMISSION_FAILED or SCHEDULE_REJECTED), there is still time to investigate and handle it within the window.
  • Before creating, confirm that the debit authorization is still APPROVED.

State Transitions ​

Debit Authorization ​

StatusMeaningNext
CREATEDCreated, 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 settledBecomes APPROVED once the payer approves, REJECTED once the payer rejects, and EXPIRED if there is no response by the deadline
APPROVEDApproved 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)
REJECTEDRejected by the payer; see rejection.reason for the reason—
EXPIREDThe payer made no response before expiresAt—
CANCELLEDAn approved authorization was cancelled; see cancellation.reason for the reason—

Cancel Authorization is processed asynchronously: while the cancellation is being processed, status stays APPROVED, and the progress is in cancellation.status; see Cancellation Request.

Debit Order ​

The debit result is determined by orderStatus:

StatusMeaningNextFinal state
PENDINGCreated; 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 PaymentNo
SCHEDULEDThe schedule has been accepted, awaiting the debit on the debit dateBecomes SUCCESS if the debit succeeds; becomes FAILED if it fails; becomes CANCELLED once a cancellation takes effectNo
SUCCESSThe 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 payAmountA refund can be requested within 90 calendar days via Create RefundYes
FAILEDThe debit could not be made; see failureReason for the reasonSETTLEMENT_FAILURE can be handled via Debit RetryYes
CANCELLEDCancelled; see cancellation.reason for the reason—Yes

First Payment ​

When a QR code with an embedded first payment (AUTHORIZATION_WITH_PAYMENT_QRCODE, 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.platOrderNo 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:

StatusMeaning
PENDINGAwaiting payment from the payer
SUCCESSThe 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
FAILEDNot paid within the payment deadline; failureReason is PAYMENT_EXPIRED

Payment deadline by type:

QR Code TypePayment Deadline
AUTHORIZATION_WITH_PAYMENT_QRCODEexpireTime
STATIC_QRCODEThe 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 (scheduledDate is null); the creation window of 2 to 10 calendar days does not apply, and it never enters SCHEDULED.
  • 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 becomes EXPIRED after expiresAt.
  • Regular debit orders for subsequent periods cannot be created before the authorization is approved.

Debit Retry ​

failureReasonMeaningHandling
SETTLEMENT_FAILUREThe debit failed on the debit date, such as insufficient balance in the payer's accountWhen allowRetry of the debit authorization is true, create a retry debit order with cashinType = RETRY
SCHEDULE_REJECTEDThe schedule was rejected, such as the amount exceeding the limit the payer set at their bankNot retryable; adjust the amount or contact the payer
SUBMISSION_FAILEDThe debit instruction failed to submit and did not reach the payer's bankDoes not consume a retry; re-create the regular debit order within the creation window
PAYMENT_EXPIREDThe 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_FAILURE (the debit failed on the debit date, such as insufficient balance) and only when allowRetry of the debit authorization is true.
  • 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: cashinType is RETRY, and originPlatOrderNo is the order number of the original debit order for this period. Only one retry can be in progress at a time.
  • To see whether further retries are possible, how many remain, and the latest date, check the retry object 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:

DateEventResult
12-03Debit failed on the debit date3 retries available
12-041st retryFailed, 2 retries remaining
12-062nd retrySucceeded, 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:

ScenarioPrimary statuscancellation
Cancellation never requestedAuthorization APPROVED; debit order PENDING / SCHEDULEDnull
Payee requested cancellation, awaiting effectUnchangedstatus is PENDING
Cancellation takes effectCANCELLEDstatus is SUCCESS
Cancellation rejectedUnchangedstatus is FAILED; cancellation can be requested again
Payer cancels at their bankCANCELLEDstatus is SUCCESS, reason is PAYER_USER_REQUESTED
Debit order cancelled before the debit instruction is submittedCANCELLEDstatus is SUCCESS immediately, without passing through PENDING
  • Whether something has been cancelled is determined only by whether the primary status is CANCELLED; cancellation.status being PENDING does not mean the cancellation succeeded.
  • While a debit authorization has a cancellation request in progress, no debit orders can be created under it.
  • cancellation records the most recent cancellation request; it is null if 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:

amountTypeMeaning of amountValuePer-period debit order amount amount
FIXED (fixed amount)The debit amount for each periodMust 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_REJECTED).

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-Id to 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 in X-Merchant-Id, so subMerchantNo is not required; list APIs can filter by subMerchantNo, and when it is omitted the data of all the partner's sub-merchants is returned; create, cancel, query, and list responses return the subMerchantNo that the object belongs to.
  • Response structure: A unified status, msg, data envelope; 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: event and the business fields at the top level, with no response code or data wrapper; the business fields are identical to data of the corresponding detail query API and carry the subMerchantNo it 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.previous in the response (omit id and direction for 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. mchOrderNo is 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 need mchOrderNo; they identify the object by authorizationId and platOrderNo respectively, 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-DD and 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 ​

APIDescription
Create Composite QR CodeGenerates a composite QR code; qrcodeType determines the embedded content: authorization only, or authorization plus a first payment (immediate payment, static amount).
Create Authorization RequestSends 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 DetailsQueries a single debit authorization.
List AuthorizationsLists debit authorizations with cursor-based pagination.
Cancel AuthorizationCancels an approved debit authorization.
Create Debit OrderCreates a debit order for an approved debit authorization.
Get Debit Order DetailsQueries a single debit order.
List Debit OrdersLists debit orders with cursor-based pagination; can filter by debit authorization, debit result status, and debit date range.
Cancel Debit OrderCancels a debit order that has not been debited yet.
Create RefundShares 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 DetailsShares the same endpoint as Cash In refunds: queries the status and amount of a single refund order.
Pix Automático WebhookAsynchronous 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)

ValueDescription
FIXEDFixed amount: the debit amount is the same every period and equals amountValue
VARIABLEVariable amount: the debit amount may differ each period, and amountValue is the expected single-period debit amount (reference value)

Frequency (frequency)

ValueDescription
WEEKLYWeekly
MONTHLYMonthly
QUARTERLYQuarterly
SEMIANNUALSemiannual
ANNUALAnnual

Authorization rejection reason (request parameter rejectionReason, response rejection.reason)

ValueDescription
UNRECOGNIZED_RECEIVERPayee not recognized
NO_INTEREST_IN_AUTOMATIC_PIXNo need for Pix automatic debit
LEGAL_ENTITY_NOT_OFFEREDThe service is not offered to legal-entity accounts

Authorization cancellation reason (request parameter cancellationReason, response cancellation.reason, debit authorization)

ValueDescription
ACCOUNT_CLOSUREAccount closed
RECEIVER_COMPANY_CLOSUREPayee company closed down
PAYER_DECEASEDPayer deceased
CONFIRMATION_REQUEST_ERRORError in the confirmation request
FRAUDFraud
CONFIRMED_VIA_OTHER_JOURNEYAlready confirmed through another sign-up method
RECEIVER_USER_REQUESTEDRequested by the payee user
PAYER_USER_REQUESTEDRequested by the payer user
REGULATORY_RESPONSE_TIMEOUTRegulatory response timeout

Sign-up and QR Code Enums ​

Sign-up method (response signupType; request qrcodeType takes the first three values)

ValueDescription
AUTHORIZATION_QRCODEAuthorization-only QR code
AUTHORIZATION_WITH_PAYMENT_QRCODEImmediate-payment QR code
STATIC_QRCODEStatic QR code
DIRECT_REQUESTDirect authorization request (no QR code)

Debit Order Enums ​

Debit order type (cashinType)

ValueDescription
REGULARRegular debit (default): automatic debit on schedule under the authorization
RETRYRetry after a debit failed on the debit date, see Debit Retry
QRCODEThe 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_FAILED, SCHEDULE_REJECTED, SETTLEMENT_FAILURE, PAYMENT_EXPIRED; for their meanings, see Debit Retry.

Debit order cancellation reason (request parameter cancellationReason, response cancellation.reason, debit order)

ValueDescription
ACCOUNT_CLOSUREAccount closed
ACCOUNT_BLOCKEDAccount frozen
AUTHORIZATION_CANCELLEDThe debit authorization has been cancelled
OTHER_PARTICIPANT_REQUESTRequested by another participant
PAYER_USER_REQUESTEDRequested by the payer user
RECEIVER_USER_REQUESTEDRequested by the payee user

Cancellation Enums ​

Cancellation request status (cancellation.status, debit authorization and debit order)

ValueDescription
PENDINGThe cancellation request has been accepted and is being processed (non-final state)
SUCCESSThe cancellation has taken effect and the primary status is CANCELLED (final state)
FAILEDThe 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.

ObjectValues
Debit authorizationPIX_AUTOMATICO_AUTHORIZATION_APPROVED, PIX_AUTOMATICO_AUTHORIZATION_REJECTED, PIX_AUTOMATICO_AUTHORIZATION_EXPIRED, PIX_AUTOMATICO_AUTHORIZATION_CANCELLED, PIX_AUTOMATICO_AUTHORIZATION_CANCELLATION_FAILED
Debit orderPIX_AUTOMATICO_CASHIN_SCHEDULED, PIX_AUTOMATICO_CASHIN_SUCCEEDED, PIX_AUTOMATICO_CASHIN_FAILED, PIX_AUTOMATICO_CASHIN_CANCELLED, PIX_AUTOMATICO_CASHIN_CANCELLATION_FAILED

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 amountValue missing or not greater than 0, the amount of a fixed-amount authorization differing from amountValue, or the cumulative refund amount exceeding the actual paid amount of the debit order) return a validation failure, with an explanation attached in msg.