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

# Get member report

> Get member report: request parameters, response format and response codes.

> [!NOTE]
>
> * Bet records are kept for at most 3 months.
> * Results are grouped by channel ID, member account and currency; only records matching all three are summed into one row.
> * Data is aggregated by hour and uses an hour-precision RFC3339 format (for example 2022-01-01T00+08:00). Times must be precise to the hour and include the time zone.
> * This service is rate limited to 80 calls per day (80/d).
> * Sums bets whose bet time is greater than or equal to the start time and less than the end time.
> * The maximum query range is 31 days.

## Path

```text theme={null}
GET {host}/vendor/v2.0/report/member
```

## Headers

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

    <col width="10%" />

    <col width="7%" />

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

  <thead><tr><th>Field</th><th>Type</th><th>Required</th><th>Description</th></tr></thead>

  <tbody>
    <tr><td>`Authorization`</td><td>string</td><td>Yes</td><td>Token we provide</td></tr>
  </tbody>
</table>

## Request parameters

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

    <col width="10%" />

    <col width="7%" />

    <col width="11%" />

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

  <thead><tr><th>Field</th><th>Type</th><th>Required</th><th>Signed</th><th>Description</th></tr></thead>

  <tbody>
    <tr><td>`channelID`</td><td>number</td><td>Yes</td><td>✓</td><td>Channel ID (use 1 if you have no channels; 0 queries all)</td></tr>
    <tr><td>`startTime`</td><td>string</td><td>Yes</td><td>✓</td><td>Search start time (hour-precision format)</td></tr>
    <tr><td>`endTime`</td><td>string</td><td>Yes</td><td>✓</td><td>Search end time (hour-precision format)</td></tr>
    <tr><td>`sign`</td><td>string</td><td>Yes</td><td /><td>Signature. See [Signature](https://doc.va777.net/en/v2/guides/signature.md) for how to generate it</td></tr>
  </tbody>
</table>

## Response

Success (the HTTP status code is always 200; check `status.code` for the result)

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

    <col width="12%" />

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

  <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead>

  <tbody>
    <tr><td>`data`</td><td>object</td><td /></tr>
    <tr><td>`data.memberList`</td><td>object\[]</td><td>Member data</td></tr>
    <tr><td>`data.memberList[].channelID`</td><td>number</td><td>Channel ID</td></tr>
    <tr><td>`data.memberList[].account`</td><td>string</td><td>Member account</td></tr>
    <tr><td>`data.memberList[].currency`</td><td>string</td><td>Currency (contact our business team)</td></tr>
    <tr><td>`data.memberList[].betCount`</td><td>number</td><td>Total number of bets</td></tr>
    <tr><td>`data.memberList[].totalBet`</td><td>number</td><td>Total bet amount</td></tr>
    <tr><td>`data.memberList[].totalPayout`</td><td>number</td><td>Total payout amount</td></tr>
    <tr><td>`data.memberList[].totalWinLose`</td><td>number</td><td>Member total win/loss</td></tr>
    <tr><td>`status`</td><td>object</td><td>Response status. See [Response format](https://doc.va777.net/en/v2/guides/request-format.md#response-format)</td></tr>
  </tbody>
</table>

### Response example

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

## Response codes

Besides the [common codes](https://doc.va777.net/en/v2/reference/response-codes.md), this API may also return:

| Code | Description |
| - | - |
| `103` | Request failed on our side |
| `429` | Too many requests |


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