Wallet integration

โอเปอเรเตอร์ ต้องสร้าง API ที่ใช้ในการทำงานร่วมกัน เพื่อให้ Casino Game เชื่อมต่อไปยังระบบของโอเปอเรเตอร์ตามนี้

Verify session

GET https://{operator-domain}/player/verify

ใช้สำหรับตรวจสอบเซสชั่นของผู้เล่น เพื่อให้แน่ใจว่าผู้เล่นได้รับการตรวจสอบสิทธิ์และได้รับอนุญาตให้เข้าถึงระบบ Casino Game

Headers

Name
Value

X-API-KEY

api key ที่โอเปอเรเตอร์ใส่ที่ระบบหลังบ้าน Casino Game

X-WALLET-SESSION-ID

เซสชั่นไอดี ของกระเป๋าเงินผู้เล่น

Query string parameter

Name
Type
Description
Required

player_id

string

user id ของระบบโอเปอเรเตอร์

Yes

game_key

string

รหัสประเภทเกม ตามระบบของ Casino Game Game list

Yes

Response

HTTP Status: 200 OK
Content-Type: application/json
{
  "status": "success",
  "data": {
     "player_id": "win1899",
     "wallet_session_id": "3frrer2323541121345ghs"
   }
}

Balance inquiry

GET https://{operator-domain}/player/balance

ใช้สำหรับอัปเดตยอดคงเหลือแบบเรียลไทม์ระหว่างการเล่นเกม

Headers

Name
Value

X-API-KEY

api key ที่โอเปอเรเตอร์ใส่ที่ระบบหลังบ้าน Casino Game

X-WALLET-SESSION-ID

เซสชั่นไอดี ของกระเป๋าเงินผู้เล่น

Query string parameter

Name
Type
Description
Required

player_id

string

user id ของระบบโอเปอเรเตอร์

Yes

game_key

string

รหัสประเภทเกม ตามระบบของ Casino Game Game list

Yes

currency

string

สกุลเงิน 3 หลัก ตามมาตราฐาน ISO 4217 (Ex. THB)

Yes

Response

HTTP Status: 200 OK
Content-Type: application/json
{
    "status": "success",
    "data": {
        "balance": 310.00,
        "currency": "THB",
        "additional": {
            "privilege": {
                "code": ["baccarat_tie01", "baccarat_pair01"]
            } 
        }
    }
}

Debit

POST https://{operator-domain}/transaction

ใช้สำหรับตัดเครดิตผู้เล่นหลังจากวางเดิมพัน และการใช้ทิปในหน้าโต๊ะเกม

Headers

Name
Value

Content-Type

application/json

X-API-KEY

api key ที่โอเปอเรเตอร์ใส่ที่ระบบหลังบ้าน Casino Game

X-WALLET-SESSION-ID

เซสชั่นไอดี ของกระเป๋าเงินผู้เล่น

Body

Name
Type
Description
Required

transaction_type

string

ประเภทรายการ จะมีค่าเป็น "debit"

Yes

transaction_id

string

เลขที่รายการวางเดิมพัน

Yes

transaction_code

string

รหัสประเภทรายการ จะมีค่าเป็น GBB01 = Bet GBG01 = Give tip

Yes

player_id

string

user id ของระบบโอเปอเรเตอร์

Yes

game_key

string

รหัสประเภทเกม ตามระบบของ Casino Game Game list

Yes

round_id

string

เลขที่ของเกมที่วางเดิมพัน

Yes

round

object

ข้อมูลรอบที่ซื้อ Lotto รองรับเฉพาะ Yeekee, Lucky 1 dollar

No

no

string

รอบที่ซื้อ

Yes

result_date

string

เวลาออกผลรางวัล ตามมาตราฐาน ISO 8601 format: YYYY-MM-DDTHH:mm:ss.SSSZ

Yes

table_id

string

เลขที่โต๊ะที่โอเปอเรเตอร์สร้าง

Yes

amount

decimal

จำนวนเครดิต เป็นทศนิยม 2 ตำแหน่ง

Yes

currency

string

