API Reference
Pix by Key

Mock a received Pix (v2)

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

Simpler version: only the key, the amount in reais and the payer CPF. The payer's first registered account is used; a CPF with no registered account goes 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: 15
payerTaxIdstringrequired

Payer CPF.

Example: "617.750.603-81"

Responses

200Pix received.
messagestring

Result.

Example: "success"
dtHrstring<date-time>

Time of the Pix.

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

Amount in reais.

Example: 15
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"