/pix-automatico/authorization/detail Get Authorization Details
Background
Returns a single debit authorization and its authorization information. The debit authorization must be under the current partner.
The query scope is limited to the primary merchant ID in the X-Merchant-Id request header; subMerchantNo is not required.
A debit authorization can be located by any of the following three identifiers; provide at least one, and if several are provided they must refer to the same debit authorization:
authorizationId: the debit authorization ID in the Adopay system.recurrenceId: the authorization number in the Pix network (Central Bank of Brazil) (idRecorrencia).mchOrderNo: the merchant order number passed when the debit authorization was created.
Endpoint
| Item | Value |
|---|---|
| Method | GET |
| Path | /pix-automatico/authorization/detail |
| Content-Type | application/json |
| Purpose | Query a single debit authorization |
Authentication
Uses the common signature authentication (ES256 request signing); set X-Merchant-Id to the partner's primary merchant ID. See Authentication and Request Signing.
Request Fields
For authentication headers, see Authentication; they are not listed in the table below.
| Field | Location | Type | Length | Required | Description |
|---|---|---|---|---|---|
authorizationId | Query | string | 64 | Conditional | Debit authorization ID generated by the Adopay system, globally unique in the Adopay system; provide at least one of this field, recurrenceId, and mchOrderNo. |
recurrenceId | Query | string | 64 | Conditional | The authorization number of this debit authorization in the Pix network (idRecorrencia), i.e. the authorization ID on the Central Bank side; provide at least one of this field, authorizationId, and mchOrderNo. |
mchOrderNo | Query | string | 64 | Conditional | The merchant order number passed when this debit authorization was created (by creating a composite QR code or an authorization request); provide at least one of this field, authorizationId, and recurrenceId. |
This API has no request body.
Request Examples
Example 1: Query by debit authorization ID
GET /pix-automatico/authorization/detail?authorizationId=0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10 HTTP/1.1
X-Merchant-Id: 2492265300
X-Timestamp: 1787011200
X-Nonce: a9f3c1d47e8b9a2c4d1f9e8a7b6c5d4e
Digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Authorization: Signature keyId="v1",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="<ES256_SIGNATURE_BASE64>"Example 2: Query by merchant order number
GET /pix-automatico/authorization/detail?mchOrderNo=AUTH20261009000001 HTTP/1.1
X-Merchant-Id: 2492265300
X-Timestamp: 1787011200
X-Nonce: a9f3c1d47e8b9a2c4d1f9e8a7b6c5d4e
Digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Authorization: Signature keyId="v1",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="<ES256_SIGNATURE_BASE64>"Response Fields
The API uses the standard status, msg, and data response structure.
| Field | Type | Length | Returned | Description |
|---|---|---|---|---|
status | int | 4 | Yes | Response code |
msg | string | 128 | Yes | Message corresponding to status |
data | object | N/A | On success | Debit authorization object; may be omitted when the request fails at signature verification or protocol parsing. |
data. | string | 64 | Yes | The sub-merchant ID that the debit authorization belongs to. |
data. | string | 64 | Yes | Merchant order number, the mchOrderNo passed when this debit authorization was created (by creating a composite QR code or an authorization request). |
data. | string | 64 | Yes | Debit authorization ID generated by the Adopay system, globally unique in the Adopay system. |
data. | string | 64 | Yes | The authorization number of this debit authorization in the Pix network (idRecorrencia), generated by the payee's payment service provider (PSP) under Central Bank of Brazil rules, one-to-one with authorizationId. Can be used for reconciliation with banks and the Pix network and for troubleshooting, and also as a query condition for this API; just store it as-is. |
data. | string | 16 | Yes | Debit authorization status; see the enum below for values. |
data. | string | 64 | Yes | Sign-up method; see the enum below for values. |
data. | string | 16 | Yes | Payment frequency; for values see the overview enum summary. |
data. | string | 10 | Yes | Authorization effective date, format YYYY-MM-DD (a date in the America/Sao_Paulo time zone). |
data. | string | 10 | No | Authorization end date, format YYYY-MM-DD (a date in the America/Sao_Paulo time zone); null when valid indefinitely. |
data. | string | 16 | Yes | Amount type: FIXED (fixed amount) or VARIABLE (variable amount); for values see the overview enum summary. |
data. | decimal | 25,2 | Yes | Amount value, two decimal places. For FIXED, the fixed debit amount per period; for VARIABLE, the expected single-period debit amount (reference value); see Amount Rules. |
data. | string | 35 | Yes | Merchant-side contract number or subscription number. Visible to the payer when confirming the authorization in the bank app. |
data. | string | 35 | No | Description of the authorization purpose, such as Mensalidade (monthly fee). Visible to the payer when confirming the authorization in the bank app, helping the payer recognize the service being debited. |
data. | boolean | N/A | Yes | Whether to allow a retry after a debit fails on the debit date; when allowed, at most 3 retries per period, see Debit Retry. |
data. | string | 64 | Yes | The payer's CPF or CNPJ. |
data. | string | 140 | No | The payer's name or company name; null for a direct authorization request before the payer approves. |
data. | string | 8 | No | The ISPB of the payer's bank, 8 digits; null until provided by the payer. |
data. | string | 4 | No | The branch number (agência) of the payer's account; null until provided by the payer. |
data. | string | 20 | No | The payer's transaction account number, digits only; null until provided by the payer. Sensitive information: mask it in logs and storage. |
data. | int | 19 | No | Deadline for the payer to approve the authorization, Unix timestamp in seconds; if the payer has not responded by then, the authorization becomes EXPIRED. |
data. | int | 19 | Yes | Creation time, Unix timestamp in seconds. |
data. | int | 19 | No | Approval time, Unix timestamp in seconds; null if it has not occurred. |
data. | object | N/A | No | Rejection information, returned only when the authorization was rejected by the payer (status is REJECTED); null for other statuses. |
data. | string | 32 | Yes | Reason the payer rejected; for values see the overview enum summary. |
data. | int | 19 | Yes | Rejection time, Unix timestamp in seconds. |
data. | object | N/A | No | Cancellation information, recording the most recent cancellation request and its processing progress, see Cancellation Request; null if cancellation was never requested. |
data. | string | 16 | Yes | Cancellation request status: PENDING (in progress), SUCCESS (took effect), or FAILED (rejected). Whether it has been cancelled is determined by data.. |
data. | string | 32 | Yes | Cancellation reason; for values see the overview enum summary. |
data. | int | 19 | Yes | Time the cancellation request was accepted, Unix timestamp in seconds; when the payer cancels at their bank, the time Adopay recorded that cancellation. |
data. | int | 19 | No | Time the cancellation took effect, Unix timestamp in seconds; null when cancellation. is not SUCCESS. |
data. | int | 19 | No | Time the cancellation was rejected, Unix timestamp in seconds; null when cancellation. is not FAILED. |
data.signupType Sign-up Method Enum
| Value | Description |
|---|---|
AUTHORIZATION_ | Authorization-only QR code |
AUTHORIZATION_ | Immediate-payment QR code |
STATIC_QRCODE | Static QR code |
DIRECT_REQUEST | Direct authorization request |
data.status Debit Authorization Status Enum
| Value | Description |
|---|---|
CREATED | Created, awaiting approval by the payer; for QR codes with an embedded first payment (AUTHORIZATION_, STATIC_QRCODE), the authorization is approved only after that payment is settled |
FAILED | Failed |
APPROVED | The authorization has been approved by the payer and debit orders can be created; they cannot be created while a cancellation request is in progress (cancellation. is PENDING) |
REJECTED | The authorization was rejected by the payer; see rejection. for the reason |
EXPIRED | The payer made no response before expiresAt |
CANCELLED | The authorization was cancelled after approval; see cancellation. for the reason |
Response Examples
Example 1: Approved debit authorization
{
"status": 200,
"msg": "sucesso",
"data": {
"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
}
}Example 2: Payee's cancellation rejected, authorization still valid
status stays APPROVED and cancellation. is FAILED; if cancellation is still needed, call Cancel Authorization again.
{
"status": 200,
"msg": "sucesso",
"data": {
"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": 1795168840
}
}
}Example 3: Direct authorization request, payer has not yet responded
status is CREATED and payerName is null; they are updated after the payer approves or rejects in the bank app.
{
"status": 200,
"msg": "sucesso",
"data": {
"subMerchantNo": "SUB00000001",
"mchOrderNo": "AUTH20261020000005",
"authorizationId": "e1a7c4b2-3d5f-4a69-8b0c-2f1e9d8c7b64",
"recurrenceId": "RR0435879820261020a1b2c3d4e5f",
"status": "CREATED",
"signupType": "DIRECT_REQUEST",
"frequency": "MONTHLY",
"startDate": "2026-11-01",
"endDate": null,
"amountType": "FIXED",
"amountValue": 150.00,
"contractNo": "CT-2026-0001",
"contractDescription": "Mensalidade",
"allowRetry": true,
"payerDocument": "12345678901",
"payerName": null,
"payerIspb": "04358798",
"payerBranch": "0001",
"payerAccountNumber": "9876543",
"expiresAt": 1795100400,
"createdAt": 1792508400,
"approvedAt": null,
"rejection": null,
"cancellation": null
}
}Response Error Codes
Back to Pix Subscription Overview