API Reference
Biometric Pix

Create a payment

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

Creates a deposit with an enrolled enrollment (4101 otherwise) and returns the WebAuthn authenticationOptions to call navigator.credentials.get().

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Body

application/json
enrollmentIdstringrequired

Enrollment id.

amountintegerrequired

Amount in cents (integer). Upper limit of R$ 250.000,00 (2018).

Example: 2500
riskSignalsobjectrequired

Device data required on biometric calls. Missing fields answer 4124; Mimicr only checks that they are present.

Show child attributes
deviceIdstringrequired

Device id.

Example: "5439f937-165c-4213-ac50-b10ebe6cb9f9"
osVersionstringrequired

Operating system version.

Example: "16"
deviceLanguagestringrequired

Device language.

Example: "pt"
screenDimensionsobjectrequired

Screen size.

Show child attributes
heightstring

Height in pixels.

Example: "915"
widthstring

Width in pixels.

Example: "412"
isRootedDevicebooleanrequired

Whether the device is rooted.

Example: false
userTimeZoneOffsetstringrequired

Time zone offset.

Example: "-03:00"
screenBrightnessLevelstringrequired

Screen brightness.

Example: "150"
uptimeMillisstringrequired

Device uptime in ms.

Example: "14338640"
accountCreatedAtstringrequired

When the player's account was created.

Example: "2022-02-22"
platformTypestringrequired

Platform.

BROWSERANDROIDIOS
Example: "BROWSER"
externalIdstring

Your identifier, URL-safe ([A-Za-z0-9._~-], up to 100 chars). Okto generates a UUID when omitted.

Example: "f8ccc69f-a236-4058-a9f7-d374ed1084f0"
tagsstring[]

Free tags returned in responses and notifications (up to 5).

Responses

201Payment created.
idstring

Payment id.

createdstring<date-time>

Creation time.

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

Enrollment id.

participantobject

Institution of the enrollment.

Show child attributes
idstring

Participant id.

namestring

Institution name.

logostring

Logo URL.

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.

authenticationOptionsobject

WebAuthn request options.

Show child attributes
challengestring

Challenge (base64url).

allowCredentialsobject[]

Credential of the enrollment.

Show child attributes
idstring

Credential id.

typestring

Type.

transportsstring[]

Transports.

timeoutinteger

Timeout in ms.

Example: 60000
rpIdstring

Relying party id.

userVerificationstring

User verification.

tagsstring[]

Free tags returned in responses and notifications (up to 5).

externalIdstring

Your identifier.

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"