API Reference
Pay and Play 2.0

Create a journey

POST/pay-and-play-v2/deposit/journey
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Creates a Pay and Play 2.0 journey: on url the player onboards (KYC) and pays a QR Code in a single step, without an account at the operator. When the player pays, Okto sends a PayAndPlayDepositJourney notification with the player data (journey still created); the deposit waits for you to accept or reject it. The journey expires after 3 hours without payment.

Authorization

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

Body

application/json
tagsstring[]

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

Responses

201Journey created.
idstring

Journey id.

urlstring

Journey page.

createdstring<date-time>

Creation time.

Example: "2026-10-21T19:08:59.710000+00:00"
tagsstring[]

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

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"