API Reference
Create a deposit
/transactions/deposithttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euCreates a Pix deposit (invoice) with a dynamic QR Code that only the informed CPF can pay. The deposit becomes overdue 5 minutes after creation and expired expiration seconds later. The player pays the QR Code; the result arrives at depositUrl as an Invoice notification.
In Mimicr the player is played by the hosted page (link), the console or the control action player.step with deposit:pay.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Body
application/jsonPayer name.
"Ana Ribeiro"Player's CPF, with or without punctuation. Must be a valid CPF (2001 otherwise).
"604.184.437-34"Amount in cents (integer). Upper limit of R$ 250.000,00 (2018).
2500Seconds after the due date until the QR Code expires (default 10800).
10800Your identifier, URL-safe and unique among today's deposits (1001).
"pedido-1001"Free tags returned in responses and notifications (up to 5).
Registered accounts of the payer (closed loop).
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"Descriptions shown to the payer.
Payer address.
Payer ZIP code.
Payer city.
Closed loop 2.0: a paid deposit waits in reviewing until you accept or reject it.
falseSeconds to decide a closed loop deposit.
Responses
200Deposit created.
Deposit id (16 digits).
"1268321722477579"Payer name.
"Ana Ribeiro"Payer CPF.
"604.184.437-34"Amount in cents.
2500Status: created, overdue 5 minutes after creation, expired expiration seconds later, paid, failed, reviewing (closed loop 2.0) or reversed.
createdoverduepaidexpiredfailedreversedreviewingSeconds after the due date until the QR Code expires.
10800Creation time.
"2026-10-21T19:08:59.710000+00:00"Last change.
"2026-10-21T19:08:59.710000+00:00"Due date (creation + 5 minutes).
"2026-10-21T19:08:59.710000+00:00"Ids of the Pix that paid the deposit.
Accounts the payer is allowed to 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"Invoice page.
Invoice page with the QR Code (/invoicelink/{id}).
Pix copia e cola.
Free tags returned in responses and notifications (up to 5).
Descriptions you sent.
Fine.
0Interest.
0Discounts.
Nominal amount in cents.
2500Fine in cents.
0Interest in cents.
0Discount in cents.
0Fee in cents.
0Payment rules: only the CPF of the deposit can pay.
Show child attributes
Rule.
"allowedTaxIds"Values.
Your identifier.
"pedido-1001"Closed loop 2.0 status, only when isClosedLoop is true.
CREATEDWAITINGACCEPTEDREFUNDED400Validation 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"