Skip to content

/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 ​

ItemValue
MethodGET
Path/pix-automatico/authorization/detail
Content-Typeapplication/json
PurposeQuery 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.

FieldLocationTypeLengthRequiredDescription
authorizationIdQuerystring64ConditionalDebit authorization ID generated by the Adopay system, globally unique in the Adopay system; provide at least one of this field, recurrenceId, and mchOrderNo.
recurrenceIdQuerystring64ConditionalThe 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.
mchOrderNoQuerystring64ConditionalThe 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

http
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

http
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.

FieldTypeLengthReturnedDescription
statusint4YesResponse code
msgstring128YesMessage corresponding to status
dataobjectN/AOn successDebit authorization object; may be omitted when the request fails at signature verification or protocol parsing.
data.subMerchantNostring64YesThe sub-merchant ID that the debit authorization belongs to.
data.mchOrderNostring64YesMerchant order number, the mchOrderNo passed when this debit authorization was created (by creating a composite QR code or an authorization request).
data.authorizationIdstring64YesDebit authorization ID generated by the Adopay system, globally unique in the Adopay system.
data.recurrenceIdstring64YesThe 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.statusstring16YesDebit authorization status; see the enum below for values.
data.signupTypestring64YesSign-up method; see the enum below for values.
data.frequencystring16YesPayment frequency; for values see the overview enum summary.
data.startDatestring10YesAuthorization effective date, format YYYY-MM-DD (a date in the America/Sao_Paulo time zone).
data.endDatestring10NoAuthorization end date, format YYYY-MM-DD (a date in the America/Sao_Paulo time zone); null when valid indefinitely.
data.amountTypestring16YesAmount type: FIXED (fixed amount) or VARIABLE (variable amount); for values see the overview enum summary.
data.amountValuedecimal25,2YesAmount 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.contractNostring35YesMerchant-side contract number or subscription number. Visible to the payer when confirming the authorization in the bank app.
data.contractDescriptionstring35NoDescription 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.allowRetrybooleanN/AYesWhether to allow a retry after a debit fails on the debit date; when allowed, at most 3 retries per period, see Debit Retry.
data.payerDocumentstring64YesThe payer's CPF or CNPJ.
data.payerNamestring140NoThe payer's name or company name; null for a direct authorization request before the payer approves.
data.payerIspbstring8NoThe ISPB of the payer's bank, 8 digits; null until provided by the payer.
data.payerBranchstring4NoThe branch number (agência) of the payer's account; null until provided by the payer.
data.payerAccountNumberstring20NoThe payer's transaction account number, digits only; null until provided by the payer. Sensitive information: mask it in logs and storage.
data.expiresAtint19NoDeadline for the payer to approve the authorization, Unix timestamp in seconds; if the payer has not responded by then, the authorization becomes EXPIRED.
data.createdAtint19YesCreation time, Unix timestamp in seconds.
data.approvedAtint19NoApproval time, Unix timestamp in seconds; null if it has not occurred.
data.rejectionobjectN/ANoRejection information, returned only when the authorization was rejected by the payer (status is REJECTED); null for other statuses.
data.rejection.reasonstring32YesReason the payer rejected; for values see the overview enum summary.
data.rejection.rejectedAtint19YesRejection time, Unix timestamp in seconds.
data.cancellationobjectN/ANoCancellation information, recording the most recent cancellation request and its processing progress, see Cancellation Request; null if cancellation was never requested.
data.cancellation.statusstring16YesCancellation request status: PENDING (in progress), SUCCESS (took effect), or FAILED (rejected). Whether it has been cancelled is determined by data.status.
data.cancellation.reasonstring32YesCancellation reason; for values see the overview enum summary.
data.cancellation.requestedAtint19YesTime the cancellation request was accepted, Unix timestamp in seconds; when the payer cancels at their bank, the time Adopay recorded that cancellation.
data.cancellation.cancelledAtint19NoTime the cancellation took effect, Unix timestamp in seconds; null when cancellation.status is not SUCCESS.
data.cancellation.failedAtint19NoTime the cancellation was rejected, Unix timestamp in seconds; null when cancellation.status is not FAILED.

data.signupType Sign-up Method Enum ​

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

data.status Debit Authorization Status Enum ​

ValueDescription
CREATEDCreated, awaiting approval by the payer; for QR codes with an embedded first payment (AUTHORIZATION_WITH_PAYMENT_QRCODE, STATIC_QRCODE), the authorization is approved only after that payment is settled
FAILEDFailed
APPROVEDThe 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.status is PENDING)
REJECTEDThe authorization was rejected by the payer; see rejection.reason for the reason
EXPIREDThe payer made no response before expiresAt
CANCELLEDThe authorization was cancelled after approval; see cancellation.reason for the reason

Response Examples ​

Example 1: Approved debit authorization

json
{
  "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.status is FAILED; if cancellation is still needed, call Cancel Authorization again.

json
{
  "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.

json
{
  "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