Skip to main content

Scenario simulation

Step-by-step guide to simulate the creation of recurrences and automatic payments within the scope of PIX Automático. These simulations include creating recurrences and creating scheduled payments.

1 - Recurrence creation simulation

Request

ENDPOINT
/mock/incoming_recurrence
METHOD
POST
Request Body: Fixed amount recurrence
{
"request_control_key": "01585acf-b0c3-4389-baf3-a58abbe92d58",
"recurrence_type": "fixed_amount",
"transaction_amount": 100.50,
"periodicity": "monthly",
"journey_type": "journey_one",
"start_date": "2025-07-01",
"is_retry_allowed": true,
"payer_account_information": {
"owner_name": "John Doe",
"document_number": "06975239000136",
"ispb": "32402502",
"account_digit": "7",
"account_branch": "3",
"account_number": "9552432"
}
Request Body: Variable amount recurrence
{
"request_control_key": "01585acf-b0c3-4389-baf3-a58abbe92d58",
"recurrence_type": "variable_amount",
"minimum_transaction_amount": 50.00,
"periodicity": "monthly",
"journey_type": "journey_one",
"start_date": "2025-07-01",
"is_retry_allowed": true,
"payer_account_information": {
"owner_name": "John Doe",
"document_number": "06975239000136",
"ispb": "32402502",
"account_digit": "7",
"account_branch": "3",
"account_number": "9552432"}

Request Body Object

FieldTypeDescriptionMax. Char.
request_control_key*stringUnique request identification key in uuid4 format36
recurrence_type*stringRecurrence type (fixed_amount or variable_amount)20
transaction_amountnumber, nullTransaction amount for fixed amount recurrence (fixed_amount)10
minimum_transaction_amountnumber, nullMinimum transaction amount for variable amount recurrence (variable_amount)10
periodicity*stringRecurrence periodicity20
journey_type*stringAuthorization journey type50
start_date*stringRecurrence start date (YYYY-MM-DD format)10
end_datestring, nullRecurrence end date (YYYY-MM-DD format)10
is_retry_allowed*booleanTransaction retry permission-
payer_account_information*objectPayer account data-
pix_messagestring, nullPIX message associated with the transaction140
Note

At least one of the fields transaction_amount or minimum_transaction_amount must be provided with a non-null value. Both fields cannot be null simultaneously.

payer_account_information Object

FieldTypeDescriptionMax. Char.
owner_name*stringAccount holder name150
document_number*stringAccount holder CPF or CNPJ (numbers only)14
ispb*stringFinancial institution ISPB code8
account_digit*stringAccount digit1
account_branch*stringAccount branch6
account_number*stringAccount number20
Recurrence Types
  • Fixed amount recurrence (fixed_amount): Use the transaction_amount field and do not send minimum_transaction_amount
  • Variable amount recurrence (variable_amount): Use the minimum_transaction_amount field and do not send transaction_amount

Response

STATUS
200
Response Body
{
"incoming_recurrence_key": "e13c5986-f4d1-4d07-a56b-eda90862630a",
"incoming_recurrence_spi_id": "RR32402502202507170197A5B7CB9",
"incoming_recurrence_status": "pending_confirmation",
"created_at": "2025-07-17T14:44:38Z",
"account_key": "ba685cfd-3aee-4992-b6bf-58f8038faa6b"
}

Response Body

FieldTypeDescriptionCharacters
incoming_recurrence_keyuuidUnique incoming recurrence identification key36
incoming_recurrence_spi_idstringIncoming recurrence SPI identifier29
incoming_recurrence_statusenumeratorCurrent incoming recurrence statusincoming_recurrence_status Enumerators
created_atstringRecurrence creation date and time (ISO 8601 format)-
account_keyuuidUnique account identification key36

incoming_recurrence_status Enumerators

EnumeratorDescription
pending_confirmationRecurrence pending confirmation
activeActive recurrence
cancelledCancelled recurrence
suspendedSuspended recurrence
expiredExpired recurrence

2 - Payment creation simulation

Request

ENDPOINT
/mock/incoming_recurrence/INCOMING_RECURRENCE_SPI_ID/outgoing_payment
METHOD
POST
Request Body
{
"transaction_amount": 100.50,
"target_account_data": {
"owner_name": "John Doe",
"owner_document_number": "06975239000136",
"ispb": "32402502",
"account_digit": "7",
"account_branch": "3",
"account_type": "checking_account",
"account_number": "9552432"
},
"receiver_conciliation_id": "3d7d6a2bf72f44z7bb2079a2b94dff56452",
"outgoing_payment_spi_id": "7d2d1b6cd72f44z7bb2079a2b94dff52673",
"end_to_end_id": "E60701190202110191604DY5LHIZ9O66",
"next_execution_datetime": "2023-06-01"
}

Request Body Object

FieldTypeDescriptionMax. Char.
transaction_amount*numberTransaction amount10
target_account_dataobjectTarget account data-
receiver_conciliation_id*stringReceiver conciliation identification35
outgoing_payment_spi_id*stringPayment SPI identifier20
end_to_end_id*stringPIX transaction idempotency key in SPI32
next_execution_datetimestringNext execution date and time (YYYY-MM-DD format)10

target_account_data Object

FieldTypeDescriptionMax. Char.
owner_name*stringAccount holder name150
owner_document_number*stringAccount holder CPF or CNPJ (numbers only)14
ispb_number*stringFinancial institution ISPB code8
account_digit*stringAccount digit1
account_branch*stringAccount branch6
account_type*stringAccount type20
account_number*stringAccount number20

account_type Enumerator

EnumeratorDescription
checking_accountChecking Account
salary_accountSalary Account
saving_accountSavings Account
payment_accountPayment Account

periodicity Enumerators

EnumeratorDescription
weeklyWeekly recurrence
monthlyMonthly recurrence
quarterlyQuarterly recurrence
semiannualSemiannual recurrence
annualAnnual recurrence

journey_type Enumerators

EnumeratorDescription
journey_oneAuthorization request via app notification
journey_twoAuthorization request via QR Code reading
journey_threeRecurrence authorization through an immediate pix via QR Code reading
journey_fourPayment or scheduling of a pix with a recurrence authorization request in sequence