API Reference
Create a payment
/direct/deposit/paymenthttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euCreates a Pix payment initiated through Open Finance. Send the player to url; they approve it in the chosen bank within about 5 minutes (4447 after that, 4448 if refused). The result arrives as a DirectDepositPayment notification and the player returns to callbackUrl or onErrorCallbackUrl.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Body
application/jsonPlayer's CPF, with or without punctuation. Must be a valid CPF (2001 otherwise).
"604.184.437-34"Player name.
"Ana Ribeiro"Amount in cents (integer). Upper limit of R$ 250.000,00 (2018).
2500Institution chosen by the player (4412 unknown, 4133 in outage).
"126bfc62-9c16-4688-ad7d-efff52e96f3a"Return after approval.
"https://sua-app.dev/pix-direct/ok"Return after an error.
"https://sua-app.dev/pix-direct/erro"Your identifier, URL-safe ([A-Za-z0-9._~-], up to 100 chars). Okto generates a UUID when omitted.
"f8ccc69f-a236-4058-a9f7-d374ed1084f0"Free tags returned in responses and notifications (up to 5).
Accounts the player 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
201Payment created.
Payment id.
Player name.
Player CPF.
Amount in cents.
2500Page where the player approves the payment.
Creation time.
"2026-10-21T19:08:59.710000+00:00"Free tags returned in responses and notifications (up to 5).
Status.
"created"Accounts.
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"Your identifier.
Institution.
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"