API Reference
Smart PIX

Create a journey

POST/smart/deposit/journey
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Creates a Smart PIX journey. On url the player authorizes Smart PIX in the bank: a bank enrollment is created and the journey is paid. Later deposits use the enrollment with POST /smart/deposit/payment. Smart PIX sends no notifications: query the status.

Authorization

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

Body

application/json
taxIdstringrequired

Player's CPF, with or without punctuation. Must be a valid CPF (2001 otherwise).

Example: "604.184.437-34"
namestringrequired

Player name.

Example: "Bruno Matos"
amountintegerrequired

Amount in cents.

Example: 2500
tagsstring[]

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

bankAccountsobject[]

Accounts.

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

201Journey created.
idstring

Journey id.

urlstring

Journey page.

createdstring<date-time>

Creation time.

Example: "2026-10-21T19:08:59.710000+00:00"
tagsstring[]

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

bankAccountsobject[]

Accounts.

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"
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"