Skip to content

Bet Result Event

This event will be triggered once the game result comes out.

Method: POST

Header

{
"Content-Type": "application/json",
"Callback-URL": "Your Callback URL",
"Api-Id": "Your API-Id",
"Api-Key": "Your AGENT-Id"
}

Body

{
"transaction_id": "4_sandboxagent01_1763107636312_4822",
"event_type": "bet_result",
"timestamp": 1763107636,
"feedback_data": "TEST_FEEDBACK_DATA",
"user_id": "edwincalma",
"data": {
"currency": "KRW",
"game_type": "BAC",
"table_no": "DH002",
"game_no": "DH0022511141328",
"total_bet_amount": 5000,
"total_winloss": -5000,
"result": "T",
"result_detail": "{\"pscore\":4,\"bscore\":4,\"pcards\":[\"D8\",\"S2\",\"S4\"],\"bcards\":[\"D9\",\"S5\",\"D12\"]}",
"bet_results": [
{
"bet_index": "10404",
"bet_type": "P",
"bet_amount": 5000,
"winloss": -5000
}
]
}
}

HTTP Status: 200

Header

{
"Content-Type": "application/json",
"Callback-URL": "Your Callback URL",
"Api-Id": "Your API-Id",
"Api-Key": "Your AGENT-Id"
}

Body

{
"code": "R0", // Required, String
"event_type": "bet_result", // Required, String
"timestamp": 1763107693, // Required, Number
"user_id": "edwincalma", // Required, String
"latest_balance": 100000 // REQUIRED
}

  • Success Processing = "R0"
  • Failed Processing = "R1"
  • Unauthorized Request = "R2"
  • Validation Failed = "R3"
  • Not Enough Balance = "R4"

HTTP Status: 200

Header

{
"Content-Type": "application/json",
"Callback-URL": "Your Callback URL",
"Api-Id": "Your API-Id",
"Api-Key": "Your AGENT-Id"
}

Body

{
"code": "R3", // Required, String
"event_type": "bet_result", // Required, String
"timestamp": 1763107693, // Required, Number
"user_id": "edwincalma", // Required, String
"latest_balance": 100000 // OPTIONAL
}

📌
For a comprehensive guide on how this works, please refer to the Common and Transfer Introduction or Seamless Introduction sections within the Introduction page.