---
# System prepended metadata

title: 串接 XG 真人

---

# 串接 XG 真人

**4. Forwardgame**
---

 ### 4.22 XG
 ```json!
{
   "club_id": "2200005277",
   "platform": "XG",
   "game_Name": "",
   "gameConfig": {
     "lang" : "zh-CN",
     "betLimitGroup" : "101,102,103"
   }
}

{
    "club_id": "2200005277",
    "platform": "XG",
    "game_Name": "",
    "gameConfig": {
      "GameType": "1",
      "TableId": "E",
      "lang" : "zh-CN",
      "betLimitGroup" : "101,102,103"
    }
}

現況一律進大廳 GameType TableId 可不帶/帶空白/數值帶錯 都會開大廳

指定進桌 GameType 列舉值
https://github.com/jacky5823a/docs/blob/master/AccountingPlatformAPI/reference-cht.md#%E9%81%8A%E6%88%B2%E9%A1%9E%E5%88%A5

指定進桌 TableId 列舉值
https://github.com/jacky5823a/docs/blob/master/AccountingPlatformAPI/XG/accounting-platform-cht.md#%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A0%85
```


**限注範本**
---
```
待補
```



---

**注單列表 GetBetRecord**
---
https://wallet.5168royal.com/swagger/index.html
```
curl -X 'GET' \
  'https://localhost:3101/w1api/GetBetRecord?summary_id=9b1f0216-f710-400c-8d5d-2503a91543a9&Platform=XG&ReportTime=2023-03-06%2011%3A05%3A00.000' \
  -H 'accept: application/json'
```
```
{
  "data": [
    {
      "summary_id": "9b1f0216-f710-400c-8d5d-2503a91543a9",
      "account": "dev100089",
      "wagersId": "91732",
      "gameType": 5,
      "betAmount": 40,
      "validBetAmount": 40,
      "wagersTime": "2023-03-06T11:09:45",
      "payoffTime": "2023-03-06T11:09:52",
      "settlementTime": "2023-03-06T11:09:45",
      "payoffAmount": -40,
      "commission": 0,
      "status": 2,
      "currency": "THB",
      "gameMethod": 1,
      "tableType": 0,
      "tableId": "X",
      "round": 1678072033,
      "run": 6,
      "gameResult": "SQ,H4,,,,",
      "betType": "[{\"odds\": \"8.00\", \"spotId\": 3, \"spotName\": \"Tie\", \"betAmount\": 20, \"loseWinAmount\": -20}, {\"odds\": \"1.00\", \"spotId\": 2, \"spotName\": \"Tiger\", \"betAmount\": 20, \"loseWinAmount\": -20}]",
      "transactions": "[{\"spotId\": 3, \"spotName\": \"Tie\", \"betAmount\": 20, \"payoffAmount\": -20, \"transactionId\": \"4cc72f74-80a0-4dbf-b419-85deee82dd7e\"}, {\"spotId\": 2, \"spotName\": \"Tiger\", \"betAmount\": 20, \"payoffAmount\": -20, \"transactionId\": \"576cb84a-d6d4-4a05-bd83-ad2f067a8767\"}]",
      "pre_BetAmount": null,
      "pre_validBetAmount": null,
      "pre_PayoffAmount": null,
      "pre_Status": null
    },
    {
      "summary_id": "9b1f0216-f710-400c-8d5d-2503a91543a9",
      "account": "dev100089",
      "wagersId": "91731",
      "gameType": 5,
      "betAmount": 40,
      "validBetAmount": 40,
      "wagersTime": "2023-03-06T11:09:07",
      "payoffTime": "2023-03-06T11:09:24",
      "settlementTime": "2023-03-06T11:09:07",
      "payoffAmount": 0,
      "commission": 0,
      "status": 2,
      "currency": "THB",
      "gameMethod": 1,
      "tableType": 0,
      "tableId": "X",
      "round": 1678072033,
      "run": 5,
      "gameResult": "S4,HK,,,,",
      "betType": "[{\"odds\": \"8.00\", \"spotId\": 3, \"spotName\": \"Tie\", \"betAmount\": 20, \"loseWinAmount\": -20}, {\"odds\": \"1.00\", \"spotId\": 2, \"spotName\": \"Tiger\", \"betAmount\": 20, \"loseWinAmount\": 20}]",
      "transactions": "[{\"spotId\": 3, \"spotName\": \"Tie\", \"betAmount\": 20, \"payoffAmount\": -20, \"transactionId\": \"19f12efc-38a0-4a0c-9fce-81409ea1b4d1\"}, {\"spotId\": 2, \"spotName\": \"Tiger\", \"betAmount\": 20, \"payoffAmount\": 20, \"transactionId\": \"30dd1ebd-cc49-439b-a19f-2ba6de96ccc8\"}]",
      "pre_BetAmount": null,
      "pre_validBetAmount": null,
      "pre_PayoffAmount": null,
      "pre_Status": null
    },
    {
      "summary_id": "9b1f0216-f710-400c-8d5d-2503a91543a9",
      "account": "dev100089",
      "wagersId": "91730",
      "gameType": 5,
      "betAmount": 40,
      "validBetAmount": 40,
      "wagersTime": "2023-03-06T11:08:41",
      "payoffTime": "2023-03-06T11:08:57",
      "settlementTime": "2023-03-06T11:08:41",
      "payoffAmount": 0,
      "commission": 0,
      "status": 2,
      "currency": "THB",
      "gameMethod": 1,
      "tableType": 0,
      "tableId": "X",
      "round": 1678072033,
      "run": 4,
      "gameResult": "S2,C7,,,,",
      "betType": "[{\"odds\": \"8.00\", \"spotId\": 3, \"spotName\": \"Tie\", \"betAmount\": 20, \"loseWinAmount\": -20}, {\"odds\": \"1.00\", \"spotId\": 2, \"spotName\": \"Tiger\", \"betAmount\": 20, \"loseWinAmount\": 20}]",
      "transactions": "[{\"spotId\": 3, \"spotName\": \"Tie\", \"betAmount\": 20, \"payoffAmount\": -20, \"transactionId\": \"a56b184b-6d14-43ec-b8da-acf2b9932504\"}, {\"spotId\": 2, \"spotName\": \"Tiger\", \"betAmount\": 20, \"payoffAmount\": 20, \"transactionId\": \"5484557a-9d95-482c-b9f1-ff909ba2738f\"}]",
      "pre_BetAmount": null,
      "pre_validBetAmount": null,
      "pre_PayoffAmount": null,
      "pre_Status": null
    }
  ],
  "code": 0,
  "message": "Success"
}
```