สกุลเงิน 3 หลัก ตามมาตราฐาน ISO 4217 (Ex. THB)

Yes

dealer

object

ข้อมูลดีลเลอร์

No

id

string

ไอดีดีลเลอร์

Yes

code

string

รหัสดีลเลอร์

Yes

name

string

ชื่อดีลเลอร์

Yes

discount_amount

decimal

ส่วนลดรวมของการซื้อครั้งนั้น รองรับเฉพาะ Lucky 1 dollar

No

created_at

string

วันเวลาที่สร้างรายการ ตามมาตราฐาน ISO 8601 format: YYYY-MM-DDTHH:mm:ss.SSSZ

Yes

ตัวอย่าง Request

Baccarat
{
    "transaction_type": "debit",
    "transaction_id": "38790",
    "transaction_code": "GBB01",
    "player_id": "999",
    "game_key": "baccarat",
    "round_id": "bc:58:1726578087224:19g6wm16g0iew",
    "table_id": "202",
    "amount": 300,
    "currency": "THB",
    "created_at": "2024-09-17T13:02:29.376Z",
    "dealer": {
        "id": "",
        "code": "",
        "name": ""
    }
}
Dragon Tiger
{
    "transaction_type": "debit",
    "transaction_id": "38798",
    "transaction_code": "GBB01",
    "player_id": "999",
    "game_key": "dragontiger",
    "round_id": "dt:49:1726579924672:19g6qm16h3w74",
    "table_id": "203",
    "amount": 400,
    "currency": "THB",
    "created_at": "2024-09-17T13:32:31.575Z",
    "dealer": {
        "id": "",
        "code": "",
        "name": ""
    }
}
Roulette
{
    "transaction_type": "debit",
    "transaction_id": "38800",
    "transaction_code": "GBB01",
    "player_id": "999",
    "game_key": "roulette",
    "round_id": "rl:36:1726580253874:19g6qm16hay7m",
    "table_id": "205",
    "amount": 70,
    "currency": "THB",
    "created_at": "2024-09-17T13:37:48.482Z",
    "dealer": {
        "id": "67",
        "code": "QADEALER01",
        "name": "QA Dealer"
    }
}
Sicbo
{
    "transaction_type": "debit",
    "transaction_id": "38804",
    "transaction_code": "GBB01",
    "player_id": "999",
    "game_key": "sicbo",
    "round_id": "sb:27:1726581164338:19g6xm16hugqa",
    "table_id": "204",
    "amount": 90,
    "currency": "THB",
    "created_at": "2024-09-17T13:53:02.383Z",
    "dealer": {
        "id": "67",
        "code": "QADEALER01",
        "name": "QA Dealer"
    }
}
HiLo
{
    "transaction_type": "debit",
    "transaction_id": "125517",
    "transaction_code": "GBB01",
    "player_id": "100001",
    "game_key": "hilo_local",
    "round_id": "hl:75:1757487968416:19g6pmfdmyjds",
    "table_id": "293",
    "amount": 500,
    "currency": "THB",
    "created_at": "2025-09-10T07:06:31.307Z",
    "dealer": {
        "id": "",
        "code": "",
        "name": ""
    }
}
HooHeyHow
{
    "transaction_type": "debit",
    "transaction_id": "125519",
    "transaction_code": "GBB01",
    "player_id": "100001",
    "game_key": "hooheyhow",
    "round_id": "hhh:76:1757488277764:19g6wmfdn562s",
    "table_id": "295",
    "amount": 500,
    "currency": "THB",
    "created_at": "2025-09-10T07:11:41.119Z",
    "dealer": {
        "id": "",
        "code": "",
        "name": ""
    }
}
Pokdeng
{
    "transaction_type": "debit",
    "transaction_id": "125525",
    "transaction_code": "GBB01",
    "player_id": "100001",
    "game_key": "pokdeng",
    "round_id": "pd:1757488584148:19g6wmfdnbqhg",
    "table_id": "296",
    "amount": 300,
    "currency": "THB",
    "created_at": "2025-09-10T07:16:42.326Z",
    "dealer": {
        "id": "",
        "code": "",
        "name": ""
    }
}
Yeekee
{
    "transaction_type": "debit",
    "transaction_id": "117395",
    "transaction_code": "GBB01",
    "player_id": "1737",
    "game_key": "yeekee",
    "round_id": "9105",
    "round": {
        "no": "51",
        "result_date": "2025-05-09T08:01:00.000Z"
    },
    "table_id": "0",
    "amount": 80,
    "currency": "THB",
    "created_at": "2025-05-09T07:52:22.001Z"
}
Lucky 1 dollar
{
    "transaction_type": "debit",
    "transaction_id": "117418",
    "transaction_code": "GBB01",
    "player_id": "1678",
    "game_key": "lucky_20",
    "round_id": "9170",
    "round": {
        "no": "51",
        "result_date": "2025-05-08T17:00:00.000Z"
    },
    "table_id": "0",
    "amount": 200,
    "currency": "THB",
    "discount_amount": 0,
    "created_at": "2025-05-09T08:47:33.930Z"
}

