Skip to main content

Prize — type: "prize"

POST{base}/transaction

Money arriving in the balance as a prize: a player who finished on the podium of a bet race.

Same {base}/transaction address as Debit, same response shape, same duplicate protection. Before we send your wallet a prize: implement prize, pass the prize line of the connection test, and ask us to enable prizes for your wallet. Until we do, we send none.

Request​

FieldSentRule
typealwaysprize.
amountalwaysWhat the player receives, in full. Positive.
currencyalwaysISO 4217.
referencealwaysYour idempotency key, unique to this prize. The same reference must pay once.
playerIdalwaysYour externalId.
prizealwaysWhere the prize comes from: source (betRace), raceId, raceName, board (final for the whole race, or the day as YYYY-MM-DD for a daily prize), rank (1-based) and points.
simulationconnection test onlytrue marks a connection test: ignore it, answer success, move no money.

There is no parentReference and no bet: a prize is not tied to a ticket.

What differs from a debit​

  1. The Bearer is your service key. A prize is paid long after any session, so the request names the player outright. It is signed like every call.
  2. It is cash. Credit the player's withdrawable real-money balance — never a bonus balance, and with no wagering requirement.
  3. 402 is not an answer. We are handing money over. Any status other than 200 is a refusal; the Debit table applies otherwise.
  4. We retry. A prize you refuse stays owed, and we send it again with the same reference. The same reference must pay once.
POST {base}/transaction
Authorization: Bearer <your service key>
Content-Type: application/json
{
"type": "prize",
"amount": 150000.00,
"currency": "ARS",
"reference": "prize_6af2c0d1e3b4a5968778c9d0_final_1",
"playerId": "10",
"prize": {
"source": "betRace",
"raceId": "6af2c0d1e3b4a5968778c9d0",
"raceName": "Weekend Race",
"board": "final",
"rank": 1,
"points": 1840
}
}
curl -s -X POST "https://casino.example.com/api/sportsbook/transaction" \
-H "Authorization: Bearer <your service key>" \
-H "Content-Type: application/json" \
-d '{
"type": "prize",
"amount": 150000.00,
"currency": "ARS",
"reference": "prize_6af2c0d1e3b4a5968778c9d0_final_1",
"playerId": "10",
"prize": {
"source": "betRace",
"raceId": "6af2c0d1e3b4a5968778c9d0",
"raceName": "Weekend Race",
"board": "final",
"rank": 1,
"points": 1840
}
}'

Next: Rollback — undoing a movement that should not have stood.