API Reference
Mock a received Pix
/by-key/mock/simulate-receiving-by-dict-keyhttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euA 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/jsonWallet key.
"8695ed70-4a64-4eeb-8787-d0badafdc7d5"Amount in reais.
10.5Receiver person type.
"CNPJ"Receiver document.
"44783669000172"Receiver account.
"1234567890"Payer CPF.
"60418443734"Payer name.
"Ana Ribeiro"Payer person type.
"CPF"Payer bank ISPB.
"18236120"Payer branch.
"1"Payer account.
"87654321"Payer account type.
3Responses
200Pix received.
Result.
"success"End-to-end id.
Time of the Pix.
"2026-10-21T19:09:06.127Z"Amount in reais.
10.5Payer name.
Wallet key.
400Validation 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"