Response

HTTP Status: 200 OK
Content-Type: application/json
{
    "status": "success",
    "data": {
        "balance": 300.00, // เครดิตคงเหลือ
        "currency": "THB", // สกุลเงิน
        "ref_id": "123456" // เลขรายการของโอเปอเรเตอร์
    }
}

Credit

POST https://{operator-domain}/transaction

ใช้สำหรับส่งผลการวางเดิมพันกลับไปยังโอเปอเรเตอร์ หลังจากออกผล

Headers

Name
Value

Content-Type

application/json

X-API-KEY

api key ที่โอเปอเรเตอร์ใส่ที่ระบบหลังบ้าน Casino Game

X-WALLET-SESSION-ID

เซสชั่นไอดี ของกระเป๋าเงินผู้เล่น

Body

Name
Type
Description
Required

transaction_type

string

ประเภทรายการ จะมีค่าเป็น "credit"

Yes

transaction_id

string

เลขที่รายการจ่ายเครดิตจาก Casino Game ในกรณีที่ผู้เล่นแพ้ เลขที่รายการจะเป็น "0"

Yes

transaction_code

string

รหัสรายการ จะมีค่า GBW01 = Win GBW02 = Special rewards

GBW03 = Game rewards GBL01 = Lose

Yes

bet_id

string

เลขที่รายการวางเดิมพัน

Yes

player_id

string

user id ของระบบโอเปอเรเตอร์

Yes

game_key

string

รหัสประเภทเกม ตามระบบของ Casino Game Game list

Yes

round_id

string

เลขที่ของเกมที่วางเดิมพัน

Yes

table_id

string

เลขที่โต๊ะที่โอเปอเรเตอร์สร้าง

Yes

amount

decimal

จำนวนเครดิต เป็นทศนิยม 2 ตำแหน่ง ที่ระบบจะต้องโอนให้ผู้เล่น กรณีที่ transaction_code = GBW01, GBW02

Yes

additional

object

ข้อมูลเพิ่มเติม

No

privilege

decimal

เครดิตที่ได้รับจากสิทธิพิเศษ

No

jackpot

decimal

เครดิตที่ได้รับรางวัลแจ็คพอต

No

currency

string

สกุลเงิน 3 หลัก ตามมาตราฐาน ISO 4217 (Ex. THB)

Yes

dealer

object

ข้อมูลดีลเลอร์

No

id

string

ไอดีดีลเลอร์

Yes

code

string

รหัสดีลเลอร์

Yes

name

string

ชื่อดีลเลอร์

Yes

created_at

string

วันเวลาที่สร้างรายการ ตามมาตราฐาน ISO 8601 format: YYYY-MM-DDTHH:mm:ss.SSSZ

Yes

game_result

object

รายละเอียดผลที่ออกในรอบนั้นๆ

Yes

player_bet

object

ข้อมูลช่องเดิมพันที่ผู้เล่นวางเดิมพัน จะค่าตามนี้ Game betting code

Yes

player_win

object

รายละเอียดที่ผู้เล่นวางเดิมพันแล้ว ชนะเดิมพัน

Yes

refund

object

