> ## Documentation Index
> Fetch the complete documentation index at: https://doc.va777.net/llms.txt
> Use this file to discover all available pages before exploring further.

# 取得會員報表

> [!NOTE]
>
> * 注單最大保留時間為3個月。
> * 此服務按照渠道編號、會員帳號、使用幣別進行分組，三個條件皆相同才會加總為同一筆資料。
> * 此服務資料顆粒度精確至小時，使用特定時間格式為 RFC3339(小時) (ex:2022-01-01T00+08:00 )，時間內容須精確至小時，且包含時區資訊。
> * 此服務有連線次數限制，限制為每天限制呼叫 80 次 (80/d)
> * 按照下注時間大於等於起始時間且小於結束時間的注單進行加總。
> * 限制最大查詢區間為31天。

## 請求參數

**channelID** `number` *required*

渠道編號 (無渠道請帶入1，帶入0查詢全部)

**startTime** `string` *required*

搜尋起始時間 (使用特定時間格式)

**endTime** `string` *required*

搜尋結束時間 (使用特定時間格式)

**sign** `string` *required*

簽章，產生方式請參考[簽章規則](https://doc.va777.net/guides/signature.md)

## 回應

成功（HTTP 狀態碼固定為 200，請以 `status.code` 判斷結果）

**data** `object`

**屬性**

**memberList** `object[]`

會員數據

**屬性**

**channelID** `number`

渠道編號

**account** `string`

會員帳號

**currency** `string`

幣別(請洽詢我方商務)

**betCount** `number`

總下注次數

**totalBet** `number`

總下注金額

**totalPayout** `number`

總派彩金額

**totalWinLose** `number`

會員總輸贏金額

**status** `object`

每次回應都會附帶的請求處理狀態

**屬性**

**code** `string`

回應訊息碼，請參照[回應訊息碼](https://doc.va777.net/reference/response-codes.md)

**message** `string`

回應詳細訊息

**datetime** `string`

請求接收時間，格式為 RFC3339

**traceCode** `string`

回應追蹤碼（唯一值），供雙方比對回應內容

```json 200 theme={null}
{
  "data": {
    "memberList": [
      {
        "channelID": 1,
        "account": "player001",
        "currency": "CNY",
        "betCount": 1,
        "totalBet": 0.5,
        "totalPayout": 0,
        "totalWinLose": -0.5
      }
    ]
  },
  "status": {
    "code": "0",
    "message": "success",
    "datetime": "2022-07-04T23:13:54.920+08:00",
    "traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.