Guides
Pay and Play 2.0
A journey with no prior sign-up, where the player identifies themselves by paying; you accept or reject the deposit and can block CPFs.
In Pay and Play 2.0 you create the journey without knowing who the player is. They open Okto's page, go through onboarding and pay the QR Code; the payment identifies the CPF and brings the player's data. The money waits until you accept it (credit) or reject it (refund). Notifications go to the payAndPlayV2DepositUrl.
1. Create the journey
curl --request POST \
--url https://okto.mimicr.dev/pay-and-play-v2/deposit/journey \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "tags": ["Operator-3005376515"] }'{
"id": "2d69779e-8c4f-45fc-9ee3-403fef4b94c8",
"url": "https://okto.mimicr.dev/mimicr/pay-and-play/2d69779e-8c4f-45fc-9ee3-403fef4b94c8",
"created": "2026-10-21T19:09:20.794000+00:00",
"tags": ["Operator-3005376515"]
}The journey starts created and expires after 3 hours if nobody pays.
2. The player pays
Open the url for the player. On the sandbox hosted page you pick one of the test CPFs and the amount (default R$ 50.00) and click "Cadastrar e pagar o QR Code". You can also use the test endpoint Mock QR payment or the control API:
curl --request PUT \
--url https://okto.mimicr.dev/pay-and-play-v2/deposit/journey/2d69779e-8c4f-45fc-9ee3-403fef4b94c8/mock-pay-qr \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "taxId": "604.184.437-34" }'npx mimicr action okto player.step step=pay-and-play:pay id=<journey-id> taxId=604.184.437-34 amount=50.00
On the test endpoint, amount is in cents and defaults to 5000; on the control action, in reais.
| Payer | Outcome |
|---|---|
| Regular CPF | Payment received and notified; the journey stays created, awaiting your decision |
| CPF rejected by the tests, or chaos | Journey failed with the code, notified |
| Blocked CPF (see below) | Journey failed with 4202 |
After the payment, Get journey details carries taxId, amount, endToEndId and playerInformation (name, birth date, address, e-mail, pep, betRestriction).
3. Accept or reject
curl --request PUT \ --url https://okto.mimicr.dev/pay-and-play-v2/deposit/journey/2d69779e-8c4f-45fc-9ee3-403fef4b94c8/accept \ --header 'Authorization: Bearer <token>'
- Accept the deposit: the journey becomes
paidand the amount enters the balance. With no payment received, the answer is4140. - Reject the deposit with
{"reason": "Cadastro incompleto"}: the journey becomesfailedand a received payment is refunded (reversed). It also cancels a journey not paid yet.
npx mimicr wait okto delivery transaction_id=2d69779e-8c4f-45fc-9ee3-403fef4b94c8 event=paid
| Status | When |
|---|---|
created | Awaiting payment or your decision |
paid | Accepted |
failed | Rejected by validation, blocked or rejected by you |
expired | 3 hours without payment (or step=pay-and-play:expire) |
The notification is PayAndPlayDepositJourney, with amount, status, errorList, onboardingProcessId, playerInfo and, when paid, transactionInfo. It's sent when the player pays (status created, with amount, playerInfo and transactionInfo, so you can decide) and again when the journey ends (paid, failed or expired).
Check it with Get journey status and list deposits with List deposits.
Block players
curl --request POST \
--url https://okto.mimicr.dev/pay-and-play-v2/blocked-users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"blockedUsers": [
{ "taxId": "123.456.789-09", "reason": "cpfWithBetRestrictions", "expiresAt": "2026-11-20" }
]
}'taxId (2001) and reason (4442) are required; blocking again updates the reason. A blocked CPF that tries to pay fails with 4202. See List blocked users and Unblock a user.
In Mimicr, expiresAt is stored but doesn't unblock on its own, the player data is fictitious and the R$ 50.00 default is the simulator's.