API Reference
Biometric Pix

Validate the payment challenge

POST/biometric/deposit/payment/{paymentId}/challenge/validate
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Confirms 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

paymentIdstringrequired

Payment id.

Example: "b5a24c81-3aac-403e-af4a-38d7efce081e"

Body

application/json
fidoAssertionobjectrequired

WebAuthn credential returned by navigator.credentials.create() (enrollment) or navigator.credentials.get() (payment). In Mimicr, signatures are not verified cryptographically.

Show child attributes
idstringrequired

Credential id (base64url). Must equal rawId (4123).

Example: "H5iUFpBYHpzrUELsjPLbOPsb7oUVBDEP1GKTptFA-D3"
rawIdstringrequired

Credential raw id (base64url).

Example: "H5iUFpBYHpzrUELsjPLbOPsb7oUVBDEP1GKTptFA-D3"
typestring

Credential type.

Example: "public-key"
responseobjectrequired

Authenticator response. Enrollment requires attestationObject; payment requires authenticatorData and signature.

Show child attributes
clientDataJSONstringrequired

Client data (base64url).

attestationObjectstring

Attestation (enrollment only).

authenticatorDatastring

Authenticator data (payment only).

signaturestring

Assertion signature (payment only).

userHandlestring

User handle (payment, optional).

Responses

201Payment paid.
idstring

Payment id.

taxIdstring

Player CPF.

amountinteger

Amount in cents.

Example: 2500
createdstring<date-time>

Creation time.

Example: "2026-10-21T19:08:59.710000+00:00"
enrollmentIdstring

Enrollment id.

bankAccountInfoobject

Counterparty account of a transaction.

Show child attributes
taxIdstring

Holder document.

Example: "604.184.437-34"
namestring

Holder name.

Example: "Ana Ribeiro"
bankCodestring

ISPB.

Example: "00416968"
bankNamestring

Bank name.

Example: "BANCO INTER S.A."
branchCodestring

Branch.

Example: "1"
accountTypestring

Account type.

Example: "checking"
accountNumberstring

Account number.

Example: "6041844371"
endToEndIdstring

End-to-end id.

Example: "E00416968202610211909LPudyxudL08"
refundEndToEndIdstring | null

End-to-end id of the refund.

participantobject

Institution of the enrollment.

Show child attributes
idstring

Participant id.

namestring

Institution name.

logostring

Logo URL.

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"