# 获得交易记录 ## 描述 > 此功能允许运营商通过交易代码查询目标玩家的先前余额操作。 这是查询并了解先前的事务是否已成功更新 > 请求方式( Host-> BeSoft):post > 编码方式:application/x-www-form-urlencoded > Besoft响应的数据格式是: application/json ## 网址 > {besoftapi}/api/game/usertradeinfo ## 请求参数 | 名称 | 类型 | 必要 | 描述 | | ---------- | ------ | ---- | ------------------------------------------------------------------------ | | cert | String | Y | 安全代码 | | extension1 | String | Y | 代理 ID | | user | String | Y | 所查询的玩家账号 | | startdate | String | Y | 开始时间戳(毫秒); 1517265756000 : 2018/01/30 06:42:36(GMT+8)起始时间日期 | | enddate | String | Y | 结束时间戳(毫秒); 1517265756000 : 2018/01/30 06:42:36(GMT+8)结束时间日期 | | page | Int32 | N | 资料页码, 从 0 开始 | | pagesize | Int32 | N | 最大值 1000 | ## 示例 - URL: - http://127.0.0.1:8000/api/game/usertradeinfo - HTTP Method - POST - 表单数据 > Content-Type: application/x-www-form-urlencoded ``` cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y extension1:adminweb user:Guest492 startdate:1700122818110 enddate:1700123037718 page:0 pagesize:20 ``` ## 返回结果 |名称| 类型 | 描述 | |--------|----------|--------| |status| Int32 |状态代码| |totalsize| Int32 |本次查询总笔数| |result| array |结果数据数组| |result.user| string |玩家账号| |result.sellbuy| double |1-是向玩家转入分数 , 2-是玩家转出分数| |result.createdate| Int64 | TimeStamp of data addition (MS)| |result.extension1| string |代理 ID| ## 成功的结果 ```json {     "status": 1,     "totalsize": 2,     "result": [         {             "user": "test1",             "extension1": "admin",             "sellbuy": "2",             "tradescore": "10.00",             "createdate": 1558980270793         },         {             "user": "test1",             "extension1": "admin",             "sellbuy": "1",             "tradescore": "10.00",             "createdate": 1558980270793         }     ] } ``` ## 查无资料的结果 ``` {"status":1, "totalsize": 0,"result":[]} ``` ## 失败的结果 ``` { "status": 0 } ```