รายละเอียดที่ผู้เล่นวางเดิมพันแล้ว ระบบคืนเครดิต

No

ตัวอย่าง Request

Baccarat
{
    "transaction_type": "credit",
    "transaction_id": "38797",
    "transaction_code": "GBW01",
    "bet_id": "38795",
    "player_id": "999",
    "game_key": "baccarat",
    "round_id": "bc:58:1726579519213:19g6qm16gv7cd",
    "table_id": "202",
    "amount": 300,
    "currency": "THB",
    "created_at": "2024-09-17T13:28:21.200Z",
    "game_result": {
        "data": {
            "BANKER": {
                "card": [
                    "7D",
                    "6S"
                ],
                "score": [
                    "7",
                    "6"
                ],
                "total": 3
            },
            "PLAYER": {
                "card": [
                    "9C",
                    "0S"
                ],
                "score": [
                    "9",
                    "0"
                ],
                "total": 9
            }
        },
        "image_url": {
            "camera1": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2024/9/17/baccarat/58/bc:58:1726579519213:19g6qm16gv7cd/1.png",
            "camera2": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2024/9/17/baccarat/58/bc:58:1726579519213:19g6qm16gv7cd/2.png"
        },
        "winner": [
            "PLAYER",
            "SMALL"
        ]
    },
    "player_bet": {
        "PLAYER": 100
    },
    "player_win": {
        "PLAYER": {
            "amount": 100,
            "odds": 2,
            "profit": 200,
            "additional": {
                "privilege": [
                    {
                        "code": "SPE_BCT_TIE",
                        "type": "PLAYER",
                        "odds": 1,
                        "profit": 100
                    }
                ]
            }
        }
    },
    "additional": {
        "privilege": 100
    }
}
Dragon Tiger
{
    "transaction_type": "credit",
    "transaction_id": "38799",
    "transaction_code": "GBW01",
    "bet_id": "38798",
    "player_id": "999",
    "game_key": "dragontiger",
    "round_id": "dt:49:1726579924672:19g6qm16h3w74",
    "table_id": "203",
    "amount": 200,
    "currency": "THB",
    "created_at": "2024-09-17T13:32:42.278Z",
    "game_result": {
        "data": {
            "DRAGON": {
                "card": [
                    "8C"
                ],
                "score": [
                    8
                ],
                "total": 8
            },
            "TIGER": {
                "card": [
                    "JC"
                ],
                "score": [
                    11
                ],
                "total": 11
            }
        },
        "image_url": {
            "camera1": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2024/9/17/dragontiger/49/dt:49:1726579924672:19g6qm16h3w74/1.png",
            "camera2": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2024/9/17/dragontiger/49/dt:49:1726579924672:19g6qm16h3w74/2.png"
        },
        "winner": [
            "TIGER",
            "DEVEN",
            "TODD",
            "TBLACK",
            "DBLACK"
        ]
    },
    "player_bet": {
        "TIGER": 100,
        "TIE": 100,
        "DRED": 100,
        "TEVEN": 100
    },
    "player_win": {
        "TIGER": {
            "amount": 100,
            "odds": 1,
            "profit": 100
        }
    }
}
Roulette
{
    "transaction_type": "credit",
    "transaction_id": "38801",
    "transaction_code": "GBW01",
    "bet_id": "38800",
    "player_id": "999",
    "game_key": "roulette",
    "round_id": "rl:36:1726580253874:19g6qm16hay7m",
    "table_id": "205",
    "amount": 180,
    "currency": "THB",
    "created_at": "2024-09-17T13:38:04.301Z",
    "game_result": {
        "data": {
            "score": 17
        },
        "image_url": {
            "camera1": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2024/9/17/roulette/36/rl:36:1726580253874:19g6qm16hay7m/1.png",
            "camera2": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2024/9/17/roulette/36/rl:36:1726580253874:19g6qm16hay7m/2.png"
        },
        "winner": [
            "STRAIGHTUPx17",
            "SPLITx16-17",
            "SPLITx17-18",
            "SPLITx14-17",
            "SPLITx17-20",
            "STREETx16-17-18",
            "SQUAREx13-14-16-17",
            "SQUAREx14-15-17-18",
            "SQUAREx16-17-19-20",
            "SQUAREx17-18-20-21",
            "LINEx13-18",
            "LINEx16-21",
            "DOZENx2nd",
            "COLUMNx2nd",
            "HALFxSMALL",
            "HALFxODD",
            "HALFxBLACK"
        ]
    },
    "player_bet": {
        "COLUMNx3rd": 10,
        "DOZENx1st": 10,
        "SQUAREx26-27-29-30": 10,
        "STREETx0-2-3": 10,
        "STREETx10-11-12": 10,
        "SPLITx16-17": 10,
        "SPLITx20-23": 10
    },
    "player_win": {
        "SPLITx16-17": {
            "amount": 10,
            "odds": 17,
            "profit": 170
        }
    },
    "dealer": {
        "id": "67",
        "code": "QADEALER01",
        "name": "QA Dealer"
    }
}
Sicbo
{
    "transaction_type": "credit",
    "transaction_id": "38805",
    "transaction_code": "GBW01",
    "bet_id": "38804",
    "player_id": "999",
    "game_key": "sicbo",
    "round_id": "sb:27:1726581164338:19g6xm16hugqa",
    "table_id": "204",
    "amount": 100,
    "currency": "THB",
    "created_at": "2024-09-17T13:55:02.589Z",
    "game_result": {
        "data": {
            "dice": [
                "1",
                "2",
                "3"
            ],
            "score": 6
        },
        "image_url": {
            "camera1": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2024/9/17/sicbo/27/sb:27:1726581164338:19g6xm16hugqa/1.png",
            "camera2": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2024/9/17/sicbo/27/sb:27:1726581164338:19g6xm16hugqa/2.png"
        },
        "winner": [
            "SMALL",
            "THREEDICETOTALSx6",
            "TWODICEx12",
            "TWODICEx13",
            "TWODICEx23",
            "SINGLEDIEx1",
            "SINGLEDIEx2",
            "SINGLEDIEx3",
            "EVEN"
        ]
    },
    "player_bet": {
        "THREEDICETOTALSx9": 10,
        "THREEDICETOTALSx13": 10,
        "TWODICEx13": 10,
        "TWODICEx16": 10,
        "TWODICEx45": 10,
        "SINGLEDIEx2": 10,
        "SINGLEDIEx3": 10,
        "SINGLEDIEx6": 10,
        "SDOUBLESx3": 10
    },
    "player_win": {
        "TWODICEx13": {
            "amount": 10,
            "odds": 5,
            "profit": 50
        },
        "SINGLEDIEx2": {
            "amount": 10,
            "odds": 1,
            "profit": 10
        },
        "SINGLEDIEx3": {
            "amount": 10,
            "odds": 1,
            "profit": 10
        }
    },
    "dealer": {
        "id": "67",
        "code": "QADEALER01",
        "name": "QA Dealer"
    }
}
HiLo
{
    "transaction_type": "credit",
    "transaction_id": "125518",
    "transaction_code": "GBW01",
    "bet_id": "125517",
    "player_id": "100001",
    "game_key": "hilo_local",
    "round_id": "hl:75:1757487968416:19g6pmfdmyjds",
    "table_id": "293",
    "amount": 900,
    "currency": "THB",
    "created_at": "2025-09-10T07:06:34.547Z",
    "game_result": {
        "data": {
            "dice": [
                "1",
                "1",
                "6"
            ],
            "score": 8
        },
        "image_url": {
            "camera1": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2025/9/10/hilo_local/75/hl:75:1757487968416:19g6pmfdmyjds/1.png",
            "camera2": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2025/9/10/hilo_local/75/hl:75:1757487968416:19g6pmfdmyjds/2.png"
        },
        "winner": [
            "SMALL",
            "LONGTODx156",
            "LONGTODx136",
            "SMALLDIEx1",
            "SMALLDIEx6",
            "TWODICEx16",
            "SINGLEDIEx1",
            "SINGLEDIEx6"
        ],
        "game_info": {
            "table_id": "75",
            "shoe_id": "203",
            "round": "20"
        }
    },
    "player_bet": {
        "BIG": 100,
        "SMALLDIEx5": 100,
        "TWODICEx16": 100,
        "TWODICEx35": 100,
        "SINGLEDIEx1": 100
    },
    "player_win": {
        "TWODICEx16": {
            "amount": 100,
            "odds": 5,
            "profit": 500
        },
        "SINGLEDIEx1": {
            "amount": 100,
            "odds": 2,
            "profit": 200
        }
    }
}
HooHeyHow
{
    "transaction_type": "credit",
    "transaction_id": "125520",
    "transaction_code": "GBW01",
    "bet_id": "125519",
    "player_id": "100001",
    "game_key": "hooheyhow",
    "round_id": "hhh:76:1757488277764:19g6wmfdn562s",
    "table_id": "295",
    "amount": 1400,
    "currency": "THB",
    "created_at": "2025-09-10T07:11:45.153Z",
    "game_result": {
        "data": {
            "dice": [
                6,
                4,
                3
            ]
        },
        "image_url": {
            "camera1": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2025/9/10/hooheyhow/76/hhh:76:1757488277764:19g6wmfdn562s/1.png",
            "camera2": "https://s3.ap-southeast-1.amazonaws.com/games-s3.bw-cdn.com/games/2025/9/10/hooheyhow/76/hhh:76:1757488277764:19g6wmfdn562s/2.png"
        },
        "winner": [
            "LONGTODx136",
            "LONGTODx146",
            "LONGTODx345",
            "LONGTODx356",
            "TWODICEx34",
            "TWODICEx36",
            "TWODICEx46",
            "SINGLEDIEx3",
            "SINGLEDIEx4",
            "SINGLEDIEx6"
        ],
        "game_info": {
            "table_id": "76",
            "shoe_id": "510",
            "round": "1"
        }
    },
    "player_bet": {
        "TWODICEx13": 100,
        "TWODICEx34": 100,
        "TWODICEx46": 100,
        "SINGLEDIEx1": 100,
        "SINGLEDIEx6": 100
    },
    "player_win": {
        "TWODICEx34": {
            "amount": 100,
            "odds": 5,
            "profit": 500
        },
        "TWODICEx46": {
            "amount": 100,
            "odds": 5,
            "profit": 500
        },
        "SINGLEDIEx6": {
            "amount": 100,
            "odds": 1,
            "profit": 100
        }
    }
}
Pokdeng
{
    "transaction_type": "credit",
    "transaction_id": "125526",
    "transaction_code": "GBW01",
    "bet_id": "125525",
    "player_id": "100001",
    "game_key": "pokdeng",
    "round_id": "pd:1757488584148:19g6wmfdnbqhg",
    "table_id": "296",
    "amount": 360,
    "currency": "THB",
    "created_at": "2025-09-10T07:19:48.098Z",
    "game_result": {
        "data": {
            "S1": {
                "card": [
                    "AC",
                    "8C"
                ],
                "score": [
                    8,
                    1
                ],
                "total": 9
            },
            "S2": {
                "card": [
                    "2D",
                    "AS",
                    "5D"
                ],
                "score": [
                    2,
                    5,
                    1
                ],
                "total": 8
            },
            "S3": {
                "card": [
                    "3S",
                    "4H",
                    "JS"
                ],
                "score": [
                    3,
                    4,
                    0
                ],
                "total": 7
            },
            "S4": {
                "card": [
                    "4S",
                    "KH",
                    "QS"
                ],
                "score": [
                    4,
                    0,
                    0
                ],
                "total": 4
            },
            "S5": {
                "card": [
                    "2H",
                    "QH",
                    "3D"
                ],
                "score": [
                    2,
                    3,
                    0
                ],
                "total": 5
            },
            "BANKER": {
                "card": [
                    "5C",
                    "KC"
                ],
                "score": [
                    5,
                    0
                ],
                "total": 5
            }
        },
        "winner": [ // จะส่งเฉพาะมือที่ผู้เล่นวางเดิมพันแล้วชนะ
            "S2",
            "S3"
        ]
    },
    "player_bet": {
        "S2": 100,
        "S3": 100,
        "S4": 100
    },
    "player_win": {
        "S2": {
            "amount": 80,
            "odds": 0.8,
            "profit": 80,
            "card": 3
        },
        "S3": {
            "amount": 80,
            "odds": 0.8,
            "profit": 80,
            "card": 3
        }
    }
}
Special rewards : GBW02
{
    "transaction_type": "credit",
    "transaction_id": "119948",
    "transaction_code": "GBW02",
    "player_id": "999",
    "amount": 10000,
    "currency": "THB",
    "created_at": "2025-05-21T14:39:28.007Z",
}

