API Reference
Pay and Play 2.0

Mock QR payment

PUT/pay-and-play-v2/deposit/journey/{journeyId}/mock-pay-qr
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

The player onboards with taxId and pays the journey QR Code (default R$ 50,00). The payment is notified (journey created, with amount and playerInfo) and the deposit waits for acceptance; blocked users and KYC test CPFs fail.

Test endpoint of Okto's demo environment: it plays the payer side and does not exist in production. Mimicr's controlled chaos never affects mock routes.

Authorization

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

Path parameters

journeyIdstringrequired

Journey id.

Example: "2d69779e-8c4f-45fc-9ee3-403fef4b94c8"

Body

application/json
taxIdstringrequired

Player's CPF, with or without punctuation. Must be a valid CPF (2001 otherwise).

Example: "604.184.437-34"
amountinteger

Amount in cents (default 5000).

Example: 2500

Responses

200Done ({}).
object
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"