API Reference
Create a withdrawal by key
/transactions/withdrawhttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euSends a Pix to a DICT key (CPF, e-mail, phone in E.164 or EVP). E-mail and phone keys require taxId. A transfer with the same amount and receiver already requested today answers 1001. The result (success or failed) arrives at withdrawUrl as a Transfer notification.
Okto processes the withdrawal without the player: in Mimicr it settles on its own 15 seconds after creation (KYC test CPFs, CNPJ keys with 2002, the mismatch account with 2021 and chaos fail it). To force an outcome before that, use player.step with withdraw:credit or withdraw:fail.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Body
application/jsonPix key of the receiver.
"617.750.603-81"CPF of the key owner; required for e-mail and phone keys.
"617.750.603-81"Your identifier, required, URL-safe and unique (1001).
"saque-2001"Amount in cents, greater than zero. Must fit in the available balance (2050).
2500Free tags returned in responses and notifications (up to 5).
Receiver address.
Receiver ZIP code.
Receiver city.
Registered accounts of the receiver.
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"Responses
200Withdrawal created.
Your identifier.
"saque-2001"Always created: the result arrives at withdrawUrl.
createdCreation time.
"2026-10-21T19:08:59.710000+00:00"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"