文档
测试

3.6 UserOrder

POST
/api/log/UserOrder

接口描述

Query the member's settlement information statistics within the time interval, the time uses GMT + 8. The report statistics use the settlement time. If the order is not 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
string
Optional,Username in query。If not filled, all members in the date range will be queried
必填
StartAt
string
Time range start time, the format is:yyyy-MM-dd HH:mm:ss Example:2020-4-1 12:00:00
必填
EndAt
string
Time range end time, the format is:yyyy-MM-dd HH:mm:ss Example:2020-4-1 12:00:00
必填

Response

参数名
类型
描述
必填
success
number
Example:1
必填
msg
string
Example:17ms
必填
info
object
Data dictionary
必填
RecordCount
number
Total Records Example:32
必填
data
object
Additional data information reserved for extended use.
必填
list
array
Data List
必填
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 Amount, Example:10.0000
必填
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: "9ms", info: { RecordCount: 6, data: null, list: [ { UserName: "ceshi01", BetMoney: "30.0000", BetAmount: "26.8100", Money: "6.8100", Reward: "36.8100", OrderCount: "3" } ] } } ``` ### Daily report query method in non-GMT + 8 time zone 1. GMT-4 time as an example, you need to query the report on April 15 1. GMT-4 is 12 hours slower than GMT + 8, then the start time (StartAt = 2020/4/15 12:00), end time (EndAt = 2020/4/16 12:00), use this condition to query, You can get the statistics of the 15th member's daily report under the GMT-4 time zone.