Skip to main content
curl --request POST \
  --url 'https://partner-platform-url/transaction/bet-batch' \
  --header 'content-type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-signature: <x-signature>' \
  --header 'x-timestamp: <x-timestamp>' \
  --data '{
    "transactions": [
      {
        "transactionId": "dd96bda3-9990-4aed-9679-f451a4b82ac4",
        "sessionId": "f1dfc865-584c-4cba-a175-06172b2a41141731504451691",
        "roundId": "817e22b4-b030-468b-964e-62b9a7343050-1753428290674",
        "playerId": "18865671",
        "gameId": "G1720761376617",
        "currency": "EUR",
        "amount": 2500000,
        "autoWithDrawal": true
      }
    ]
}'
{
    "status": "RS_OK",
    "data": [
        {
            "status": "RS_OK",
            "transactionId": "dd96bda3-9990-4aed-9679-f451a4b82ac4",
            "sessionId": "f1dfc865-584c-4cba-a175-06172b2a41141731504451691",
            "roundId": "817e22b4-b030-468b-964e-62b9a7343050-1753428290674",
            "playerId": "18865671",
            "currency": "EUR",
            "balance": 50000000
        }
    ]
}
  POST  /transaction/bet-batch

Functionality

  • Deducts the bet amount: The specified bet amount is subtracted from each player’s balance.
  • Batch processing: Optimized to handle high-volume betting during peak times.
Finally, it returns the updated balance, reflecting the result of the win.

Headers

x-api-key
string
required
A unique identifier associated with operator calling API.
x-signature
string
required
A SHA256 HMAC signature generated using the request body and timestamp. Format: HMAC_SHA256(JSON.stringify(data) + ’|’ + timestamp), signed using the provided secret key.
x-timestamp
string
required
An Unix timestamp (milliseconds) when the request was sent. Ensure the same value is used in signature generation.
content-type
string
required
Must be set to application/json

Request Body

transactions
array
required

Response

status
string
required
Code indicates status of the request weather it is succeed or failed. We have listed error codes here
data
Data Array
curl --request POST \
  --url 'https://partner-platform-url/transaction/bet-batch' \
  --header 'content-type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-signature: <x-signature>' \
  --header 'x-timestamp: <x-timestamp>' \
  --data '{
    "transactions": [
      {
        "transactionId": "dd96bda3-9990-4aed-9679-f451a4b82ac4",
        "sessionId": "f1dfc865-584c-4cba-a175-06172b2a41141731504451691",
        "roundId": "817e22b4-b030-468b-964e-62b9a7343050-1753428290674",
        "playerId": "18865671",
        "gameId": "G1720761376617",
        "currency": "EUR",
        "amount": 2500000,
        "autoWithDrawal": true
      }
    ]
}'
{
    "status": "RS_OK",
    "data": [
        {
            "status": "RS_OK",
            "transactionId": "dd96bda3-9990-4aed-9679-f451a4b82ac4",
            "sessionId": "f1dfc865-584c-4cba-a175-06172b2a41141731504451691",
            "roundId": "817e22b4-b030-468b-964e-62b9a7343050-1753428290674",
            "playerId": "18865671",
            "currency": "EUR",
            "balance": 50000000
        }
    ]
}