Skip to main content
POST

Authorizations

X-Zd-Signature
string
header
required

Hex-encoded HMAC-SHA512(apiPath|timestamp|data, secretKey) computed by Zero-Dash. Recompute it and compare before doing anything else. See Request signature.

X-Zd-Timestamp
string
header
required

Unix time in milliseconds, and the exact value that was signed. Reject requests older than 5 minutes.

Body

application/json
playerId
string
required

Player account ID.

transactionId
string
required

Zero-Dash ID of this bet transaction. Use it as your idempotency key.

gameId
string
required

Slug of the game the round belongs to.

Example:

"lucky-duck"

gameRoundId
string
required

Groups the bet with its settlement. The credit or rollback that settles this bet carries the same value.

Example:

"round-1234"

stake
object
required

Decimal amount to subtract from the balance. 0 for free rounds.

token
string

The session token from game launch.

reason
enum<string>

Type of the bet. paid is real money; freeround is a free round — each free spin is a separate bet with its own debit call.

Available options:
paid,
freeround
freeRoundData
object

Present only when reason is freeround.

Response

Bet accepted and the stake was subtracted.

operatorTransactionId
string
required

Your internal transaction ID. Stored by Zero-Dash for troubleshooting only.

balance
object
required

The player's balance after the operation was applied.

createdAt
string<date-time>

Transaction creation date (ISO-8601 UTC). Defaults to the time of processing when omitted.