Create a Recurrence (Journey 2)
Journey 2 — QR Code with recurrence data only
Overview
QR Code that presents only the recurrence data for the payer to authorize, without immediate charge.
Onboarding without initial charge; use at points of sale, counters, screens or printed materials.
Payer reads QR → views recurrence data in app → authorizes → future charges can be scheduled.
Agile enablement via QR; allows mass customer acquisition with low friction and QR can be reused for new recurrences.
Request
/account/account_key/outgoing_recurrence/journey_twoPOSTRequest Path Params
| Field | Type | Description | Characters |
|---|---|---|---|
account_key* | uuid4 | Unique identifier key for the account. | 36 |
Request Body
Request Body: Create Recurrence (Journey 2)
{
"request_control_key": "98fc62fd-b0a0-4604-9bea-475e91a9dc82",
"periodicity": "monthly",
"minimum_recurrence_amount": 125,
"start_date": "2025-06-10",
"end_date": "2027-06-10",
"pix_message": "Conta de Luz Residencial nº123",
"recurrence_type": "variable_amount",
"debtor_data": {
"name": "Sebastião",
"email": "sebastiao@test.com",
"document_number": "05431134850",
"contract_id": "124587624",
"address": {
"street": "Av. Brigadeiro Faria Lima",
"state": "SP",
"city": "São Paulo",
"neighborhood": "Jardim Paulistano",
"number": "2391",
"postal_code": "01452905",
"complement": "Complemento"
}
},
"retry_configuration": {
"retry_allowed": true,
"retry_rule": {
"first_retry": {
"day": "1"
},
"second_retry": {
"day": "3"
},
"third_retry": {
"day": "4"
}
}
},
"settlement_date_type": "workdays"
}
Body Params
| Field | Type | Description | Characters |
|---|---|---|---|
request_control_key * | uuid | Unique request identifier key used by the client in uuid4 format. | 36 |
periodicity * | enumerator | Type of periodicity associated with the subscription recurrence. | periodicity Enumerators |
minimum_recurrence_amount | number | Lowest maximum amount the payer can set when authorizing the recurrence, in reais (e.g., 125.50 = R$ 125.50). It is not the minimum amount of each charge. Required when recurrence_type is variable_amount; must not be sent with fixed_amount. | - |
recurrence_amount | number | Amount of each charge, in reais (e.g., 125.50 = R$ 125.50). Required when recurrence_type is fixed_amount; must not be sent with variable_amount. | - |
start_date * | string | Recurrence start date (YYYY-MM-DD format, e.g., "2025-07-01"). Must be later than today. | - |
end_date | string | Recurrence end date; for indefinite period, send as null. | - |
pix_message | string | Message to be sent with the PIX transaction. Accepts null. | 140 |
debtor_data * | Object | Debtor (subscriber) data. | debtor_data Object |
retry_configuration * | Object | Retry configuration for incomplete transactions. | retry_configuration Object |
settlement_date_type * | enumerator | Type of settlement date adjustment | settlement_date_type Enumerators |
recurrence_type * | enumerator | Type of recurrence | recurrence_type Enumerators |
minimum_recurrence_amount and recurrence_amount are sent in reais, not in cents. Sending recurrence_amount: 12500 meaning R$ 125.00 creates charges of R$ 12,500.00.
In a variable amount recurrence, the payer can set a maximum amount for the charges when authorizing. minimum_recurrence_amount is the lowest maximum the payer can choose: a payer who tries to set a cap below it has the authorization rejected. The charges themselves can have any amount up to the payer's cap.
Send exactly one of the two fields, according to recurrence_type:
variable_amount: sendminimum_recurrence_amount.fixed_amount: sendrecurrence_amount.
Sending both fields, or neither, returns a 400 error.
start_date must be later than today; otherwise the request is rejected.
Each cycle's charge is prepared 2 days before its settlement date and, for variable amount recurrences, the charge amount must be sent up to 2 days before it. With a start_date too close to today, there may not be time for the first charge.
periodicity Enumerators
| Enumerator | Description |
|---|---|
weekly | Weekly recurrence |
monthly | Monthly recurrence |
quarterly | Quarterly recurrence |
semiannual | Semiannual recurrence |
annual | Annual recurrence |
settlement_date_type Enumerators
| Enumerator | Description |
|---|---|
workdays | Business days |
calendar_days | Calendar days |
recurrence_type Enumerators
| Enumerator | Description |
|---|---|
fixed_amount | Fixed Amount Recurrence |
variable_amount | Variable Amount Recurrence |
debtor_data Object
| Field | Type | Description | Characters |
|---|---|---|---|
name * | string | Subscriber name. | 100 |
email * | string | Subscriber email. The field is required but accepts null. | - |
document_number * | string | Subscriber CPF (11 digits) or CNPJ (14 characters), without punctuation. | 14 |
contract_id * | string | Subscriber contract identifier. | 100 |
address * | Object | Subscriber address. | address Object |
address Object
| Field | Type | Description | Characters |
|---|---|---|---|
street | string | Street. | - |
state | string | State. | - |
city | string | City. | - |
neighborhood | string | Neighborhood. | - |
number | string | Number. | - |
postal_code | string | Postal code. | - |
complement | string | Complement. | - |
retry_configuration Object
| Field | Type | Description | Characters |
|---|---|---|---|
retry_allowed * | boolean | Indicates whether retries are allowed. | - |
retry_rule | Object | Retry rules. Send it when retry_allowed is true. | retry_rule Object |
retry_rule Object
When retry_rule is sent, all three retries are required.
| Field | Type | Description | Characters |
|---|---|---|---|
first_retry * | Object | First retry configuration. | retry_detail Object |
second_retry * | Object | Second retry configuration. | retry_detail Object |
third_retry * | Object | Third retry configuration. | retry_detail Object |
retry_detail Object
| Field | Type | Description | Characters |
|---|---|---|---|
day * | string | Number of days after the original charge date on which the retry runs. A single digit, from "0" to "9". | 1 |
Response
201Response Body
{
"request_control_key": "98fc62fd-b0a0-4604-9bea-475e91a9dc82",
"outgoing_recurrence_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"outgoing_recurrence_spi_id": "RR3240250220250601A1B2C3D4E5F",
"outgoing_recurrence_status": "pending_confirmation",
"qr_code_data": {
"qr_code_url": "url",
"qr_code_key": "98fc62fd-b0a0-4604-9bea-475e91a9dc85",
"qr_code_image": "imageb64"
},
"created_at": "2021-10-22T20:30:23.459Z"
}
Response Body
| Field | Type | Description | Characters |
|---|---|---|---|
request_control_key | uuid | Request control key sent by the client. | 36 |
outgoing_recurrence_key | uuid | Unique identifier key for the subscription recurrence. | 36 |
outgoing_recurrence_spi_id | string | Recurrence identifier in the SPI (idRec), generated by QI Tech. | 29 |
outgoing_recurrence_status | enumerator | Current recurrence status. | recurrence_status Enumerators |
qr_code_data | Object | Data of the QR code generated for the payer to authorize the recurrence. | qr_code_data Object |
created_at | string | Recurrence creation date and time (ISO 8601 format). | - |
qr_code_data Object
| Field | Type | Description | Characters |
|---|---|---|---|
qr_code_url | string | URL of the QR code copy and paste | - |
qr_code_key | uuid | Unique identifier key for the QR code. | 36 |
qr_code_image | string | Base64 of the QR code image | - |
recurrence_status Enumerators
| Enumerator | Description |
|---|---|
pending_confirmation | Recurrence pending confirmation |
active | Active recurrence |
cancelled | Cancelled recurrence |
suspended | Suspended recurrence |
expired | Expired recurrence |
4XXResponse Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em português",
"code": "codigo"
}
| HTTP Code | QI Codecode | Titletitle | Description (eng)description | Description (ptbr)translation |
|---|---|---|---|---|
| 400 | QIT000002 | Bad Request | Invalid request schema. | Erro no esquema da requisição. |
| 403 | APX000030 | Unauthorized Transaction | User is not authorized to create this recurrence. | Usuário não autorizado a criar esta recorrência. |
| 403 | APX000018 | Endpoint Access Denied | Requester lacks permission to access this endpoint. | Requester não possui permissão para acessar este endpoint. |
| 404 | APX000021 | Subscription Not Found | Subscription {subscription_key} not found. | Assinatura {subscription_key} não encontrada. |
| 404 | APX000002 | Recurrence Not Found | Recurrence {recurrence_key} not found. | Recorrência {recurrence_key} não encontrada. |
| 406 | APX000027 | Invalid Transaction Amount | Transaction amount {minimum_transaction_amount} is invalid. | Valor da transação {minimum_transaction_amount} é inválido. |
| 409 | APX000014 | Request Control Key Conflict | The request_control_key {request_control_key} is already in use. | A request_control_key {request_control_key} já está em uso. |