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
(说明)
agentIdStringYAgent ID <= 50 characters
代理帐号
startTimeHrStringYStart time fixed 28 characters
欲查询注单的起始时间(注单下注时间)

format 格式 yyyy-MM-dd'T'HHZ
timezone 时区 GMT+8
endTimeHrStringYEnd time fixed 28 characters
欲查询注单的结束时间(注单下注时间)

format 格式 yyyy-MM-dd'T'HHZ
timezone 时区 GMT+8
gameTypeStringNGame Type <= 10 characters
游戏类型

Please refer to 5.1 Game for details.
详情请参考 5.1 游戏


gameCodeStringNGame Code <= 20 characters
游戏代码

Please refer to 5.1 Game for details.
详情请参考 5.1 游戏


{
  "agentId": "hrgag",
  "startTimeHr": "2022-07-03T00+0800",
  "endTimeHr": "2022-07-04T00+0800"
}

Return Result (返回结果)

Field
(栏位)
Type
(型态)
Description
(说明)
codeStringStatus Code fixed 4 characters
状态码

Please refer to 5.4 Status Code for details.
详情请参考 5.4 状态代码
dataObject
listArray of ObjectEach record
gameTypeStringGame Type <= 10 characters
游戏类型

Please refer to 5.1 Game for details.
详情请参考 5.1 游戏
gameCodeStringGame Code <= 20 characters
游戏代码

Please refer to 5.1 Game for details.
详情请参考 5.1 游戏


betAmountNumberHow much did user bet,equal to the sum of real credit,free credit and promotion credit decimal places <= 4
下注总额,相等于现金码与泥码及活动码下注额度的总和

If fee-type game, this field includes the fee amount.
若为手续费类型游戏,此栏位包含手续费金额

realCreditNumberHow much did user bet with realCredit decimal places <= 4
现金码下注额度

If fee-type game, this field includes the fee amount.
若为手续费类型游戏,此栏位包含手续费金额

freeCreditNumberHow much did user bet with freeCredit decimal places <= 4
泥码下注额度

if your company has not enabled the free credit function, then please ignore this attribute.
若贵司未开启泥码功能,则请忽略此属性

If fee-type game, this field includes the fee amount.
若为手续费类型游戏,此栏位包含手续费金额

promotionCreditNumberHow much did user bet with promotionCredit decimal places <= 4
活动码下注额度

if your company has not enabled the promotion credit function, then please ignore this attribute.
若贵司未开活动码功能,则请忽略此属性

If fee-type game, this field includes the fee amount.
若为手续费类型游戏,此栏位包含手续费金额

winLossNumberAmount of win/lose money (not including bet amount) decimal places <= 4
输赢金额(不含下注额度)

If fee-type game, the fee is included in the calculation.
若为手续费类型游戏,手续费并入计算

winAmountNumberAmount of win/lose money (including bet amount) decimal places <= 4
输赢金额(包含下注额度)
validBetNumberAmount of valid bet decimal places <= 4
有效投注额

If fee-type game, the fee is included in the calculation.
若为手续费类型游戏,手续费并入计算

commissionNumberAmount 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.
若贵司未开现金回馈功能,则请忽略此属性


If fee-type game, the fee is included in the calculation.
若为手续费类型游戏,手续费并入计算

{
  "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();