Skip to main content

Create a Recurrence (Journey 2)

Journey 2 — QR Code with recurrence data only

Overview

What is it

QR Code that presents only the recurrence data for the payer to authorize, without immediate charge.

When to use

Onboarding without initial charge; use at points of sale, counters, screens or printed materials.

How it works

Payer reads QR → views recurrence data in app → authorizes → future charges can be scheduled.

Benefits

Agile enablement via QR; allows mass customer acquisition with low friction and QR can be reused for new recurrences.

Request​

ENDPOINT
/account/account_key/outgoing_recurrence/journey_two
METHOD
POST

Request Path Params​

FieldTypeDescriptionCharacters
account_key*uuid4Unique 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​

FieldTypeDescriptionCharacters
request_control_key *uuidUnique request identifier key used by the client in uuid4 format.36
periodicity *enumeratorType of periodicity associated with the subscription recurrence.periodicity Enumerators
minimum_recurrence_amountnumberLowest 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_amountnumberAmount 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 *stringRecurrence start date (YYYY-MM-DD format, e.g., "2025-07-01"). Must be later than today.-
end_datestringRecurrence end date; for indefinite period, send as null.-
pix_messagestringMessage to be sent with the PIX transaction. Accepts null.140
debtor_data *ObjectDebtor (subscriber) data.debtor_data Object
retry_configuration *ObjectRetry configuration for incomplete transactions.retry_configuration Object
settlement_date_type *enumeratorType of settlement date adjustmentsettlement_date_type Enumerators
recurrence_type *enumeratorType of recurrencerecurrence_type Enumerators
Attention — amounts in reais

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: send minimum_recurrence_amount.
  • fixed_amount: send recurrence_amount.

Sending both fields, or neither, returns a 400 error.

Attention — start date

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​

EnumeratorDescription
weeklyWeekly recurrence
monthlyMonthly recurrence
quarterlyQuarterly recurrence
semiannualSemiannual recurrence
annualAnnual recurrence

settlement_date_type Enumerators​

EnumeratorDescription
workdaysBusiness days
calendar_daysCalendar days

recurrence_type Enumerators​

EnumeratorDescription
fixed_amountFixed Amount Recurrence
variable_amountVariable Amount Recurrence

debtor_data Object​

FieldTypeDescriptionCharacters
name *stringSubscriber name.100
email *stringSubscriber email. The field is required but accepts null.-
document_number *stringSubscriber CPF (11 digits) or CNPJ (14 characters), without punctuation.14
contract_id *stringSubscriber contract identifier.100
address *ObjectSubscriber address.address Object

address Object​

FieldTypeDescriptionCharacters
streetstringStreet.-
statestringState.-
citystringCity.-
neighborhoodstringNeighborhood.-
numberstringNumber.-
postal_codestringPostal code.-
complementstringComplement.-

retry_configuration Object​

FieldTypeDescriptionCharacters
retry_allowed *booleanIndicates whether retries are allowed.-
retry_ruleObjectRetry rules. Send it when retry_allowed is true.retry_rule Object

retry_rule Object​

When retry_rule is sent, all three retries are required.

FieldTypeDescriptionCharacters
first_retry *ObjectFirst retry configuration.retry_detail Object
second_retry *ObjectSecond retry configuration.retry_detail Object
third_retry *ObjectThird retry configuration.retry_detail Object

retry_detail Object​

FieldTypeDescriptionCharacters
day *stringNumber of days after the original charge date on which the retry runs. A single digit, from "0" to "9".1

Response​

STATUS
201
Response 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​

FieldTypeDescriptionCharacters
request_control_keyuuidRequest control key sent by the client.36
outgoing_recurrence_keyuuidUnique identifier key for the subscription recurrence.36
outgoing_recurrence_spi_idstringRecurrence identifier in the SPI (idRec), generated by QI Tech.29
outgoing_recurrence_statusenumeratorCurrent recurrence status.recurrence_status Enumerators
qr_code_dataObjectData of the QR code generated for the payer to authorize the recurrence.qr_code_data Object
created_atstringRecurrence creation date and time (ISO 8601 format).-

qr_code_data Object​

FieldTypeDescriptionCharacters
qr_code_urlstringURL of the QR code copy and paste-
qr_code_keyuuidUnique identifier key for the QR code.36
qr_code_imagestringBase64 of the QR code image-

recurrence_status Enumerators​

EnumeratorDescription
pending_confirmationRecurrence pending confirmation
activeActive recurrence
cancelledCancelled recurrence
suspendedSuspended recurrence
expiredExpired recurrence
STATUS
4XX
Response Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em português",
"code": "codigo"
}
HTTP CodeQI Code
code
Title
title
Description (eng)
description
Description (ptbr)
translation
400QIT000002Bad RequestInvalid request schema.Erro no esquema da requisição.
403APX000030Unauthorized TransactionUser is not authorized to create this recurrence.Usuário não autorizado a criar esta recorrência.
403APX000018Endpoint Access DeniedRequester lacks permission to access this endpoint.Requester não possui permissão para acessar este endpoint.
404APX000021Subscription Not FoundSubscription {subscription_key} not found.Assinatura {subscription_key} não encontrada.
404APX000002Recurrence Not FoundRecurrence {recurrence_key} not found.Recorrência {recurrence_key} não encontrada.
406APX000027Invalid Transaction AmountTransaction amount {minimum_transaction_amount} is invalid.Valor da transação {minimum_transaction_amount} é inválido.
409APX000014Request Control Key ConflictThe request_control_key {request_control_key} is already in use.A request_control_key {request_control_key} já está em uso.