Response

HTTP Status: 200 OK
Content-Type: application/json
{
    "status": "success",
    "data": {
        "balance": 325.00, // เครดิตคงเหลือ
        "currency": "THB", // สกุลเงิน
        "ref_id": "345678" // เลขรายการของโอเปอเรเตอร์
    }
}

Cancel

POST https://{operator-domain}/transaction

ใช้สำหรับให้ทาง Casino Game ส่งยกเลิกรายการวางเดิมพัน ตามกรณีนี้ 1. Casino Game เรียก API debit แล้วโอเปอเรเตอร์ ตอบ timeout 2. มีความผิดพลาดจากการออกผล ทำให้ไม่สามารถออกผลได้ ทั้งจากหน้าโต๊ะ และปัญหาจากระบบ

Headers

Name
Value

Content-Type

application/json

X-API-KEY

api key ที่โอเปอเรเตอร์ใส่ที่ระบบหลังบ้าน Casino Game

X-WALLET-SESSION-ID

เซสชั่นไอดี ของกระเป๋าเงินผู้เล่น

Body

Name
Type
Description
Required

transaction_type

string

ประเภทรายการ จะมีค่าเป็น "cancel"

Yes

transaction_id

string

เลขที่รายการยกเลิก

Yes

transaction_code

string

รหัสประเภทรายการ จะมีค่าเป็น RFB01 = refund

