查看交互版接口文档

获取游戏记录

POST /ley/gamerecord

请求参数Body

字段类型必填说明
start_atint开始时间,10位unix时间戳,截至到秒
end_atint结束时间,10位unix时间戳,截至到秒
accountstring商户号
api_keystring商户密钥
currencystring货币代码
货币代码 国家
CNY 中国(默认)
HKD 香港
USD 美元
JPY 日本
KRW 韩国
VND 越南
THB 泰国
BRL 巴西
KHR 柬埔寨
IDR 印度尼西亚
EUR 欧元
MMK 缅甸币
NGN 尼日利亚
usernamestring会员账号,不填写则返回所有会员的记录
api_codestring接口代码,不填写则返回所有接口的记录
statusint状态,不填写则返回所有状态的记录
状态
1 已结算
2 未结算
3 无效注单
4 已退款
pageint页码,默认第一页
pageSizeint每页条数,默认500且最大500

响应结果

字段类型必填说明
Codeint业务代码(0成功,其他均为失败)
Messagestring业务信息
Dataarray业务数据

Json 示例

请求

{
  "start_at": 0,
  "end_at": 0,
  "account": "dd4646",
  "api_key": "hMtchftsvOry1r2kYPZbZ6JabZCVyqLZ",
  "currency": "CNY",
  "username": "",
  "api_code": "",
  "status": 0,
  "page": 1,
  "pageSize": 500
}

成功响应

{
  "Code": 0,
  "Message": "成功",
  "Data": {
    "total_count": 0,
    "lastPage": 0,
    "pageSize": 0,
    "page": 0,
    "data": {
      "rowid": "",
      "billNo": "",
      "code": "",
      "username": "",
      "playName": "",
      "gameType": 0,
      "playType": "",
      "xzhm": "",
      "Odds": "",
      "tableCode": "",
      "roundNo": "",
      "betAmount": "",
      "validBetAmount": "",
      "netAmount": "",
      "status": 0,
      "Lottery_results": "",
      "betTime": 0
    }
  }
}

TypeScript 类型定义

export interface GamerecordRequest {
  start_at: number; // 开始时间,10位unix时间戳,截至到秒
  end_at: number; // 结束时间,10位unix时间戳,截至到秒
  account: string; // 商户号
  api_key: string; // 商户密钥
  currency: string; // 货币代码
  username?: string; // 会员账号,不填写则返回所有会员的记录
  api_code?: string; // 接口代码,不填写则返回所有接口的记录
  status?: number; // 状态,不填写则返回所有状态的记录
  page?: number; // 页码,默认第一页
  pageSize?: number; // 每页条数,默认500且最大500
}

export interface GamerecordResponse {
  Code: number; // 业务代码(0成功,其他均为失败)
  Message: string; // 业务信息
  Data: {
    total_count: number; // 总条数
    lastPage: number; // 总页码
    pageSize: number; // 每页条数
    page: number; // 当前页码
    data: {
      rowid: string; // 注单号,唯一值
      billNo: string; // 注单流水号
      code: string; // 接口代码
      username: string; // 会员账号
      playName: string; // 游戏账号
      gameType: number; // 游戏类型
      playType: string; // 游戏名称
      xzhm: string; // 下注号码,部分接口有值
      Odds: string; // 赔率,部分接口有值
      tableCode: string; // 桌号,部分接口有值
      roundNo: string; // 局号期号,部分接口有值
      betAmount: string; // 会员投注金额
      validBetAmount: string; // 会员有效投注额
      netAmount: string; // 输赢金额,不包含本金
      status: number; // 注单状态
      Lottery_results: string; // 开奖结果,部分接口有值
      betTime: number; // 投注时间,10位unix时间戳
    }; // 游戏记录list
  }; // 业务数据
}