17. Report Winlose Account
17.1 Report Winlose Account (Common)
Use for Merchant Get Report Winlose Account
*api สามารถเรียกใช้ได้ ชั่วโมงละ 6 คร้ง และ ใส่วันที่ได้ไม่เกิน 1 วัน
Method : [Post]
Path : {{domain}}/ext/reportWinLoseAccount/{{prefix}}/{{agentUsername}}
Content-Type : application/json
Request Body
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"betType":["normal","comboStep","step","Casino","Slot","Lotto","Keno","Trade","Card","Poker","m2","Esport","Cock","Sbo","Saba","Dbs","Fbs","Plb","Umb","Vsb","Afb","Lali"],
"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 | คีย์ของเอเย่นต์ |
betType | String | ["normal", "comboStep", "step", "Casino", "Slot", "Lotto", "Keno", "Trade", "Card", "Poker", "m2", "Esport", "Cock", "Sbo", "Saba","Dbs","Fbs","Plb","Umb","Vsb","Afb","Lali"] | type ของเกมส์ที่เราต้องการค้นหา |
startDate | Date | 01-02-2022 | วันเริ่มต้นของการดูบัญชี |
endDate | Date | 02-02-2022 | วันสิ้นสุดของการดูบัญชี |
web | String | sportbook101 | เว็บที่ใช้งาน |
Response
{
"code": 0,
"lastUpdate": "2022-05-30T08:16:59.737Z",
"msg": "SUCCESS",
"data": [
{
"_id": "auto0859765751",
"betAmt": {
"$numberDecimal": "-400"
},
"validAmt": {
"$numberDecimal": "-400"
},
"winLoseTotal": {
"$numberDecimal": "1192"
},
"grossCom": 0,
"memberWl": 1192,
"memberComm": 0,
"memberTotal": 1192,
"agentWl": 0,
"agentComm": 0,
"agentTotal": 0,
"companyWl": -1192,
"companyComm": 0,
"companyTotal": -1192,
"stake": 1
},
{
"_id": "auto0830192203",
"betAmt": {
"$numberDecimal": "-720"
},
"validAmt": {
"$numberDecimal": "-720"
},
"winLoseTotal": {
"$numberDecimal": "-242"
},
"grossCom": 0,
"memberWl": -242,
"memberComm": 0,
"memberTotal": -242,
"agentWl": 0,
"agentComm": 0,
"agentTotal": 0,
"companyWl": 241.9999,
"companyComm": 0,
"companyTotal": 241.9999,
"stake": 1
}
]
}
Key | Type | Example Value | Description |
---|---|---|---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
data | Object | [ { "_id": "auto0859765751", "betAmt": { "$numberDecimal": "-400" }, "validAmt": { "$numberDecimal": "-400" }, "winLoseTotal": { "$numberDecimal": "1192" }, "grossCom": 0, "memberWl": 1192, "memberComm": 0, "memberTotal": 1192, "agentWl": 0, "agentComm": 0, "agentTotal": 0, "companyWl": -1192, "companyComm": 0, "companyTotal": -1192, "stake": 1 }, { "_id": "auto0830192203", "betAmt": { "$numberDecimal": "-720" }, "validAmt": { "$numberDecimal": "-720" }, "winLoseTotal": { "$numberDecimal": "-242" }, "grossCom": 0, "memberWl": -242, "memberComm": 0, "memberTotal": -242, "agentWl": 0, "agentComm": 0, "agentTotal": 0, "companyWl": 241.9999, "companyComm": 0, "companyTotal": 241.9999, "stake": 1 }] | data winlose and turnover |
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. |
100040 | betType not found. |
100033 | Data not found. |
104 | missing 'startDate' field. |
105 | missing 'endDate' field. |
50010 | Something went wrong please try again. |
17.2 Report Total Winlose Account (Common)
Use for Merchant Get Report Total Winlose Account
*api สามารถเรียกใช้ได้ ชั่วโมงละ 6 คร้ง และ ใส่วันที่ได้ไม่เกิน 1 วัน
Method : [Post]
Path : {{domain}}/ext/totalReportWinLoseAccount/{{prefix}}/{{agentUsername}}
Content-Type: application/json
Request Body
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"betType":["normal","comboStep","step","Casino","Slot","Lotto","Keno","Trade","Card","Poker","m2","Esport","Cock","Sbo","Saba","Dbs","Fbs","Plb","Umb","Vsb","Afb","Lali"],
"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 | คีย์ของเอเย่นต์ |
betType | String | ["normal", "comboStep", "step", "Casino", "Slot", "Lotto", "Keno", "Trade", "Card", "Poker", "m2", "Esport", "Cock", "Sbo", "Saba","Dbs","Fbs","Plb","Umb","Vsb","Afb","Lali"] | type ของเกมส์ที่เราต้องการค้นหา |
startDate | Date | 01-02-2022 | วันเริ่มต้นของการดูบัญชี |
endDate | Date | 02-02-2022 | วันสิ้นสุดของการดูบัญชี |
web | String | sportbook101 | เว็บที่ใช้งาน |
Response
{
"code": 0,
"lastUpdate": "2022-05-30T08:16:59.737Z",
"msg": "SUCCESS",
"data": [
{
"_id": null,
"betAmt": {
"$numberDecimal": "-57408.84"
},
"validAmt": {
"$numberDecimal": "-57408.84"
},
"winLoseTotal": {
"$numberDecimal": "-20477.70"
},
"grossCom": 0,
"memberWl": -20477.7,
"memberComm": 0,
"memberTotal": -20477.7,
"agentWl": -0.0067,
"agentComm": 0,
"agentTotal": -0.0067,
"companyWl": 20477.7067,
"companyComm": 0,
"companyTotal": 20477.7067,
"stake": 4
}
]
}
Key | Type | Example Value | Description |
---|---|---|---|
code | Number | 0 | Response code of API |
msg | String | success | description of code |
data | Object | { "_id": null, "betAmt": { "$numberDecimal": "-57408.84" }, "validAmt": { "$numberDecimal": "-57408.84" }, "winLoseTotal": { "$numberDecimal": "-20477.70" }, "grossCom": 0, "memberWl": -20477.7, "memberComm": 0, "memberTotal": -20477.7, "agentWl": -0.0067, "agentComm": 0, "agentTotal": -0.0067, "companyWl": 20477.7067, "companyComm": 0, "companyTotal": 20477.7067, "stake": 4 } | data total winlose and turnover |
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. |
100040 | betType not found. |
100033 | Data not found. |
104 | missing 'startDate' field. |
105 | missing 'endDate' field. |
50010 | Something went wrong please try again. |