Yes

bet_id

string

เลขที่รายการวางเดิมพัน โอเปอเรเตอร์ต้องตรวจสอบว่ามีรายการ transaction_id (debit) จากการวางเดิมพันจึงจะทำการคืนเครดิตให้สมาชิก (ต้องทำการคืนเครดิตเพียงครั้งเดียวเท่านั้น)

Yes

player_id

string

user id ของระบบโอเปอเรเตอร์

Yes

game_key

string

รหัสประเภทเกม ตามระบบของ Casino Game Game list

Yes

round_id

string

เลขที่ของเกมที่วางเดิมพัน

Yes

round

object

ข้อมูลรอบที่ซื้อ Lotto รองรับเฉพาะ Yeekee, Lucky 1 dollar

No

no

string

รอบที่ซื้อ

Yes

result_date

string

เวลาออกผลรางวัล ตามมาตราฐาน ISO 8601 format: YYYY-MM-DDTHH:mm:ss.SSSZ

Yes

table_id

string

เลขที่โต๊ะที่โอเปอเรเตอร์สร้าง

Yes

amount

decimal

จำนวนเครดิต เป็นทศนิยม 2 ตำแหน่ง

Yes

currency

string

สกุลเงิน 3 หลัก ตามมาตราฐาน ISO 4217 (Ex. THB)

Yes

dealer

object

ข้อมูลดีลเลอร์

No

id

string

ไอดีดีลเลอร์

Yes

code

string

รหัสดีลเลอร์

Yes

name

string

ชื่อดีลเลอร์

Yes

created_at

string

วันเวลาที่สร้างรายการ ตามมาตราฐาน ISO 8601 format: YYYY-MM-DDTHH:mm:ss.SSSZ

Yes

Response

HTTP Status: 200 OK
Content-Type: application/json
{
    "status": "success",
        "data": {
            "balance": 300.00, // เครดิตคงเหลือ
            "currency": "THB", // สกุลเงิน
            "ref_id": "567890" // เลขรายการของโอเปอเรเตอร์
    }
}

Last updated