Pix Automático Webhook Notifications
1. Overview
Debit authorization approval and cancellation, and debit order scheduling and debit results all occur asynchronously. When these statuses change, Adopay notifies the merchant of the result through an asynchronous HTTP callback, so the merchant does not need to poll each order.
This page defines 10 events in two categories. Apart from the common field event, the business fields of every event sit at the top level of the request body and are identical to data in the response of the corresponding detail query API (same field names, types, and enums, which are not repeated on this page):
| Object | Events | Business fields |
|---|---|---|
| Debit authorization | Approved, rejected, expired, cancellation effective, cancellation rejected (5) | Get Authorization Details |
| Debit order | Schedule accepted, debit succeeded, debit failed, cancellation effective, cancellation rejected (5) | Get Debit Order Details |
Note
A webhook is only a result notification. It may be delayed, duplicated, or out of order, and it is not the source of truth. The final status is whatever the corresponding query API returns; if an expected event does not arrive for a long time, actively query according to Status Tracking.
Debits of Pix Automático push only the events on this page; they do not also trigger the Cashin Webhook. Refunds share the same endpoint as Cash In refunds, so refund results are not pushed on this page and are notified through the Cashin Refund Webhook. A MED dispute raised by the payer on a debited transaction is notified through the MED Webhook.
2. Callback URL and Method
| Item | Value |
|---|---|
| Method | POST |
| URL | The Pix Automático callback URL that the merchant configures in the merchant dashboard (or through operations); it must be a complete HTTPS URL |
| Content-Type | application/json |
| Purpose | Notifies status changes of debit authorizations and debit orders |
All events are sent to the same callback URL; route them by event. Sandbox and production are configured separately.
3. Request Headers
Callback requests carry the unified Adopay signature and verification headers (X-Merchant-Id, X-Timestamp, X-Nonce, Digest, Authorization). For the field descriptions and the verification steps, see section 4 of the Webhook Specification and Webhook Signature Verification.
4. Request Body Fields
Common Fields
All events carry the following field; the business fields follow at the same level:
| Field | Type | Length | Returned | Description |
|---|---|---|---|---|
event | string | 64 | Yes | Event type; see "Event Types" below. |
Consistent with the platform's other webhooks (cashin / payout), occurredAt is not provided. Use the business object's own time fields (such as createdAt, approvedAt, payTime) for business time.
Business Fields
The business fields are placed at the top level of the request body, next to event, and have the same structure as data of the corresponding detail query. They are a snapshot of the object frozen at delivery time, and a redelivered event carries exactly the same payload. There is no integer response code (status + msg) in the body; the notification itself is always a normal one, and the business result is determined by the object's primary status field.
Fields that may be empty are returned as null (including nested objects such as rejection, cancellation, and retry); date-time fields are Unix timestamps in seconds (int, UTC), and date fields are YYYY-MM-DD (America/Sao_Paulo time zone), consistent with the corresponding query APIs.
Status Field
The primary status field has the same name as in the query API. Its value is a status string (for example APPROVED, SUCCESS), not an integer response code, and it does not indicate whether the notification itself succeeded. Which object it describes is determined by event:
| Object | Field shared by webhook and query |
|---|---|
| Debit authorization | status |
| Debit order | orderStatus |
cancellation. is a nested field and keeps its name.
Event Types
event has the format PIX_AUTOMATICO_<object>_<result>. Treat it as an opaque string and match the whole value (<result> may itself contain _, as in CANCELLATION_). The "Key fields" column lists the decisive field values when the event arrives.
event | Trigger | Key fields |
|---|---|---|
PIX_ | The payer approves the authorization; for a QR code with an embedded first payment, approval happens after the first payment is settled | status is APPROVED, approvedAt has a value |
PIX_ | The payer rejects the authorization | status is REJECTED, rejection. is the rejection reason |
PIX_ | The payer does not respond before expiresAt | status is EXPIRED |
PIX_ | The authorization cancellation takes effect: a cancellation initiated by the payee is confirmed, or the payer cancels in their bank, etc. | status is CANCELLED, cancellation. is SUCCESS |
PIX_ | A cancellation initiated by the payee is rejected and the authorization remains valid | status stays APPROVED, cancellation. is FAILED |
PIX_ | The schedule has been accepted, awaiting the debit on the debit date | orderStatus is SCHEDULED |
PIX_ | The debit succeeded; also triggered when a first payment (cashinType is QRCODE) is settled | orderStatus is SUCCESS, payTime, payAmount, and e2eId have values |
PIX_ | The debit failed | orderStatus is FAILED, failureReason is the failure reason, retry gives the retry information |
PIX_ | The debit order cancellation takes effect: a cancellation initiated by the payee is confirmed, or the payer cancels in their bank, etc. | orderStatus is CANCELLED, cancellation. is SUCCESS |
PIX_ | A cancellation initiated by the payee is rejected and the debit order is still debited as planned | orderStatus is unchanged (such as SCHEDULED), cancellation. is FAILED |
No notification is pushed in these cases, because the result is already given in the synchronous API response: the accepted status of a newly created debit authorization or debit order, and the in-progress state after the payee initiates a cancellation (cancellation. is PENDING).
5. Event Examples
One complete payload is given for each of the 10 events and can be used directly as an integration reference. Field names are identical to data of the corresponding detail query.
5.1 PIX_AUTOMATICO_AUTHORIZATION_APPROVED (authorization approved)
{
"event": "PIX_AUTOMATICO_AUTHORIZATION_APPROVED",
"mchOrderNo": "AUTH20261009000001",
"authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
"recurrenceId": "RR0435879820261001abc123def45",
"status": "APPROVED",
"signupType": "AUTHORIZATION_QRCODE",
"frequency": "MONTHLY",
"startDate": "2026-11-01",
"endDate": null,
"amountType": "FIXED",
"amountValue": 150.00,
"contractNo": "CT-2026-0001",
"contractDescription": "Mensalidade",
"allowRetry": true,
"payerDocument": "12345678901",
"payerName": "João Silva",
"payerIspb": "04358798",
"payerBranch": "0001",
"payerAccountNumber": "9876543",
"expiresAt": 1794173400,
"createdAt": 1791581400,
"approvedAt": 1791637500,
"rejection": null,
"cancellation": null
}5.2 PIX_AUTOMATICO_AUTHORIZATION_REJECTED (authorization rejected)
When the payer rejects the authorization, rejection is present and approvedAt is null; the payer did not complete the authorization, so payerIspb, payerBranch, and payer are null.
{
"event": "PIX_AUTOMATICO_AUTHORIZATION_REJECTED",
"mchOrderNo": "AUTH20261009000002",
"authorizationId": "1a2b3c4d-5e6f-7081-92a3-b4c5d6e7f809",
"recurrenceId": "RR0435879820261002abc123def45",
"status": "REJECTED",
"signupType": "AUTHORIZATION_QRCODE",
"frequency": "MONTHLY",
"startDate": "2026-11-01",
"endDate": null,
"amountType": "FIXED",
"amountValue": 150.00,
"contractNo": "CT-2026-0002",
"contractDescription": "Mensalidade",
"allowRetry": true,
"payerDocument": "12345678901",
"payerName": "João Silva",
"payerIspb": null,
"payerBranch": null,
"payerAccountNumber": null,
"expiresAt": 1794173400,
"createdAt": 1791581400,
"approvedAt": null,
"rejection": {
"reason": "REJECTED",
"rejectedAt": 1791638000
},
"cancellation": null
}5.3 PIX_AUTOMATICO_AUTHORIZATION_EXPIRED (authorization expired)
The payer did not respond before expiresAt; rejection and cancellation are both null.
{
"event": "PIX_AUTOMATICO_AUTHORIZATION_EXPIRED",
"mchOrderNo": "AUTH20261009000003",
"authorizationId": "2b3c4d5e-6f70-8192-a3b4-c5d6e7f8091a",
"recurrenceId": "RR0435879820261003abc123def45",
"status": "EXPIRED",
"signupType": "AUTHORIZATION_QRCODE",
"frequency": "MONTHLY",
"startDate": "2026-11-01",
"endDate": null,
"amountType": "FIXED",
"amountValue": 150.00,
"contractNo": "CT-2026-0003",
"contractDescription": "Mensalidade",
"allowRetry": true,
"payerDocument": "12345678901",
"payerName": "João Silva",
"payerIspb": null,
"payerBranch": null,
"payerAccountNumber": null,
"expiresAt": 1794173400,
"createdAt": 1791581400,
"approvedAt": null,
"rejection": null,
"cancellation": null
}5.4 PIX_AUTOMATICO_AUTHORIZATION_CANCELLED (payer cancels the authorization in their bank)
When the payer bypasses the merchant and cancels the authorization directly in the bank app, this notification is the merchant's only proactive way to learn about it, and cancellation. is PAYER_. After receiving it, immediately stop creating debit orders for this authorization.
{
"event": "PIX_AUTOMATICO_AUTHORIZATION_CANCELLED",
"mchOrderNo": "AUTH20261009000001",
"authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
"recurrenceId": "RR0435879820261001abc123def45",
"status": "CANCELLED",
"signupType": "AUTHORIZATION_QRCODE",
"frequency": "MONTHLY",
"startDate": "2026-11-01",
"endDate": null,
"amountType": "FIXED",
"amountValue": 150.00,
"contractNo": "CT-2026-0001",
"contractDescription": "Mensalidade",
"allowRetry": true,
"payerDocument": "12345678901",
"payerName": "João Silva",
"payerIspb": "04358798",
"payerBranch": "0001",
"payerAccountNumber": "9876543",
"expiresAt": 1794173400,
"createdAt": 1791581400,
"approvedAt": 1791637500,
"rejection": null,
"cancellation": {
"status": "SUCCESS",
"reason": "PAYER_USER_REQUESTED",
"requestedAt": 1795168800,
"cancelledAt": 1795168800,
"failedAt": null
}
}5.5 PIX_AUTOMATICO_AUTHORIZATION_CANCELLATION_FAILED (authorization cancellation rejected)
A cancellation initiated by the payee is rejected and the authorization remains valid: status stays APPROVED and cancellation. is FAILED.
{
"event": "PIX_AUTOMATICO_AUTHORIZATION_CANCELLATION_FAILED",
"mchOrderNo": "AUTH20261009000001",
"authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
"recurrenceId": "RR0435879820261001abc123def45",
"status": "APPROVED",
"signupType": "AUTHORIZATION_QRCODE",
"frequency": "MONTHLY",
"startDate": "2026-11-01",
"endDate": null,
"amountType": "FIXED",
"amountValue": 150.00,
"contractNo": "CT-2026-0001",
"contractDescription": "Mensalidade",
"allowRetry": true,
"payerDocument": "12345678901",
"payerName": "João Silva",
"payerIspb": "04358798",
"payerBranch": "0001",
"payerAccountNumber": "9876543",
"expiresAt": 1794173400,
"createdAt": 1791581400,
"approvedAt": 1791637500,
"rejection": null,
"cancellation": {
"status": "FAILED",
"reason": "RECEIVER_USER_REQUESTED",
"requestedAt": 1795168800,
"cancelledAt": null,
"failedAt": 1795169000
}
}5.6 PIX_AUTOMATICO_CASHIN_SCHEDULED (schedule accepted)
{
"event": "PIX_AUTOMATICO_CASHIN_SCHEDULED",
"mchOrderNo": "CASHIN20261025000001",
"platOrderNo": "PAC202610250000000001",
"authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
"cashinType": "REGULAR",
"attemptNumber": 1,
"originPlatOrderNo": null,
"scheduledDate": "2026-11-03",
"amount": 150.00,
"payAmount": null,
"e2eId": null,
"orderStatus": "SCHEDULED",
"createdAt": 1792929600,
"payTime": null,
"failureReason": null,
"cancellation": null,
"retry": null
}5.7 PIX_AUTOMATICO_CASHIN_SUCCEEDED (debit succeeded)
{
"event": "PIX_AUTOMATICO_CASHIN_SUCCEEDED",
"mchOrderNo": "CASHIN20261025000001",
"platOrderNo": "PAC202610250000000001",
"authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
"cashinType": "REGULAR",
"attemptNumber": 1,
"originPlatOrderNo": null,
"scheduledDate": "2026-11-03",
"amount": 150.00,
"payAmount": 150.00,
"e2eId": "E1234567820261103143000123456789",
"orderStatus": "SUCCESS",
"createdAt": 1792929600,
"payTime": 1793716200,
"failureReason": null,
"cancellation": null,
"retry": null
}5.8 PIX_AUTOMATICO_CASHIN_FAILED (debit failed, retryable)
failureReason is SETTLEMENT_, and retry gives the remaining retries and the latest retry date, based on which the merchant can decide whether to create a retry debit order.
{
"event": "PIX_AUTOMATICO_CASHIN_FAILED",
"mchOrderNo": "CASHIN20261125000002",
"platOrderNo": "PAC202611250000000002",
"authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
"cashinType": "REGULAR",
"attemptNumber": 1,
"originPlatOrderNo": null,
"scheduledDate": "2026-12-03",
"amount": 150.00,
"payAmount": null,
"e2eId": null,
"orderStatus": "FAILED",
"createdAt": 1795608000,
"payTime": null,
"failureReason": "SETTLEMENT_FAILURE",
"cancellation": null,
"retry": {
"retryable": true,
"remainingRetries": 3,
"retryDeadline": "2026-12-10"
}
}5.9 PIX_AUTOMATICO_CASHIN_CANCELLED (payer cancels this period's debit in their bank)
The payer can cancel a single period's debit in their bank until 23:59 on the day before scheduledDate. Only that period is cancelled; the debit authorization remains valid and later periods proceed as usual.
{
"event": "PIX_AUTOMATICO_CASHIN_CANCELLED",
"mchOrderNo": "CASHIN20261226000004",
"platOrderNo": "PAC202612260000000004",
"authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
"cashinType": "REGULAR",
"attemptNumber": 1,
"originPlatOrderNo": null,
"scheduledDate": "2027-01-03",
"amount": 150.00,
"payAmount": null,
"e2eId": null,
"orderStatus": "CANCELLED",
"createdAt": 1798286400,
"payTime": null,
"failureReason": null,
"cancellation": {
"status": "SUCCESS",
"reason": "PAYER_USER_REQUESTED",
"requestedAt": 1798909200,
"cancelledAt": 1798909200,
"failedAt": null
},
"retry": null
}5.10 PIX_AUTOMATICO_CASHIN_CANCELLATION_FAILED (debit order cancellation rejected)
A cancellation initiated by the payee is rejected and the debit order proceeds as planned: orderStatus is unchanged (such as SCHEDULED) and cancellation. is FAILED.
{
"event": "PIX_AUTOMATICO_CASHIN_CANCELLATION_FAILED",
"mchOrderNo": "CASHIN20261226000005",
"platOrderNo": "PAC202612260000000005",
"authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
"cashinType": "REGULAR",
"attemptNumber": 1,
"originPlatOrderNo": null,
"scheduledDate": "2027-01-03",
"amount": 150.00,
"payAmount": null,
"e2eId": null,
"orderStatus": "SCHEDULED",
"createdAt": 1798286400,
"payTime": null,
"failureReason": null,
"cancellation": {
"status": "FAILED",
"reason": "RECEIVER_USER_REQUESTED",
"requestedAt": 1798909200,
"cancelledAt": null,
"failedAt": 1798909400
},
"retry": null
}6. Merchant Response Requirements and Retries
After completing idempotent processing, the merchant should return HTTP 200–299 with a plain-text response body of SUCCESS or OK:
HTTP/1.1 200 OK
Content-Type: text/plain
SUCCESSWhether Adopay retries is decided by the HTTP status code and the response body together:
| HTTP status | Response body | Result |
|---|---|---|
200–299 | Exactly SUCCESS or OK after trimming leading and trailing whitespace | Notification succeeded, no further retries |
200–299 | Empty body, JSON, other text, or a different letter case | Notification failed, retries continue |
Not 2xx | Any content | Notification failed, retries continue |
| No HTTP response received | Network timeout or connection failure | Notification failed, retries continue |
SUCCESS and OK are case-sensitive. The merchant must respond within 3 seconds. After the first delivery fails, Adopay retries up to 14 times, for up to 15 deliveries in total; a retried delivery has the same payload as the first. For the common rules (transport, timeout, signature verification), see the Webhook Specification.
7. Integration Notes
- Idempotency: The notification has no event ID; deduplicate by "business object ID +
event":authorizationId+eventfor authorization events, andplatOrderNo+eventfor debit order events. ForPIX_andAUTOMATICO_ AUTHORIZATION_ CANCELLATION_ FAILED PIX_, which can recur on the same object after the payee requests cancellation again, addAUTOMATICO_ CASHIN_ CANCELLATION_ FAILED cancellation.to the key. When you receive a key that has already been processed, return success directly without processing it again.failedAt - Ordering: Events are not guaranteed to arrive in the order they occurred. Judge by each object's state machine: states only move forward, and an old state must not overwrite a newer one. Debit authorization:
CREATED→APPROVED→CANCELLED(REJECTEDandEXPIREDare final states); debit order:PENDING→SCHEDULED→SUCCESS/FAILED/CANCELLED. Ignore an event whose status is earlier than the recorded one; when you cannot decide, call the query API; see State Transitions. - A first payment produces two events: For a QR code with an embedded first payment, a single payment by the payer produces two events,
PIX_(AUTOMATICO_ CASHIN_ SUCCEEDED cashinTypeisQRCODE) andPIX_. Their arrival order is not guaranteed; handle them separately and do not assume which comes first.AUTOMATICO_ AUTHORIZATION_ APPROVED - Payer cancels the authorization in their bank: Such a cancellation comes with no prior notice. After receiving
PIX_, immediately stop creating debit orders for this authorization; for debit orders already created under it and not yet debited, rely on theirAUTOMATICO_ AUTHORIZATION_ CANCELLED orderStatus(or the subsequentPIX_notification).AUTOMATICO_ CASHIN_ CANCELLED - Handling debit failures: Distinguish by
failureReason.SUBMISSION_andFAILED SCHEDULE_must be handled within the debit order creation window; forREJECTED SETTLEMENT_, checkFAILURE retryto decide whether to retry;PAYMENT_EXPIREDrequires generating a new QR code; see Debit Retry. - Snapshot moment: The business fields are a snapshot of the object frozen when the event was first enqueued; a redelivery carries the same content. When an event arrives late or conflicts with the recorded status, rely on what the query API returns.
- Sensitive information:
payerDocument,payerName, andpayerare sensitive; mask them in logs and storage; see section 8 of the Webhook Specification.Account Number
Back to Pix Subscription Overview