API Reference
Create a recurrence
/automatic/recurrenceshttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euCreates 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/jsonPayer CPF.
"604.184.437-34"Payer name.
"Ana Ribeiro"Amount of each charge in cents.
2500Frequency (4443 otherwise).
WEEKLYMONTHLYQUARTERLYBIANNUALANNUAL"MONTHLY"First charge (yyyy-MM-dd), at least 2 days from today (4505).
"2026-10-26"Number of charges.
12Text shown to the payer.
"Assinatura mensal do clube"Immediate payment that comes with the authorization.
Show child attributes
Amount of the immediate payment in cents (4506 when missing).
2500Validity of the QR Code (default 3600).
3600Contract the recurrence pays.
Show child attributes
Contract id, up to 35 alphanumeric chars. Generated when omitted.
"assinatura0001"Contract description. Defaults to descriptionToPayer.
"Assinatura do clube"Whether a charge can be paid after its date.
falseYour identifier, a UUID (2010 otherwise). Generated when omitted.
"5c3d8382-ab14-4d30-b42b-bc806ecc69a7"Free tags returned in responses and notifications (up to 5).
Accounts the payer may pay from.
Show child attributes
ISPB (PSP code) of the bank, up to 8 digits.
"18236120"Branch, up to 4 digits. Required in manual withdrawals unless accountType is payment.
"1"Account type. Required in manual withdrawals.
checkingsalarysavingspayment"checking"Account number with check digit, up to 20 digits.
"12345678"Responses
201Recurrence created.
Recurrence id.
"e7c925a5-c9a7-4144-b84f-a3d99cc13d97"Your identifier (UUID).
Recurrence id at the Central Bank (RR…).
"RR30980539202610211dbfcf5ab19"Payer name.
Payer CPF.
Amount of each charge in cents.
2500Status of the recurrence.
PENDINGAUTHORIZEDREJECTEDCANCELLEDEXPIREDFAILEDDetailed status.
AWAITING_FIRST_PAYMENTFIRST_PAYMENT_SUCCESSVALIDATION_SUCCEEDEDVALIDATION_REJECTED_PAYERCANCELLEDCANCELLATION_VALIDATION_SUCCESSEXPIREDFAILEDFrequency.
WEEKLYMONTHLYQUARTERLYBIANNUALANNUALNumber of charges.
12First charge (yyyy-MM-dd).
"2026-10-26"Last charge (yyyy-MM-dd).
"2027-09-26"Creation time.
"2026-10-21T19:08:59.710000+00:00"When the QR Code of the immediate payment expires.
"2026-10-21T19:08:59.710000+00:00"Pix copia e cola (QR Code) of the immediate payment, which also carries the authorization.
Free tags returned in responses and notifications (up to 5).
Accounts the payer may pay from.
Show child attributes
ISPB (PSP code) of the bank, up to 8 digits.
"18236120"Branch, up to 4 digits. Required in manual withdrawals unless accountType is payment.
"1"Account type. Required in manual withdrawals.
checkingsalarysavingspayment"checking"Account number with check digit, up to 20 digits.
"12345678"Contract the recurrence pays.
Show child attributes
Contract id, up to 35 alphanumeric chars. Generated when omitted.
"assinatura0001"Contract description. Defaults to descriptionToPayer.
"Assinatura do clube"Whether a charge can be paid after its date.
falseFirst payment, paid together with the authorization.
Show child attributes
Amount in cents.
2500Transaction id.
Status (pending, paid, failed).
400Validation or business error. Okto also answers "not found" errors with 400 and an error list.
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"401Invalid access token (code 2000).
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"403Missing Authorization header (code 2000, "Full authentication is required to access this resource").
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"