API Reference
Pay and Play 2.0

Reject the deposit

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

Rejects the journey: a paid deposit goes back to the player (reversed) and the journey becomes failed.

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
reasonstring

Reason (default "Rejected by the gaming operator").

Example: "Cadastro incompleto"

Responses

200Rejected.
idstring

Journey id.

createdstring<date-time>

Creation time.

Example: "2026-10-21T19:08:59.710000+00:00"
updatedstring<date-time>

Last change.

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

Reason.

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"