Skip to content

/pix-automatico/authorization/create Create Authorization Request ​

Background ​

Sends a debit authorization request directly to the specified payer's bank, without generating a QR code. The payer receives the authorization request in their bank app and approves or rejects it after reviewing the payee, payment frequency, amount, and start and end dates. Suitable when the payer's CPF/CNPJ and bank account information are already known and scanning is inconvenient for the payer; see Choosing a Sign-up Method.

After the request is accepted, the debit authorization status is CREATED and signupType is DIRECT_REQUEST. The payer must respond before expiresAt (30 days after creation by default); if there is no response by then, the authorization becomes EXPIRED. The approval, rejection, or expiry result is notified through Webhook (AUTHORIZATION_APPROVED, AUTHORIZATION_REJECTED, AUTHORIZATION_EXPIRED) and can also be obtained through Get Authorization Details; see Status Tracking.

Compared with QR code sign-up:

  • The payer does not need to scan; the authorization request appears directly in their bank app.
  • No first payment is collected with the request; to collect a first payment at sign-up, use Create Composite QR Code.
  • Before the payer approves, payerName in the response is null.

Endpoint ​

ItemValue
MethodPOST
Path/pix-automatico/authorization/create
Content-Typeapplication/json
PurposeSend a debit authorization request directly to the payer's bank

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
subMerchantNoBodystring64YesSub-merchant ID.
mchOrderNoBodystring64YesMerchant order number, newly generated by the partner for each request, i.e. the merchant order number of this debit authorization. Unique under the same API and the same merchant, used for duplicate prevention; the original number is reused only when retrying the same request after a timeout or network failure, and a duplicate submission within the validity period returns the result of the first accepted request; see Idempotency.
payerDocumentBodystring64YesThe payer's CPF (11 digits) or CNPJ (14 characters, may contain letters).
payerIspbBodystring8YesISPB of the payer's bank, 8 digits.
payerBranchBodystring4NoBranch number (agência) of the payer's account.
payerAccountNumberBodystring20YesThe payer's transaction account number, digits only; include the check digit if there is one.
frequencyBodystring16YesPayment frequency; for values see the overview enum summary.
startDateBodystring10YesAuthorization effective date, format YYYY-MM-DD (a date in the America/Sao_Paulo time zone); must be today or a future date.
endDateBodystring10NoAuthorization end date, format YYYY-MM-DD (a date in the America/Sao_Paulo time zone); if omitted, the authorization is valid indefinitely; must not be earlier than startDate.
amountTypeBodystring16YesAmount type: FIXED (fixed amount, the debit amount is the same every period) or VARIABLE (variable amount, the debit amount may differ each period); for values see the overview enum summary and for the rules see Amount Rules.
amountValueBodydecimal25,2YesAmount value, two decimal places, must be greater than 0. When amountType is FIXED, it is the fixed debit amount per period; when VARIABLE, it is the expected single-period debit amount, for reference only, and the actual debit amount of each period may differ.
contractNoBodystring35YesMerchant-side contract number or subscription number. Visible to the payer when confirming the authorization in the bank app, used to identify which contract it is.
contractDescriptionBodystring35NoDescription 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.
allowRetryBodybooleanN/ANoWhether to allow a retry after a debit fails on the debit date; default true. When allowed, at most 3 retries per period, which must be completed within 7 calendar days after the original debit date; see Debit Retry.

Validation Rules ​

  • amountValue must be greater than 0; when amountType is FIXED it is the fixed debit amount per period, and when VARIABLE it is the expected single-period debit amount (reference value).
  • payerIspb cannot be the same as the ISPB of the payee's service provider; otherwise a validation failure is returned.

Request Example ​

Request header example:

http
POST /pix-automatico/authorization/create HTTP/1.1
Content-Type: application/json
X-Merchant-Id: 2492265300
X-Timestamp: 1787011200
X-Nonce: a9f3c1d47e8b9a2c4d1f9e8a7b6c5d4e
Digest: SHA-256=<Base64 digest>
Authorization: Signature keyId="v1",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="<ES256_SIGNATURE_BASE64>"

Request body example:

json
{
  "subMerchantNo": "SUB00000001",
  "mchOrderNo": "AUTH20261020000005",
  "payerDocument": "12345678901",
  "payerIspb": "04358798",
  "payerBranch": "0001",
  "payerAccountNumber": "9876543",
  "frequency": "MONTHLY",
  "startDate": "2026-11-01",
  "amountType": "FIXED",
  "amountValue": 150.00,
  "contractNo": "CT-2026-0001",
  "contractDescription": "Mensalidade",
  "allowRetry": true
}

Response Fields ​

The API uses the standard status, msg, and data response structure. After this API accepts the request, data.status is CREATED and data.signupType is DIRECT_REQUEST; the approval or rejection result is obtained through Get Authorization Details.

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. The approval time (approvedAt), rejection information (rejection), and cancellation information (cancellation) are not returned at creation; when needed, obtain them through Get Authorization Details.
data.subMerchantNostring64YesSub-merchant ID, identical to subMerchantNo in the request.
data.mchOrderNostring64YesMerchant order number, echoed from the 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 for Get Authorization Details; just store it as-is.
data.statusstring16YesDebit authorization status, CREATED at creation; for all values see the Overview.
data.signupTypestring64YesSign-up method; always DIRECT_REQUEST for this API.
data.frequencystring16YesPayment frequency, echoed from the request.
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 or VARIABLE, echoed from the request.
data.amountValuedecimal25,2YesAmount value, two decimal places, echoed from the request; for its meaning see Amount Rules.
data.contractNostring35YesMerchant-side contract number or subscription number, echoed from the request.
data.contractDescriptionstring35NoDescription of the authorization purpose, echoed from the request; null if not provided.
data.allowRetrybooleanN/AYesWhether to allow a retry after a debit fails on the debit date, echoed from the request (true if not provided).
data.payerDocumentstring64YesThe payer's CPF or CNPJ, echoed from the request.
data.payerNamestring140NoThe payer's name or company name; null before the payer approves.
data.payerIspbstring8YesThe ISPB of the payer's bank, echoed from the request.
data.payerBranchstring4NoThe branch number (agência) of the payer's account, echoed from the request; null if not sent.
data.payerAccountNumberstring20YesThe payer's transaction account number, echoed from the request. Sensitive information: mask it in logs and storage.
data.expiresAtint19NoDeadline for the payer to respond to the authorization request, Unix timestamp in seconds; if the payer has not responded by then, the authorization becomes EXPIRED.
data.createdAtint19YesCreation time, Unix timestamp in seconds.

Response Example ​

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
  }
}

Response Error Codes ​


Back to Pix Subscription Overview