---
**注單欄位對應**(說明=key=(型態))
---
交易單號=WagersId(string)
時間=SettlementTime(string/datetime)
遊戲=GameType(string)
投注金額=BetAmount(decimal)
輸贏金額=PayoffAmount(decimal)

其他可能有用的欄位: (當有改單取消時此欄位有值)
pre_BetAmount 原下注金額
pre_validBetAmount 原有效下注金額
pre_PayoffAmount 原輸贏金額
pre_Status 原注單狀態

注單狀態 status / pre_Status
https://github.com/jacky5823a/docs/blob/master/AccountingPlatformAPI/reference-cht.md#%E6%B3%A8%E5%96%AE%E7%8B%80%E6%85%8B

---


**XG 有提供遊戲明細 GetBetDetail**
---
```
curl -X 'GET' \
  'https://wallet.5168royal.com/w1api/GetBetDetail?record_id=91741&summary_id=6cf11886-181a-47e2-aba1-f16bc0b93acb&Platform=XG&lang=en-US&ReportTime=2022-03-10%2010%3A25%3A00' \
  -H 'accept: application/json'
```

```
{
  "data": "https://ttt.onlinegames22.com/page/wallet/replay.jsp?platform=SEXYBCRT&gameType=LIVE&roundId=Mexico-51-GA213510039&path=https%3A%2F%2Fbfsiz6.bikimex.net%2Ftoken%2Fresult%2Freplay.jsp%3Ftoken%3D4i9oFD7dThHHWUNgOxt4BdyvpOsmfZg3vdQmJ0yvDxCJX6rtmp5jc7XDoW%252FfsErouS7ZT0xMpwQW%252BSFkqmFzeYsXwAwMYwDnoo7A2xvZlkLhjYpGE%252FkX14ME%252FzE8q%252FqISAKsARZQBOXZabzclT2UTA%253D%253D%26lang%3Den%26reverseBPColor%3Dfalse",
  "code": 0,
  "message": "Success"
}
```

---
**XG測試後台帳號密碼**
```
http://staging-agent.jetcafe.life/
帳號：
密碼：
```

XG PI:

https://github.com/jacky5823a/docs/blob/master/AccountingPlatformAPI/XG/accounting-platform-cht.md