/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_, AUTHORIZATION_, AUTHORIZATION_) 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,
payerNamein the response isnull.
Endpoint
| Item | Value |
|---|---|
| Method | POST |
| Path | /pix-automatico/authorization/create |
| Content-Type | application/json |
| Purpose | Send a debit authorization request directly to the payer's bank |
Authentication
Uses the common signature authentication (ES256 request signing). 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 |
|---|---|---|---|---|---|
mchOrderNo | Body | string | 64 | Yes | Merchant order number, newly generated by the merchant 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. |
payerDocument | Body | string | 64 | Yes | The payer's CPF (11 digits) or CNPJ (14 characters, may contain letters). |
payerIspb | Body | string | 8 | Yes | ISPB of the payer's bank, 8 digits. |
payerBranch | Body | string | 4 | No | Branch number (agência) of the payer's account. |
payer | Body | string | 20 | Yes | The payer's transaction account number, digits only; include the check digit if there is one. |
frequency | Body | string | 16 | Yes | Payment frequency; for values see the overview enum summary. |
startDate | Body | string | 10 | Yes | Authorization effective date, format YYYY-MM-DD (a date in the America/Sao_Paulo time zone); must be today or a future date. |
endDate | Body | string | 10 | No | Authorization 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. |
amountType | Body | string | 16 | Yes | Amount 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. |
amountValue | Body | decimal | 25,2 | Yes | Amount 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. |
contractNo | Body | string | 35 | Yes | Merchant-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. |
contract | Body | 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. |
allowRetry | Body | boolean | N/A | No | Whether 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
amountValuemust be greater than0; whenamountTypeisFIXEDit is the fixed debit amount per period, and whenVARIABLEit is the expected single-period debit amount (reference value).payerIspbcannot be the same as the ISPB of the payee's service provider; otherwise a validation failure is returned.
Request Example
Request header example:
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:
{
"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. is CREATED and data. is DIRECT_REQUEST; the approval or rejection result is obtained through Get Authorization Details.
| 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. 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. | string | 64 | Yes | Merchant order number, echoed from the 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 for Get Authorization Details; just store it as-is. |
data. | string | 16 | Yes | Debit authorization status, CREATED at creation; for all values see the Overview. |
data. | string | 64 | Yes | Sign-up method; always DIRECT_REQUEST for this API. |
data. | string | 16 | Yes | Payment frequency, echoed from the request. |
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 or VARIABLE, echoed from the request. |
data. | decimal | 25,2 | Yes | Amount value, two decimal places, echoed from the request; for its meaning see Amount Rules. |
data. | string | 35 | Yes | Merchant-side contract number or subscription number, echoed from the request. |
data. | string | 35 | No | Description of the authorization purpose, echoed from the request; null if not provided. |
data. | boolean | N/A | Yes | Whether to allow a retry after a debit fails on the debit date, echoed from the request (true if not provided). |
data. | string | 64 | Yes | The payer's CPF or CNPJ, echoed from the request. |
data. | string | 140 | No | The payer's name or company name; null before the payer approves. |
data. | string | 8 | Yes | The ISPB of the payer's bank, echoed from the request. |
data. | string | 4 | No | The branch number (agência) of the payer's account, echoed from the request; null if not sent. |
data. | string | 20 | Yes | The payer's transaction account number, echoed from the request. Sensitive information: mask it in logs and storage. |
data. | int | 19 | No | Deadline 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. | int | 19 | Yes | Creation time, Unix timestamp in seconds. |
Response Example
{
"status": 200,
"msg": "sucesso",
"data": {
"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