API Reference
Automatic Pix

Create a recurrence

POST/automatic/recurrences
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Creates a Pix Automático recurrence with an immediate payment. The player pays the returned brcode and authorizes the recurrence in the bank app; the authorization (AutomaticRecurrenceAuthorization) and each payment (AutomaticPixDepositPayment) arrive at automaticDepositUrl. Charges then happen on each date from dateFirstRecurrence on.

If the QR Code is not paid by expirationDate, the recurrence becomes EXPIRED (4108).

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Body

application/json
taxIdstringrequired

Payer CPF.

Example: "604.184.437-34"
namestringrequired

Payer name.

Example: "Ana Ribeiro"
amountintegerrequired

Amount of each charge in cents.

Example: 2500
frequencystringrequired

Frequency (4443 otherwise).

WEEKLYMONTHLYQUARTERLYBIANNUALANNUAL
Example: "MONTHLY"
dateFirstRecurrencestringrequired

First charge (yyyy-MM-dd), at least 2 days from today (4505).

Example: "2026-10-26"
totalRecurrencesintegerrequired

Number of charges.

Example: 12
descriptionToPayerstringrequired

Text shown to the payer.

Example: "Assinatura mensal do clube"
immediateTransactionobjectrequired

Immediate payment that comes with the authorization.

Show child attributes
amountintegerrequired

Amount of the immediate payment in cents (4506 when missing).

Example: 2500
expirationInSecondsinteger

Validity of the QR Code (default 3600).

Example: 3600
contractobject

Contract the recurrence pays.

Show child attributes
idstring

Contract id, up to 35 alphanumeric chars. Generated when omitted.

Example: "assinatura0001"
descriptionstring

Contract description. Defaults to descriptionToPayer.

Example: "Assinatura do clube"
canBePaidAfterRecurrencyDateboolean

Whether a charge can be paid after its date.

Example: false
externalIdstring

Your identifier, a UUID (2010 otherwise). Generated when omitted.

Example: "5c3d8382-ab14-4d30-b42b-bc806ecc69a7"
tagsstring[]

Free tags returned in responses and notifications (up to 5).

bankAccountsobject[]

Accounts the payer may pay from.

Show child attributes
bankCodestringrequired

ISPB (PSP code) of the bank, up to 8 digits.

Example: "18236120"
branchCodestring

Branch, up to 4 digits. Required in manual withdrawals unless accountType is payment.

Example: "1"
accountTypestring

Account type. Required in manual withdrawals.

checkingsalarysavingspayment
Example: "checking"
accountNumberstringrequired

Account number with check digit, up to 20 digits.

Example: "12345678"

Responses

201Recurrence created.
idstring

Recurrence id.

Example: "e7c925a5-c9a7-4144-b84f-a3d99cc13d97"
externalIdstring

Your identifier (UUID).

bankingIdstring

Recurrence id at the Central Bank (RR…).

Example: "RR30980539202610211dbfcf5ab19"
namestring

Payer name.

taxIdstring

Payer CPF.

amountinteger

Amount of each charge in cents.

Example: 2500
statusstring

Status of the recurrence.

PENDINGAUTHORIZEDREJECTEDCANCELLEDEXPIREDFAILED
subStatusstring

Detailed status.

AWAITING_FIRST_PAYMENTFIRST_PAYMENT_SUCCESSVALIDATION_SUCCEEDEDVALIDATION_REJECTED_PAYERCANCELLEDCANCELLATION_VALIDATION_SUCCESSEXPIREDFAILED
frequencystring

Frequency.

WEEKLYMONTHLYQUARTERLYBIANNUALANNUAL
totalRecurrencesinteger

Number of charges.

Example: 12
dateFirstRecurrencestring

First charge (yyyy-MM-dd).

Example: "2026-10-26"
dateLastRecurrencestring

Last charge (yyyy-MM-dd).

Example: "2027-09-26"
createdstring<date-time>

Creation time.

Example: "2026-10-21T19:08:59.710000+00:00"
expirationDatestring<date-time>

When the QR Code of the immediate payment expires.

Example: "2026-10-21T19:08:59.710000+00:00"
brcodestring

Pix copia e cola (QR Code) of the immediate payment, which also carries the authorization.

tagsstring[]

Free tags returned in responses and notifications (up to 5).

bankAccountsobject[]

Accounts the payer may pay from.

Show child attributes
bankCodestringrequired

ISPB (PSP code) of the bank, up to 8 digits.

Example: "18236120"
branchCodestring

Branch, up to 4 digits. Required in manual withdrawals unless accountType is payment.

Example: "1"
accountTypestring

Account type. Required in manual withdrawals.

checkingsalarysavingspayment
Example: "checking"
accountNumberstringrequired

Account number with check digit, up to 20 digits.

Example: "12345678"
contractobject

Contract the recurrence pays.

Show child attributes
idstring

Contract id, up to 35 alphanumeric chars. Generated when omitted.

Example: "assinatura0001"
descriptionstring

Contract description. Defaults to descriptionToPayer.

Example: "Assinatura do clube"
canBePaidAfterRecurrencyDateboolean

Whether a charge can be paid after its date.

Example: false
immediatePixTransactionobject

First payment, paid together with the authorization.

Show child attributes
amountinteger

Amount in cents.

Example: 2500
idstring

Transaction id.

statusstring

Status (pending, paid, failed).

400Validation or business error. Okto also answers "not found" errors with 400 and an error list.
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"
401Invalid access token (code 2000).
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"
403Missing Authorization header (code 2000, "Full authentication is required to access this resource").
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"