API Reference
Create a journey
/pay-and-play-v2/deposit/journeyhttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euCreates 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/jsonFree tags returned in responses and notifications (up to 5).
Responses
201Journey created.
Journey id.
Journey page.
Creation time.
"2026-10-21T19:08:59.710000+00:00"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.
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"