Skip to content

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 partner of the result through an asynchronous HTTP callback, so the partner does not need to poll each order. Every event carries the sub-merchant number (subMerchantNo) of the object's owner, so the partner can route the event to the corresponding downstream sub-merchant.

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, including subMerchantNo, which are not repeated on this page):

ObjectEventsBusiness fields
Debit authorizationApproved, rejected, expired, cancellation effective, cancellation rejected (5)Get Authorization Details
Debit orderSchedule 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 ​

ItemValue
MethodPOST
URLThe Pix Automático webhook callback URL configured by the partner; it must be a complete HTTPS URL
Content-Typeapplication/json
PurposeNotifies status changes of debit authorizations and debit orders

All events (including those of all sub-merchants) are sent to the same callback URL; first route them by event, then hand each to the corresponding sub-merchant by subMerchantNo. 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:

FieldTypeLengthReturnedDescription
eventstring64YesEvent 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. subMerchantNo is the number of the sub-merchant that owns the object and is always returned. 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:

ObjectField shared by webhook and query
Debit authorizationstatus
Debit orderorderStatus

cancellation.status 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_FAILED). The "Key fields" column lists the decisive field values when the event arrives.

eventTriggerKey fields
PIX_AUTOMATICO_AUTHORIZATION_APPROVEDThe payer approves the authorization; for a QR code with an embedded first payment, approval happens after the first payment is settledstatus is APPROVED, approvedAt has a value
PIX_AUTOMATICO_AUTHORIZATION_REJECTEDThe payer rejects the authorizationstatus is REJECTED, rejection.reason is the rejection reason
PIX_AUTOMATICO_AUTHORIZATION_EXPIREDThe payer does not respond before expiresAtstatus is EXPIRED
PIX_AUTOMATICO_AUTHORIZATION_CANCELLEDThe authorization cancellation takes effect: a cancellation initiated by the payee is confirmed, or the payer cancels in their bank, etc.status is CANCELLED, cancellation.status is SUCCESS
PIX_AUTOMATICO_AUTHORIZATION_CANCELLATION_FAILEDA cancellation initiated by the payee is rejected and the authorization remains validstatus stays APPROVED, cancellation.status is FAILED
PIX_AUTOMATICO_CASHIN_SCHEDULEDThe schedule has been accepted, awaiting the debit on the debit dateorderStatus is SCHEDULED
PIX_AUTOMATICO_CASHIN_SUCCEEDEDThe debit succeeded; also triggered when a first payment (cashinType is QRCODE) is settledorderStatus is SUCCESS, payTime, payAmount, and e2eId have values
PIX_AUTOMATICO_CASHIN_FAILEDThe debit failedorderStatus is FAILED, failureReason is the failure reason, retry gives the retry information
PIX_AUTOMATICO_CASHIN_CANCELLEDThe 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.status is SUCCESS
PIX_AUTOMATICO_CASHIN_CANCELLATION_FAILEDA cancellation initiated by the payee is rejected and the debit order is still debited as plannedorderStatus is unchanged (such as SCHEDULED), cancellation.status 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.status 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) ​

json
{
  "event": "PIX_AUTOMATICO_AUTHORIZATION_APPROVED",
  "subMerchantNo": "SUB00000001",
  "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 payerAccountNumber are null.

json
{
  "event": "PIX_AUTOMATICO_AUTHORIZATION_REJECTED",
  "subMerchantNo": "SUB00000001",
  "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.

json
{
  "event": "PIX_AUTOMATICO_AUTHORIZATION_EXPIRED",
  "subMerchantNo": "SUB00000001",
  "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 partner and cancels the authorization directly in the bank app, this notification is the partner's only proactive way to learn about it, and cancellation.reason is PAYER_USER_REQUESTED. After receiving it, immediately stop creating debit orders for this authorization.

json
{
  "event": "PIX_AUTOMATICO_AUTHORIZATION_CANCELLED",
  "subMerchantNo": "SUB00000001",
  "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.status is FAILED.

json
{
  "event": "PIX_AUTOMATICO_AUTHORIZATION_CANCELLATION_FAILED",
  "subMerchantNo": "SUB00000001",
  "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) ​

json
{
  "event": "PIX_AUTOMATICO_CASHIN_SCHEDULED",
  "subMerchantNo": "SUB00000001",
  "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) ​

json
{
  "event": "PIX_AUTOMATICO_CASHIN_SUCCEEDED",
  "subMerchantNo": "SUB00000001",
  "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_FAILURE, and retry gives the remaining retries and the latest retry date, based on which the partner can decide whether to create a retry debit order.

json
{
  "event": "PIX_AUTOMATICO_CASHIN_FAILED",
  "subMerchantNo": "SUB00000001",
  "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.

json
{
  "event": "PIX_AUTOMATICO_CASHIN_CANCELLED",
  "subMerchantNo": "SUB00000001",
  "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.status is FAILED.

json
{
  "event": "PIX_AUTOMATICO_CASHIN_CANCELLATION_FAILED",
  "subMerchantNo": "SUB00000001",
  "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. Partner Response Requirements and Retries ​

After completing idempotent processing, the partner should return HTTP 200–299 with a plain-text response body of SUCCESS or OK:

http
HTTP/1.1 200 OK
Content-Type: text/plain

SUCCESS

Whether Adopay retries is decided by the HTTP status code and the response body together:

HTTP statusResponse bodyResult
200–299Exactly SUCCESS or OK after trimming leading and trailing whitespaceNotification succeeded, no further retries
200–299Empty body, JSON, other text, or a different letter caseNotification failed, retries continue
Not 2xxAny contentNotification failed, retries continue
No HTTP response receivedNetwork timeout or connection failureNotification failed, retries continue

SUCCESS and OK are case-sensitive. The partner 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 ​

  1. Idempotency: The notification has no event ID; deduplicate by "business object ID + event": authorizationId + event for authorization events, and platOrderNo + event for debit order events. For PIX_AUTOMATICO_AUTHORIZATION_CANCELLATION_FAILED and PIX_AUTOMATICO_CASHIN_CANCELLATION_FAILED, which can recur on the same object after the payee requests cancellation again, add cancellation.failedAt to the key. When you receive a key that has already been processed, return success directly without processing it again.
  2. 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 (REJECTED and EXPIRED are 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.
  3. 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 (cashinType is QRCODE) and PIX_AUTOMATICO_AUTHORIZATION_APPROVED. Their arrival order is not guaranteed; handle them separately and do not assume which comes first.
  4. Payer cancels the authorization in their bank: Such a cancellation comes with no prior notice. After receiving PIX_AUTOMATICO_AUTHORIZATION_CANCELLED, immediately stop creating debit orders for this authorization; for debit orders already created under it and not yet debited, rely on their orderStatus (or the subsequent PIX_AUTOMATICO_CASHIN_CANCELLED notification).
  5. Handling debit failures: Distinguish by failureReason. SUBMISSION_FAILED and SCHEDULE_REJECTED must be handled within the debit order creation window; for SETTLEMENT_FAILURE, check retry to decide whether to retry; PAYMENT_EXPIRED requires generating a new QR code; see Debit Retry.
  6. 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.
  7. Route by sub-merchant: Deduplicate by the key above first, then hand the event to the corresponding sub-merchant by subMerchantNo.
  8. Sensitive information: payerDocument, payerName, and payerAccountNumber are sensitive; mask them in logs and storage; see section 8 of the Webhook Specification.

Back to Pix Subscription Overview