Skip to content

Win Rewards POST

When provider has some event and their need to sent the reward (Jackpot or Bonus) this request will be called.

HTTP Request

POST {{ YOUR_API_URL }}/winRewards

Content Type

Type: application/json

Parameter Description

PropertyTypeRequiredDescription
idstringRequiredRequest id
timestampMillisnumberRequiredRequesting time
productIdstringRequiredProduct id associated with the request Product
currencystringRequiredPlayer's currency code in ISO 4217 (Example: "THB")
usernamestringRequiredUser id on agent system
txnsTxn[]RequiredTransactions

Win Rewards transaction parameters (txns)

PropertyTypeRequiredDescription
idstringRequiredBet id
statusstringRequiredBet status (Should always be SETTLED)
roundIdstringRequiredRound id
payoutAmountnumberRequiredWin amount
gameCodestringRequiredGame code
playInfostringRequiredInformation regarding the player was chosen. If Live-casino game this should be the position that player wager on that round if system can identified the position (e.g. player, banker). Other games, the value should be the game name, if we can't identified game name or game code, we will send 'UNKNOWN' into this value.
betAmountnumberOptionalStake amount.

Response Description

PropertyTypeRequiredDescription
idstringRequiredRequest id
statusCodenumberRequiredStatus from StatusCode
timestampMillisnumberRequiredResponding time
productIdstringRequiredProduct id associated with the request Product
currencystringRequiredPlayer's currency codein ISO 4217 (Example: "THB")
balanceBeforenumberRequiredPlayer's balance before get rewards
balanceAfternumberRequiredPlayer's balance after get rewards
usernamestringRequiredUser id on agent system

Request Example

Request Body

json
{
  "id": "c7197ce4-5a50-4397-a903-d78b135ade4c",
  "productId": "{{ Product ID }}",
  "username": "foobar",
  "currency": "THB",
  "timestampMillis": 1631599542778,
  "txns": [
    {
      "id": "e723b240-d519-44dd-8e37-d6823c6f9b2",
      "status": "SETTLED",
      "roundId": "R-0909",
      "payoutAmount": 1000,
      "gameCode": "MX-LIVE-001",
      "playInfo": "Banker"
    }
  ]
}

JSON response example:

json
{
  "id": "c7197ce4-5a50-4397-a903-d78b135ade4c",
  "statusCode": 0,
  "timestampMillis": 1631599542821,
  "productId": "{{ Product ID }}",
  "currency": "THB",
  "balanceBefore": 8600,
  "balanceAfter": 9600,
  "username": "foobar"
}

JSON response Fail example:

json
{
  "id": "c7197ce4-5a50-4397-a903-d78b135ade4c",
  "statusCode": 10001,
  "productId": "{{ Product ID }}",
  "timestampMillis": 1631599542878
}