API Reference
Gaming operatorGETGet operatorPUTUpdate notification URLsDELRemove notification URLsGETGet balanceGETGet balance (v2)
Deposits (classic Pix)POSTCreate a depositGETGet the QR CodePUTRefund a depositPUTAccept a deposit (closed loop)PUTReject a deposit (closed loop)
Automatic PixPOSTCreate a recurrenceGETGet a recurrenceGETGet recurrence statusGETList recurrence transactionsPUTCancel a recurrenceGETGet transaction statusPUTCancel a scheduled transactionPOSTMock pay and authorizePOSTMock QR paymentPOSTMock a scheduled chargePOSTMock scheduling cancellationPOSTMock cancellation by the payer
Biometric PixGETList participantsPOSTCreate an enrollmentGETGet an enrollmentPOSTCreate the enrollment challengePOSTValidate the enrollment challengePUTRevoke an enrollmentGETList enrollments of a CPFPOSTCreate a paymentPOSTValidate the payment challengeGETGet payment statusGETList paymentsPOSTCreate a whitelabel journeyGETGet journey statusGETGet journey payment statusGETList journey payments
Pix by KeyGETGet the wallet keyPOSTRegister a payer bank accountGETList payer bank accountsPUTUpdate a payer bank accountDELDelete payer bank accountsGETList depositsPUTAccept a deposit under reviewPUTReject a deposit under reviewPOSTMock a received PixPOSTMock a received Pix (v2)
Smart PIXPOSTCreate a journeyGETGet journey statusGETList bank enrollmentsPOSTCreate a paymentGETGet payment status
Update a payer bank account
PUT
Base URL: /by-key/payer-bank-accounts/{id}https://okto.mimicr.dev · provider: https://demo-pix.oktopay.euChanges a registered account. taxId must be the registered payer's (2020).
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
idstringrequired
Account id.
Body
application/jsontaxIdstringrequired
Payer CPF.
"604.184.437-34"bankCodestringrequired
ISPB of the bank.
"18236120"branchCodestring
Branch.
"1"accountTypestring
Account type.
checkingsalarysavingspayment"checking"accountNumberstringrequired
Account number.
"12345678"Responses
200Account updated.
idstring
Account id.
taxIdstring
Payer CPF.
bankCodestring
ISPB.
branchCodestring | null
Branch.
accountTypestring | null
Account type.
accountNumberstring
Account number.
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).
2001messagestringrequired
Fixed message of the code.
"The tax id is invalid."detailedMessagestringrequired
What exactly went wrong.
"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).
2001messagestringrequired
Fixed message of the code.
"The tax id is invalid."detailedMessagestringrequired
What exactly went wrong.
"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).
2001messagestringrequired
Fixed message of the code.
"The tax id is invalid."detailedMessagestringrequired
What exactly went wrong.
"taxId must be a valid CPF"