Game service APIs
Player history
GET https://{api-domain}/v1/player/{player_id}/history
ใช้สำหรับดึงข้อมูลการเล่นของผู้เล่น ย้อนหลังได้ 14 วัน
Headers
Content-Type
application/json
Authorization
Bearer <token>
Path parameter
player_id
user id ของระบบโอเปอเรเตอร์
Query string parameter
period
string
ช่วงเวลาที่ต้องการดึงข้อมูล รองรับค่า: today, last7Days, last14Days
Yes
page
Integer
หน้าที่ต้องการดึงข้อมูล default: 1
No
per_page
Integer
จำนวนที่แสดงข้อมูลต่อหน้า default: 20
No
Response
HTTP Status: 200 OK
Content-Type: application/json
{
"status": "success",
"data": {
"pagination": {
"total": 3,
"page": 1,
"per_page": 20,
"last_page": 1
},
"records": [
{
"id": "14987646",
"ref_id": "2349",
"player_id": "player001",
"game_key": "baccarat",
"round_id": "bc:1697512897867:19g6plntrcmrv",
"status": "completed",
"total_bet": 200.00,
"total_payout": 1400.00,
"currency": "THB",
"created_at": "2023-09-16T21:24:39.703Z",
"game_result": {
"data": {
"BANKER": { "card": ["KC", "QH"], "score": ["0", "0"], "total": 0 },
"PLAYER": { "card": ["4C", "4D"], "score": ["4", "4"], "total": 8 }
},
"image_url": {
"camera1": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2023/11/5/baccarat/4/bc:1699191000260:19g6plolig6v8/1.png",
"camera2": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2023/11/5/baccarat/4/bc:1699191000260:19g6plolig6v8/2.png"
},
"winner": ["PLAYER","PPAIR"]
},
"player_bet": {
"PLAYER": 100.00,
"PPAIR": 100.00
},
"player_win": {
"PLAYER": {
"amount": 100.00,
"odds": 1,
"profit": 100.00
},
"PPAIR": {
"amount": 100.00,
"odds": 11,
"profit": 1100.00
}
}
},
{
"id": "14987643",
"ref_id": "2346",
"player_id": "player001",
"game_key": "baccarat",
"round_id": "bc:1697512885258:19g6plntrcd1m",
"status": "completed",
"total_bet": 200.00,
"total_payout":0.00,
"currency": "THB",
"created_at": "2023-09-16T20:34:59.703Z",
"game_result": {
"data": {
"BANKER": { "card": ["AC", "8H"], "score": ["1", "8"], "total": 9 },
"PLAYER": { "card": ["5C", "3D"], "score": ["5", "3"], "total": 8 }
},
"image_url":{
"camera1": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2023/11/5/baccarat/4/bc:1699191000260:19g6plolig6v8/1.png",
"camera2": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2023/11/5/baccarat/4/bc:1699191000260:19g6plolig6v8/2.png"
},
"winner": ["BANKER"]
},
"player_bet": {
"PLAYER": 100.00,
"PPAIR": 100.00
}
},
{
"id": "14987641",
"ref_id": "2341",
"player_id": "player001",
"game_key": "baccarat",
"round_id": "bc:1697512798517:19g6wlntrai45",
"status": "completed",
"total_bet": 200.00,
"total_payout": 1800.00,
"currency": "THB",
"created_at": "2023-09-16T19:24:39.703Z",
"game_result": {
"data": {
"BANKER": { "card": ["4C", "1H"], "score": ["4", "1"], "total": 5 },
"PLAYER": { "card": ["4C", "2D"], "score": ["4", "2"], "total": 6 }
},
"image_url":{
"camera1": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2023/11/5/baccarat/4/bc:1699191000260:19g6plolig6v8/1.png",
"camera2": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2023/11/5/baccarat/4/bc:1699191000260:19g6plolig6v8/2.png"
},
"winner": ["PLAYER", "PPAIR"]
},
"player_bet": {
"PLAYER": 100.00,
"PPAIR": 100.00,
"BONUS": {
"type": "PLAYER",
"first":{"card": "4", "symbol": "S"},
"second":{"card": "5", "symbol": "S"}
}
},
"player_win": {
"PLAYER": {
"amount": 100.00,
"odds": 5,
"profit": 500.00,
"remark": {
"six_score_rate": 0.5,
"bonus_rate": 10
}
},
"PPAIR": {
"amount": 100.00,
"odds": 11,
"profit": 1100.00
}
}
},
{
"id": "14987640",
"ref_id": "2331",
"player_id": "player001",
"game_key": "baccarat_insurance",
"round_id": "bc:8097592798517:19g6wlntrai89",
"status": "completed",
"total_bet": 1583.00,
"total_payout": 1582.50,
"currency": "THB",
"created_at": "2023-09-15T18:24:38.703Z",
"game_result": {
"data": {
"BANKER": { "card": ["JC", "4H", "6H"], "score": ["0", "4", "6"], "total": 0 }, "PLAYER": { "card": ["KC", "QD", "3H"], "score": ["0", "0", "3"], "total": 3 }
},
"image_url":{
"camera1": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2023/11/5/baccarat/4/bc:1699191000260:19g6plolig6v8/1.png",
"camera2": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2023/11/5/baccarat/4/bc:1699191000260:19g6plolig6v8/2.png"
},
"winner": ["PLAYER", "BIG"]
},
"player_bet": {
"BANKER": 1000.00,
"INSURANCE": [333.00, 250.00]
},
"player_win": {
"INSURANCE": [
{
"amount": 333.00,
"odds": 1.5,
"profit": 499.50
},
{
"amount": 250.00,
"odds": 2,
"profit": 500.00
}
]
}
}
]
}
}Virtual game table
GET https://{api-domain}/v1/operator/tables/virtual
ใช้สำหรับดึงข้อมูลโต๊ะเกมที่โอเปอเรเตอร์สร้างไว้
Headers
Content-Type
application/json
Authorization
Bearer <token>
Query string parameter
page
integer
หน้าที่ต้องการดึงข้อมูล default: 1
No
per_page
integer
จำนวนที่แสดงข้อมูลต่อหน้า default: 20
No
status
string
สถานะโต๊ะเกม รองรับค่า:
active = เปิดใช้งาน
inactive = ปิดใช้งาน
No
id
string
เลขที่โต๊ะเกม
No
Response
Bet detail
POST https://{api-domain}/v1/operator/bet-url
ใช้สำหรับขอ URL เพื่อเปิดดูการเดิมพันของผู้เล่น โดย URL จะเปิดดูได้ภายใน 1 ชั่วโมงเท่านั้น
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
round_id
string
เลขที่ของเกมที่วางเดิมพัน
Yes
player_id
string
user id ของระบบโอเปอเรเตอร์
Yes
language
string
ภาษา 2 หลัก ตามมาตราฐาน ISO 3166-1 alpha-2 (Ex. TH, EN) default: TH
No
Response
Lotto result inquiry
GET https://{api-domain}/api/operator/lotto/result-inquiry
ใช้สำหรับดึงข้อมูลผลการออกรางวัลหวย Yeekee และ Lucky 1 dollar
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
round_id
string
เลขที่ของเกมส์ที่วางเดิมพัน
Yes
page
string
หน้าที่ต้องการข้อมูล (default: 1)
Yes
per_page
integer
จำนวนข้อมูลต่อ 1 หน้า (default: 20, max: 100)
Yes
Response
Lotto result inquiry by user
GET https://{api-domain}/api/operator/lotto/result-inquiry-by-user
ใช้สำหรับดึงข้อมูลผลการออกรางวัลหวย Yeekee และ Lucky 1 dollar ของแต่ละผู้เล่น
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
round_id
string
เลขที่ของเกมส์ที่วางเดิมพัน
Yes
player_id
string
user id ของระบบโอเปอเรเตอร์
Yes
Response
Last updated