10. Get WinLose And Turnover (Common)
Use for Merchant get WinLose And Turnover
*api สามารถเรียกใช้ได้ 300 คร้ง ต่อ นาที และ ใส่วันที่ได้ไม่เกิน 1 วัน กรุณาดึงไปเก็บไว้ทุกวันถ้าจะทำคืนยอดเสียรายสัปดา หรือ เดือน
Method : [Post]
Path : {{domain}}/ext/getWinLoseAndTurnOver/{{prefix}}/{{agentUsername}}
Content-Type : application/json
Request Body
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"username": "{{agentUsername}}ninemb01",
"startDate": "01-02-2022 (DD-MM-YYYY)",
"endDate": "02-02-2022 (DD-MM-YYYY)",
"web": "{{whiteLabel}}"
}
Key | Type | Example Value | Description |
---|---|---|---|
agentUsername | String | testag | เอเย่นต์ที่ใช้งาน |
key | String | tnyENKDWvOkBXpvm6UZVa | คีย์ของเอเย่นต์ |
username | String | testagninemb01 | ยูสเซอร์ที่ต้องการดูประวัติการฝากเงิน |
startDate | Date | 01-02-2022 | วันเริ่มต้นของการดูบัญชี |
endDate | Date | 02-02-2022 | วันสิ้นสุดของการดูบัญชี |
web | String | sportbook101 | เว็บที่ใช้งาน |
Response
{
"code": 0,
"data": {
"card": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"casino": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"hdp": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"keno": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"lotto": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"mixParlay": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"mixStep": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"poker": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"slot": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"trade": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"esport": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"cock": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"sbo": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"saba": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"dbs": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"fbs": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"plb": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"umb": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"vsb": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"afb": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
"lali": {
"com": 0,
"stake": 0,
"vl": 0,
"wl": 0
},
},
"msg": "SUCCESS"
}
Key | Type | Example Value | Description |
---|---|---|---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
data | Object | { "card": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "casino": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "hdp": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "keno": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "lotto": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "mixParlay": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "mixStep": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "poker": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "slot": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "trade": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "esport": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "cock": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "sbo": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "saba": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "dbs": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "fbs": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "plb": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "umb": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "vsb": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "afb": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, "lali": { "com": 0, "stake": 0, "vl": 0, "wl": 0 }, } | data winlose and turnover [ "card" คือ เกมส์การ์ด, "casino" คือ คาสิโน, "hdp" คือ กีฬาเดี่ยว, "keno" คือ คีโน่, "lotto" คือ หวยทั้งหมด, "mixParlay" คือ กีฬาพาเลย์, "mixStep" คือ กีฬาคอมโบ, "poker" คือ โป๊กเกอร์, "slot" คือ เกมส์สล็อต, "trade" คือ เทรดเดอร์, "esport" คือ อีสปอดร์, "cock" คือ ไก่ชน, "sbo" คือ กีฬา sbobet, "saba" คือ กีฬา Ibcbet, "dbs" คือ กีฬา Panda sport, "fbs" คือ กีฬา FB sport, "plb" คือ กีฬา Parlaybay, "umb" คือ กีฬา Um bet, "vsb" คือ กีฬา Virtual Sport Pragmatic, "afb" คือ กีฬา AFB88, "lali" คือ กีฬา Lalika bet "com" คือ ค่าคอมมิชชั่น, "stake" คือจำนวนตั๋ว, "vl" คือยอดการเดิมพันจริง, "wl" คือยอดได้เสียทั้งหมด, ] |
Error Code
Value | msg |
---|---|
0 | Success |
100001 | Missing 'agent Username' field. |
100002 | Agent username is type string. |
100003 | Missing 'key' field. |
100004 | Key is type string. |
100005 | Missing 'username' field. |
100006 | Username is type string. |
100009 | Your username must be between 8 and 48 character. |
100012 | Key not found. |
100013 | Agent not found. |
100014 | Member not found. |
100021 | Missing 'refId' field. |
100022 | RefId is type string. |
100033 | Data not found. |
104 | missing 'startDate' field. |
105 | missing 'endDate' field. |
50010 | Something went wrong please try again. |