17. Report Winlose Account
17.1 Report Winlose Account (Common)
Use for Merchant Get Report Winlose Account
*The API can be called 6 times per hour and no more than 1 date can be entered.
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","M8","Ufa","Obx"],
"startDate": "01-02-2022 (DD-MM-YYYY)",
"endDate": "02-02-2022 (DD-MM-YYYY)",
"web": "{{whiteLabel}}"
}
| Key | Type | Example Value | Description |
|---|---|---|---|
| agentUsername | String | testag | The agent's username. |
| key | String | tnyENKDWvOkBXpvm6UZVa | The agent's unique key. |
| betType | String | ["normal", "comboStep", "step", "Casino", "Slot", "Lotto", "Keno", "Trade", "Card", "Poker", "m2", "Esport", "Cock", "Sbo", "Saba","Dbs","Fbs","Plb","Umb","Vsb","Afb","Lali","M8","Ufa","Obx"] | The type of game we want to find |
| startDate | Date | 01-02-2022 | Account viewing start date. |
| endDate | Date | 02-02-2022 | Account Viewing End Date. |
| web | String | sportbook101 | Active websites. |
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 24 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
*The API can be called 6 times per hour and no more than 1 date can be entered.
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","M8","Ufa","Obx"],
"startDate": "01-02-2022 (DD-MM-YYYY)",
"endDate": "02-02-2022 (DD-MM-YYYY)",
"web": "{{whiteLabel}}"
}
| Key | Type | Example Value | Description |
|---|---|---|---|
| agentUsername | String | testag | The agent's username. |
| key | String | tnyENKDWvOkBXpvm6UZVa | The agent's unique key. |
| betType | String | ["normal", "comboStep", "step", "Casino", "Slot", "Lotto", "Keno", "Trade", "Card", "Poker", "m2", "Esport", "Cock", "Sbo", "Saba","Dbs","Fbs","Plb","Umb","Vsb","Afb","Lali","M8","Ufa","Obx"] | The type of game we want to find. |
| startDate | Date | 01-02-2022 | Account viewing start date. |
| endDate | Date | 02-02-2022 | Account Viewing End Date. |
| web | String | sportbook101 | Active websites. |
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 24 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.3 Report Winlose Account By Game Type (Common)
Use for Merchant Get Report Winlose Account grouped by Game Type
*The API can be called 6 times per hour and no more than 1 date can be entered.
Method : [Post]
Path : {{domain}}/ext/reportWinLoseAccountByGameType/{{prefix}}/{{agentUsername}}
Content-Type : application/json
Request Body
{
"agentUsername": "ag001",
"key": "AUTOKEY_xxxxxxxxxxxxxxxxxxxxxxxx",
"startDate": "01-05-2026 (DD-MM-YYYY)",
"endDate": "14-05-2026 (DD-MM-YYYY)"
}
| Key | Type | Example Value | Description |
|---|---|---|---|
| agentUsername | String | ag001 | The agent's username. |
| key | String | AUTOKEY_xxxxxxxxxxxxxxxxxxxxxxxx | The agent's unique key. |
| startDate | Date | 01-05-2026 | Account viewing start date. |
| endDate | Date | 14-05-2026 | Account Viewing End Date. |
Response
{
"code": 0,
"lastUpdate": "2026-05-14T09:01:42.117Z",
"msg": "SUCCESS",
"data": [
{
"username": "abc123",
"normal": { "betAmt": 100, "validAmt": 100, "stake": 4, "winLose": -25 },
"comboStep": { "betAmt": 400, "validAmt": 400, "stake": 7, "winLose": 120 },
"step": { "betAmt": 200, "validAmt": 200, "stake": 2, "winLose": 0 }
},
{
"username": "xyz789",
"normal": { "betAmt": 50, "validAmt": 50, "stake": 1, "winLose": 10 },
"Slot": { "betAmt": 1500, "validAmt": 1500, "stake": 22, "winLose": -300 }
},
{
"username": "lot555",
"Lotto": { "betAmt": 250, "validAmt": 250, "stake": 5, "winLose": 80 }
}
]
}
| Key | Type | Example Value | Description |
|---|---|---|---|
| code | Number | 0 | Response code of API |
| msg | String | SUCCESS | Description of code |
| data[].username | String | abc123 | Member username |
| data[].[gameType] | Object | { "betAmt": 100, "validAmt": 100, ... } | Win/lose data for each game type (e.g. normal, comboStep, step, Slot, Lotto). Only game types with activity appear. |
| data[].[gameType].betAmt | Number | 100 | Total bet amount |
| data[].[gameType].validAmt | Number | 100 | Valid amount |
| data[].[gameType].stake | Number | 4 | Number of bets |
| data[].[gameType].winLose | Number | -25 | Win/lose amount |
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. |
| 100012 | Key not found. |
| 100013 | Agent not found. |
| 100033 | Data not found. |
| 104 | missing 'startDate' field. |
| 105 | missing 'endDate' field. |
| 50010 | Something went wrong please try again. |
17.4 Report Winlose Account By Game Type By Username (Common)
Use for Merchant Get Report Winlose Account grouped by Game Type for a specific user
*The API can be called 6 times per hour and no more than 1 date can be entered.
Method : [Post]
Path : {{domain}}/ext/reportWinLoseAccountByGameTypeByUsername/{{prefix}}/{{agentUsername}}
Content-Type : application/json
Request Body
{
"agentUsername": "ag001",
"key": "AUTOKEY_xxxxxxxxxxxxxxxxxxxxxxxx",
"username": "abc123",
"startDate": "01-05-2026 (DD-MM-YYYY)",
"endDate": "14-05-2026 (DD-MM-YYYY)"
}
| Key | Type | Example Value | Description |
|---|---|---|---|
| agentUsername | String | ag001 | The agent's username. |
| key | String | AUTOKEY_xxxxxxxxxxxxxxxxxxxxxxxx | The agent's unique key. |
| username | String | abc123 | The member's username. |
| startDate | Date | 01-05-2026 | Account viewing start date. |
| endDate | Date | 14-05-2026 | Account Viewing End Date. |
Response
{
"code": 0,
"lastUpdate": "2026-05-14T09:12:30.501Z",
"msg": "SUCCESS",
"data": {
"username": "abc123",
"normal": { "betAmt": 100, "validAmt": 100, "stake": 4, "winLose": -25 },
"comboStep": { "betAmt": 400, "validAmt": 400, "stake": 7, "winLose": 120 },
"step": { "betAmt": 200, "validAmt": 200, "stake": 2, "winLose": 0 }
}
}
| Key | Type | Example Value | Description |
|---|---|---|---|
| code | Number | 0 | Response code of API |
| msg | String | SUCCESS | Description of code |
| data.username | String | abc123 | Member username |
| data.[gameType] | Object | { "betAmt": 100, "validAmt": 100, ... } | Win/lose data for each game type (e.g. normal, comboStep, step, Slot, Lotto). Only game types with activity appear. |
| data.[gameType].betAmt | Number | 100 | Total bet amount |
| data.[gameType].validAmt | Number | 100 | Valid amount |
| data.[gameType].stake | Number | 4 | Number of bets |
| data.[gameType].winLose | Number | -25 | Win/lose amount |
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. |
| 100012 | Key not found. |
| 100013 | Agent not found. |
| 100014 | Member not found. |
| 100033 | Data not found. |
| 104 | missing 'startDate' field. |
| 105 | missing 'endDate' field. |
| 50010 | Something went wrong please try again. |