文档
测试

3.5 UserReport

POST
/api/log/UserReport

接口描述

Query the member's daily report (the date uses GMT / UTC +8 time zone). Note: The report statistics are based on the order settlement time. If the order is not yet settled, it will not enter the statistical report.

Headers

参数名
类型
描述
必填
Authorization
string
Example:9b358d8549004bd0bb48b3f94ae7e2a5
必填
Content-Language
string
Language packs (optional), the default language for opening an account, Example:ENG
必填

Form Data

参数名
类型
描述
必填
UserName
Optional,Username in query,If not filled, all members in the date range will be queried. Example:ceshi01
必填
StartAt
Time range start time, the format is:yyyy-MM-dd Example:2020-4-1
必填
EndAt
Time range end time, the format is:yyyy-MM-dd Example:2020-4-1
必填
PageIndex
Optional, the page number in query of each page, the default is 1. Example:1
必填
PageSize
Optional, the amount that data returned from query of each page, the default is 20 and the maximum is 1024. Example:20
必填

Response

参数名
类型
描述
必填
success
number
Example:1
必填
msg
string
Example:17ms
必填
info
object
Data dictionary
必填
RecordCount
number
Total Records Example:32
必填
PageIndex
number
Page number of current query Example:1
必填
PageSize
number
Size of each page Example:20
必填
data
object
Additional data information reserved for extended use.
必填
list
array
Data list
必填
Date
date
settlement time example:2020/4/1
必填
UserName
string
User name for betting, example:ai311
必填
BetMoney
number
Effective Bet Amount Example:63.0000
必填
BetAmount
number
Bet Amount Example:10.0000
必填
Money
number
Profit and Loss Amount Example:0.0000
必填
Reward
number
Payout
必填
OrderCount
number
The Total Order Count
必填

Description / Example

### Call example ``` curl https://api.xx.com/api/log/UserReport -X POST -H "Authorization: 9b358d8549004bd0bb48b3f94ae7e2a5" -H "Content-Type:application/x-www-form-urlencoded" -d "UserName=ceshi01&StartAt=2020/4/10&EndAt=2020/4/16" ``` ### Response body ``` { success: 1, msg: "4ms", info: { RecordCount: 1, PageIndex: 1, PageSize: 20, data: null, list: [ { Date: "2020/4/10", UserName: "ceshi01", BetMoney: "1150.0000", BetAmount: "1150.0000", Money: "-1101.3010", Reward: "48.6990", OrderCount: "7" } ] } } ``` **Note: This interface is only applicable to the date report query using GMT + 8, if you use other time zones, please use the *3.6 UserOrder* interface for query**