Skip to main content
POST
Rollback transaction (revert)

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 rollback transaction. Use it as your idempotency key.

referenceTransactionId
string
required

transactionId of the bet to revert.

gameId
string
required

Slug of the game the round belongs to.

Example:

"lucky-duck"

gameRoundId
string
required

Same value as the debit being reverted.

Example:

"round-1234"

stake
object
required

Stake of the original bet, to be returned to the player.

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 reverted and the stake returned.

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.