Sportbook APISportbook API
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashbaord
  • 27. Get Url Start Tournament (Common)
  • Detail Types
  • Rate Limit
  • Error Code
  • English
  • ภาษาไทย
  • 简体中文
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashbaord
  • 27. Get Url Start Tournament (Common)
  • Detail Types
  • Rate Limit
  • Error Code
  • English
  • ภาษาไทย
  • 简体中文
  • Overview
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashbaord
  • 27. Get Url Start Tournament (Common)

9. Get Bet History By DepositID (Common)

Use for Merchant get Bet History By DepositID

*ยอดเล่น SLOT FISHING KENO POKER อับเดท realtime ช้าสุด 150 วินาที แต่ไม่เกิน 300 วินาที

*รายการเล่นสามารถดูย้อนหลังได้ 1 เดือน

*รายการเล่น PG สามารถดูย้อนหลังได้ 7 วัน

Method : [Post]
Path : {{domain}}/ext/getHistoryBetByDepositID/{{prefix}}/{{agentUsername}}
Content-Type : application/json

Request Body

{
    "agentUsername": "{{agentUsername}}",
    "key": "{{key}}",
    "username": "{{agentUsername}}ninemb01",
    "refId": "60fcda0071ce66250c9c2efd",
    "nk":"eyJfaWQiOiI2MjhhM2M3ZWMyZmNkNjFmMjNhNzg0ZTAiLCJkIjoxNjUzMjI2NjIyMjg0MDAwMDAwLCJwIjoiNjI4YTEzYjNkYjMzYzdkNDAwYjYyZTlmIn0"
    "web": "{{whiteLabel}}"   
}
KeyTypeExample ValueDescription
agentUsernameStringtestagเอเย่นต์ที่ใช้งาน
keyStringtnyENKDWvOkBXpvm6UZVaคีย์ของเอเย่นต์
usernameStringtestagninemb01ยูสเซอร์ที่ต้องการดูโปรไฟล์
refIdString60fcda0071ce66250c9c2efdไอดีอ้างอิงของการเติมเงิน
nkStringeyJfaWQiOiI2MjhhM2M3ZWMyZmNkNjFmMjNhNzg0ZTAiLCJkIjox NjUzMjI2NjIyMjg0MDAwMDAwLCJwIjoiNjI4YTEzYjNkYjMzYzdkNDAwYjYyZTlmIn0หน้าที่แสดงข้อมูล
webStringsportbook101เว็บที่ใช้งาน

Response

{
    "code": 0,
    "data": {
        [
            {
                "__v": 0,
                "_id": "61fcda0071ce66000c9c2dfe",
                "d": "2022-02-04T07:47:12.178Z",
                "l": [
                    "DEPOSIT",
                    "61fcda0071ce66000c9c2dfd",
                    null,
                    null,
                    null,
                    "Fri Feb 04 2022 14:47:12 GMT+0700 (GMT+07:00)",
                    "10",
                    "0",
                    "10",
                    null,
                    null,
                    null
                ],
                "p": "61fcda0071ce66000c9c2dfd",
                "t": "61fcda0071ce66000c9c2dfd",
                "u": "testnineag01ninemb01"
            }
        ],        
    },
    msg: "SUCCESS",
    nk: "eyJfaWQiOiI2MjhhM2M3ZWMyZmNkNjFmMjNhNzg0ZTAiLCJkIjoxNjUzMjI2NjIyMjg0MDAwMDAwLCJwIjoiNjI4YTEzYjNkYjMzYzdkNDAwYjYyZTlmIn0="
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
nkStringeyJfaWQiOiI2MjhhM2M3ZWMyZmNkNjFmMjNhNzg0ZTAiLCJkIjox NjUzMjI2NjIyMjg0MDAwMDAwLCJwIjoiNjI4YTEzYjNkYjMzYzdkNDAwYjYyZTlmIn0=nk คือ next key ยิงครั้งแรกจะได้ ข้อมูล100รายการ ถ้ามีมากกว่า 100 รายการ จะมี fieldชื่อ nk ให้ยิงเส้นเดิมแล้วส่ง nk จะได้ข้อมูลรายการที่101 - 200 สำหรับ Load more
dataArray [ { "__v": 0, "_id": "61fcda0071ce66000c9c2dfe", "d": "2022-02-04T07:47:12.178Z", "l": [ "DEPOSIT", "61fcda0071ce66000c9c2dfd", null, null, null, "Fri Feb 04 2022 14:47:12 GMT+0700 (GMT+07:00)", "10", "0", "10", null, null, null ], "p": "61fcda0071ce66000c9c2dfd", "t": "61fcda0071ce66000c9c2dfd", "u": "testnineag01ninemb01" } ], msg: "SUCCESS", nk: "eyJfaWQiOiI2MjhhM2M3ZWMyZmNkNjFmMjNhNzg0ZTAiLCJkIjoxNjUzMjI2NjIyMjg0MDAwMDAwLCJwIjoiNjI4YTEzYjNkYjMzYzdkNDAwYjYyZTlmIn0=" data bet history by deposit id [ "d" คือ เวลาที่เล่น, "u" คือ ยูสเซอร์ที่เล่น, "l[0]" คือ action มี [bet, payout, wl], "l[1]" คือ refId, "l[2]" คือ ref 1 ใช้ในการยิงเส้น gameDetail, "l[3]" คือ ref 2 ใช้ในการยิงเส้น gameDetail, "l[4]" คือ ref 3 ใช้ในการยิงเส้น gameDetail, "l[5]" คือ betTime, "l[6]" คือ ยอดการจ่าย, "l[7]" คือ before credit, "l[8]" คือ after credit, ]

Error Code

Valuemsg
0Success
100001Missing 'agent Username' field.
100002Agent username is type string.
100003Missing 'key' field.
100004Key is type string.
100005Missing 'username' field.
100006Username is type string.
100009Your username must be between 8 and 48 character.
100012Key not found.
100013Agent not found.
100014Member not found.
100021Missing 'refId' field.
100022RefId is type string.
100033Data not found.
ก่อนหน้า
8. Get WinLose By DepositID (Common)
ถัดไป
10. Get WinLose And Turnover (Common)