> ## 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.

# 取得會員報表

> 取得會員報表 API 的請求參數、回應格式與回應訊息碼。

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

## 請求路徑

```text theme={null}
GET {host}/api/v1.0/report/member
```

## Headers

<table>
  <colgroup>
    <col width="27%" />

    <col width="10%" />

    <col width="7%" />

    <col width="56%" />
  </colgroup>

  <thead><tr><th>欄位</th><th>型別</th><th>必填</th><th>說明</th></tr></thead>

  <tbody>
    <tr><td>`Authorization`</td><td>string</td><td>是</td><td>驗證令牌，由我方提供</td></tr>
  </tbody>
</table>

## 請求參數

<table>
  <colgroup>
    <col width="27%" />

    <col width="10%" />

    <col width="7%" />

    <col width="11%" />

    <col width="45%" />
  </colgroup>

  <thead><tr><th>欄位</th><th>型別</th><th>必填</th><th>參與簽章</th><th>說明</th></tr></thead>

  <tbody>
    <tr><td>`channelId`</td><td>number</td><td>是</td><td>✓</td><td>渠道編號 (無渠道請帶入1，帶入0查詢全部)</td></tr>
    <tr><td>`searchMode`</td><td>number</td><td>是</td><td>✓</td><td>搜尋使用時間 (0:下注時間)</td></tr>
    <tr><td>`startTime`</td><td>string</td><td>是</td><td>✓</td><td>搜尋起始時間 (使用特定時間格式)</td></tr>
    <tr><td>`endTime`</td><td>string</td><td>是</td><td>✓</td><td>搜尋結束時間 (使用特定時間格式)</td></tr>
    <tr><td>`sign`</td><td>string</td><td>是</td><td /><td>簽章，產生方式請參考[簽章規則](https://doc.va777.net/zh-Hant/v1/guides/signature.md)</td></tr>
  </tbody>
</table>

## 回應

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

<table>
  <colgroup>
    <col width="34%" />

    <col width="12%" />

    <col width="54%" />
  </colgroup>

  <thead><tr><th>欄位</th><th>型別</th><th>說明</th></tr></thead>

  <tbody>
    <tr><td>`data`</td><td>object</td><td /></tr>
    <tr><td>`data.memberList`</td><td>object\[]</td><td>會員數據</td></tr>
    <tr><td>`data.memberList[].channelId`</td><td>number</td><td>渠道編號</td></tr>
    <tr><td>`data.memberList[].account`</td><td>string</td><td>會員帳號</td></tr>
    <tr><td>`data.memberList[].currency`</td><td>string</td><td>幣別(請洽詢我方商務)</td></tr>
    <tr><td>`data.memberList[].betCount`</td><td>number</td><td>總下注次數</td></tr>
    <tr><td>`data.memberList[].totalBet`</td><td>number</td><td>總下注金額</td></tr>
    <tr><td>`data.memberList[].totalPayout`</td><td>number</td><td>總派彩金額</td></tr>
    <tr><td>`data.memberList[].totalWinLose`</td><td>number</td><td>會員總輸贏金額</td></tr>
    <tr><td>`status`</td><td>object</td><td>回應狀態，請參考[回應格式](https://doc.va777.net/zh-Hant/v1/guides/request-format.md#回應格式)</td></tr>
  </tbody>
</table>

### 回應範例

```json 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"
  }
}
```

## 回應訊息碼

除了[共通訊息碼](https://doc.va777.net/zh-Hant/v1/reference/response-codes.md)，此 API 還可能回傳：

| 代碼 | 說明 |
| - | - |
| `103` | 我方處理失敗 |
| `429` | 呼叫過於頻繁 |


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