Skip to main content

Query Bet Records (Transaction ID)

1、Query Bet Records (Transaction ID)

Interface Path

  • Get
  • /api/game/transaction/detail

Description

  • Get single bet record detail by transaction ID

Interface Frequency Description

  • The query bet records API can be called at most once every 5 seconds

Request Parameters

ParameterNameTypeRequiredDescription
agent_idMerchant IDstringRequiredMerchant ID
txn_idTransaction IDstringRequiredIn milliseconds
timestampCurrent TimestampstringRequiredTimestamp when calling the interface (in milliseconds, valid for ten minutes)
signSignaturestringRequiredSignature algorithm details in the interface description

Response Parameters

ParameterNameTypeDescription
codeResponse CodeintError Code
messageResponse MessagestringError Message
dataResponse DatadictResponse Data Details
--idOrder IDstringOrder ID
--game_idGame IDstringGame ID, 101: Baccarat
--user_idUser IDstringUser ID
--inst_idTable IDstringTable ID
--shoe_idShoe IDintShoe ID
--round_idRound IDintRound ID
--bet_timeBet TimeintBet Time
--settle_timeSettle TimeintSettle Time
--bet_amountBet AmountstringBet Amount
--real_bet_amountReal Bet AmountstringReal Bet Amount
--valid_bet_turnovervalid bet turnoverstringvalid bet turnover
--win_amountPayout AmountstringPayout Amount
--real_win_amountReal Win AmountstringReal Win Amount = Payout Amount - Bet Amount
--currencyCurrencystringCurrency
--bet_detailBet DetailsdictBet Details, the key is the bet item, the value is the bet amount
--win_detailWin DetailsdictWin Details, the key is the bet item, the value is the win amount
--no_commcommission freebooleancommission free
--game_resultGame ResultArrayGame Result
--open_cardsOpen Cardsdictbanker: Banker, player: Player, result: game result
--create_timeOrder Create TimeintOrder Create Time
--update_timeOrder Update TimeintOrder Update Time
--statusOrder Statusint0- Bet Placed, 1- Settled, 2- User Cancelled, 3- Invalid Order, 4- Settlement Changed to Invalid

Bet Items Description

Bet ItemDescription
TieTie
BankerBanker
PlayerPlayer
BigBig
SmallSmall
PlayerPairPlayer Pair
BankerPairBanker Pair
Super6Super 6
PDragonBonusPlayer Bonus
BDragonBonusBanker Bonus
AnyPairAny Pair
PrefectPairPrefect Pair
PlayerNaturalPlayer Natural
BankerNaturalBanker Natural

Card Face Description

  • The open card face is concatenated into a string in the order of opening
  • For example, if the first card of the player is Hearts A, the second card is Clubs 6, and the third card is Diamonds J, the concatenated string is "HeartsA,Clubs6,DiamondsJ"
SuitDescription
HeartsHearts
DiamondsDiamonds
ClubsClubs
SpadesSpades

Request Example

curl --location 'https://staging.aig1234.com/api/game/transaction/detail?agent_id=agent001&txn_id=67f8cdf7ab12bf8b5b606115&timestamp=1744601317080&sign=64c99fe3851e917f79dbce20416dd6e6 \
--header 'Content-Type: application/json'

Response Example (Baccarat)

{
"code": 200,
"message": "success",
"data": {
"id": "67f8cdf7ab12bf8b5b606115",
"user_id": "jackey01",
"game_id": "101",
"inst_id": "u5pikb",
"shoe_id": 10628,
"round_id": 36,
"bet_time": 1744358903180,
"settle_time": 1744358963342,
"bet_amount": "10",
"real_bet_amount": "10",
"valid_bet_turnover": "10",
"win_amount": "19.50",
"real_win_amount": "9.50",
"currency": "BRL",
"bet_detail": {
"Banker": 10
},
"win_detail": {
"Banker": "19.50"
},
"no_comm": false,
"game_result": [
"Banker",
"Small",
"BDragonBonus",
"BankerNatural"
],
"open_cards": {
"banker": "Diamonds9,Diamonds10",
"player": "HeartsK,Clubs7"
},
"create_time": 1744358903180,
"update_time": 1744358963342,
"status": 1
}
}

Response Example(Roulette)

{
"code": 200,
"message": "success",
"data": {
"id": "680a233460cb3650c0aae542",
"user_id": "uid001",
"game_id": "103",
"inst_id": "VaoXMa",
"shoe_id": 13282,
"round_id": 13282,
"bet_time": 1745494836924,
"settle_time": 1745494881014,
"bet_amount": "250",
"real_bet_amount": "250",
"valid_bet_turnover": "250",
"win_amount": "300.00",
"real_win_amount": "50.00",
"currency": "VND2",
"bet_detail": {
"Direct-11": 50,
"Dozen-2": 50,
"Odd": 50,
"Red": 50,
"Small": 50
},
"win_detail": {
"Direct-11": "0.00",
"Dozen-2": "0.00",
"Odd": "100.00",
"Red": "100.00",
"Small": "100.00"
},
"no_comm": false,
"game_result": [
"Red",
"Odd",
"Small",
"Column-1",
"Dozen-1"
],
"open_cards": {
"result": "7"
},
"create_time": 1745494836924,
"update_time": 1745494881014,
"status": 1
}
}

Error Codes

CodeDescription
200Success
408000Request Parameter Error
408003Whitelist Restriction
408004API Frequency Limit
600100Invalid Signature
700101Merchant Does Not Exist
700237Bet Record Does Not Exist