API Reference
Validate the payment challenge
/biometric/deposit/payment/{paymentId}/challenge/validatehttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euConfirms the payment with the assertion signed by the device. The credential must be the enrollment's (4129). The payment becomes paid or failed and a BiometricDepositPayment notification is sent; on failure the call answers 400 with the code.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Payment id.
"b5a24c81-3aac-403e-af4a-38d7efce081e"Body
application/jsonWebAuthn credential returned by navigator.credentials.create() (enrollment) or navigator.credentials.get() (payment). In Mimicr, signatures are not verified cryptographically.
Show child attributes
Credential id (base64url). Must equal rawId (4123).
"H5iUFpBYHpzrUELsjPLbOPsb7oUVBDEP1GKTptFA-D3"Credential raw id (base64url).
"H5iUFpBYHpzrUELsjPLbOPsb7oUVBDEP1GKTptFA-D3"Credential type.
"public-key"Authenticator response. Enrollment requires attestationObject; payment requires authenticatorData and signature.
Show child attributes
Client data (base64url).
Attestation (enrollment only).
Authenticator data (payment only).
Assertion signature (payment only).
User handle (payment, optional).
Responses
201Payment paid.
Payment id.
Player CPF.
Amount in cents.
2500Creation time.
"2026-10-21T19:08:59.710000+00:00"Enrollment id.
Counterparty account of a transaction.
Show child attributes
Holder document.
"604.184.437-34"Holder name.
"Ana Ribeiro"ISPB.
"00416968"Bank name.
"BANCO INTER S.A."Branch.
"1"Account type.
"checking"Account number.
"6041844371"End-to-end id.
"E00416968202610211909LPudyxudL08"End-to-end id of the refund.
Institution of the enrollment.
Show child attributes
Participant id.
Institution name.
Logo URL.
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"