API Reference
Pix by Key

Mock a received Pix

POST/by-key/mock/simulate-receiving-by-dict-key
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

A player sends a Pix to the wallet key from a given account. amount is in reais. dictKey must be the wallet key (4507). A payerAccount registered for the payer is credited (paid); any other account, the 2020 CPF and the account 6349462035540000 (2021) go to reviewing.

Test endpoint of Okto's demo environment: it plays the payer side and does not exist in production. Mimicr's controlled chaos never affects mock routes.

Authorization

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

Body

application/json
dictKeystringrequired

Wallet key.

Example: "8695ed70-4a64-4eeb-8787-d0badafdc7d5"
amountnumberrequired

Amount in reais.

Example: 10.5
receiverTypestringrequired

Receiver person type.

Example: "CNPJ"
receiverTaxIdstringrequired

Receiver document.

Example: "44783669000172"
receiverAccountstringrequired

Receiver account.

Example: "1234567890"
payerTaxIdstringrequired

Payer CPF.

Example: "60418443734"
payerNamestringrequired

Payer name.

Example: "Ana Ribeiro"
payerTypestringrequired

Payer person type.

Example: "CPF"
payerPspstringrequired

Payer bank ISPB.

Example: "18236120"
payerAgencystring

Payer branch.

Example: "1"
payerAccountstringrequired

Payer account.

Example: "87654321"
payerAccountTypeintegerrequired

Payer account type.

Example: 3

Responses

200Pix received.
messagestring

Result.

Example: "success"
endToEndIdstring

End-to-end id.

dtHrstring<date-time>

Time of the Pix.

Example: "2026-10-21T19:09:06.127Z"
amountnumber

Amount in reais.

Example: 10.5
payerNamestring

Payer name.

dictKeystring

Wallet key.

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"