3.8 Get Transactions Summary (取得下注纪录摘要)
Does not support non-accounting currencies
不支援不计入帐务的币别
不支援不计入帐务的币别
Description (说明)
Operators can check the summary of betting records for a period of time.
营运商查询一段时间的下注纪录摘要。
Restrict (限制)
1.Only supports query records within 40 days.
2.The time interval of each query shall not exceed one day (24 hours).
3.The request interval is limited to 1 seconds. v23.9.3 update
4.Only provide data integrated one hour ago from the current time.
1.仅支持查询40天内的纪录。
2.每次查詢的時間區間不得超過一天(24小時)。
3.请求间隔时间限制为1秒。v23.9.3 update
4.仅提供距离当前时间一小时前统整的资料。
URL (网址)
https://{host}/api/get_transactions_summary
Request Method
POST
Request Parameters (请求参数)
| Field (栏位) | Type (型态) | Required (必要) | Description (说明) |
|---|---|---|---|
| agentId | String | Y | Agent ID <= 50 characters 代理帐号 |
| startTimeHr | String | Y | Start time fixed 28 characters 欲查询注单的起始时间(注单下注时间) format 格式 yyyy-MM-dd'T'HHZ timezone 时区 GMT+8 |
| endTimeHr | String | Y | End time fixed 28 characters 欲查询注单的结束时间(注单下注时间) format 格式 yyyy-MM-dd'T'HHZ timezone 时区 GMT+8 |
| gameType | String | N | Game Type <= 10 characters 游戏类型 |
| gameCode | String | N | Game Code <= 20 characters 游戏代码 |
{
"agentId": "hrgag",
"startTimeHr": "2022-07-03T00+0800",
"endTimeHr": "2022-07-04T00+0800"
}
Return Result (返回结果)
| Field (栏位) | Type (型态) | Description (说明) |
|---|---|---|
| code | String | Status Code fixed 4 characters 状态码 |
| data | Object | |
| list | Array of Object | Each record |
| gameType | String | Game Type <= 10 characters 游戏类型 |
| gameCode | String | Game Code <= 20 characters 游戏代码 |
| betAmount | Number | How much did user bet,equal to the sum of real credit,free credit and promotion credit decimal places <= 4 下注总额,相等于现金码与泥码及活动码下注额度的总和 |
| realCredit | Number | How much did user bet with realCredit decimal places <= 4 现金码下注额度 |
| freeCredit | Number | How much did user bet with freeCredit decimal places <= 4 泥码下注额度 if your company has not enabled the free credit function, then please ignore this attribute. 若贵司未开启泥码功能,则请忽略此属性 |
| promotionCredit | Number | How much did user bet with promotionCredit decimal places <= 4 活动码下注额度 if your company has not enabled the promotion credit function, then please ignore this attribute. 若贵司未开活动码功能,则请忽略此属性 |
| winLoss | Number | Amount of win/lose money (not including bet amount) decimal places <= 4 输赢金额(不含下注额度) |
| winAmount | Number | Amount of win/lose money (including bet amount) decimal places <= 4 输赢金额(包含下注额度) |
| validBet | Number | Amount of valid bet decimal places <= 4 有效投注额 |
| commission | Number | Amount of rebate decimal places <= 4 现金回馈 if your company has not enabled the promotion credit function, then please ignore this attribute.if your company has not enabled the rebate function, then please ignore this attribute. 若贵司未开现金回馈功能,则请忽略此属性 |
{
"code": "0000",
"data": {
"list": [
{
"gameType": "LIVE",
"gameCode": "BACCARAT",
"betAmount": 3680000.0,
"realCredit": 3680000.0,
"freeCredit": 0.0,
"promotionCredit": 0.0,
"winLoss": -1690000.0,
"winAmount": 1990000.0,
"validBet": 2860000.0,
"commission": 0.0
}
]
}
}
Sample Request For Each Language (各语言请求范例)
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"agentId\":\"hrgag\",\"startTimeHr\":\"2022-07-03T00+0800\",\"endTimeHr\":\"2022-07-04T00+0800\"}");
Request request = new Request.Builder()
.url("https://{host}/api/get_transactions_summary")
.method("POST", body)
.addHeader("Authorization", "Basic TWpNQ0JSM1NFYnBrYXdSNTpNak1DQlIzU0VicGthd1I1")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();