Prize — type: "prize"
POST{base}/transactionMoney 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
| Field | Sent | Rule |
|---|---|---|
type | always | prize. |
amount | always | What the player receives, in full. Positive. |
currency | always | ISO 4217. |
reference | always | Your idempotency key, unique to this prize. The same reference must pay once. |
playerId | always | Your externalId. |
prize | always | Where 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. |
simulation | connection test only | true 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
- 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.
- It is cash. Credit the player's withdrawable real-money balance — never a bonus balance, and with no wagering requirement.
402is not an answer. We are handing money over. Any status other than200is a refusal; the Debit table applies otherwise.- We retry. A prize you refuse stays owed, and we send it again with the same
reference. The samereferencemust 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.