API Reference
Deposits (classic Pix)

Create a deposit

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

Creates 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/json
namestringrequired

Payer name.

Example: "Ana Ribeiro"
taxIdstringrequired

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

Example: "604.184.437-34"
amountintegerrequired

Amount in cents (integer). Upper limit of R$ 250.000,00 (2018).

Example: 2500
expirationinteger

Seconds after the due date until the QR Code expires (default 10800).

Example: 10800
externalIdstring

Your identifier, URL-safe and unique among today's deposits (1001).

Example: "pedido-1001"
tagsstring[]

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

bankAccountsobject[]

Registered accounts of the payer (closed loop).

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"
descriptionsobject[]

Descriptions shown to the payer.

addressstring

Payer address.

postCodestring

Payer ZIP code.

citystring

Payer city.

isClosedLoopboolean

Closed loop 2.0: a paid deposit waits in reviewing until you accept or reject it.

Example: false
closedLoopExpirationinteger

Seconds to decide a closed loop deposit.

Responses

200Deposit created.
idstring

Deposit id (16 digits).

Example: "1268321722477579"
namestring

Payer name.

Example: "Ana Ribeiro"
taxIdstring

Payer CPF.

Example: "604.184.437-34"
amountinteger

Amount in cents.

Example: 2500
statusstring

Status: created, overdue 5 minutes after creation, expired expiration seconds later, paid, failed, reviewing (closed loop 2.0) or reversed.

createdoverduepaidexpiredfailedreversedreviewing
expirationinteger

Seconds after the due date until the QR Code expires.

Example: 10800
createdstring<date-time>

Creation time.

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

Last change.

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

Due date (creation + 5 minutes).

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

Ids of the Pix that paid the deposit.

bankAccountsobject[]

Accounts the payer is allowed to 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"
pdfstring

Invoice page.

linkstring

Invoice page with the QR Code (/invoicelink/{id}).

brcodestring

Pix copia e cola.

tagsstring[]

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

descriptionsobject[]

Descriptions you sent.

finenumber

Fine.

Example: 0
interestnumber

Interest.

Example: 0
discountsobject[]

Discounts.

nominalAmountinteger

Nominal amount in cents.

Example: 2500
fineAmountinteger

Fine in cents.

Example: 0
interestAmountinteger

Interest in cents.

Example: 0
discountAmountinteger

Discount in cents.

Example: 0
feeinteger

Fee in cents.

Example: 0
rulesobject[]

Payment rules: only the CPF of the deposit can pay.

Show child attributes
keystring

Rule.

Example: "allowedTaxIds"
valuestring[]

Values.

externalIdstring | null

Your identifier.

Example: "pedido-1001"
closedLoopStatusstring

Closed loop 2.0 status, only when isClosedLoop is true.

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