> ## 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]
>
> * 統計成功派彩金額與筆數。
> * 數據保留 60 天，最大查詢區間 24 小時，每次搜尋區間建議小於等於 60 分鐘分段查詢避免過慢。

## 請求路徑

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

## 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>`eventID`</td><td>string</td><td>是</td><td>✓</td><td>活動編號 (24 碼 hex)</td></tr>
    <tr><td>`startTime`</td><td>string</td><td>是</td><td>✓</td><td>開始時間 (時區、格式請參考[API注意事項](https://doc.va777.net/zh-Hant/v2/guides/request-format.md#時間格式))</td></tr>
    <tr><td>`endTime`</td><td>string</td><td>是</td><td>✓</td><td>結束時間 (時區、格式請參考[API注意事項](https://doc.va777.net/zh-Hant/v2/guides/request-format.md#時間格式))</td></tr>
    <tr><td>`sign`</td><td>string</td><td>是</td><td /><td>簽章，產生方式請參考[簽章規則](https://doc.va777.net/zh-Hant/v2/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.totalAmount`</td><td>number</td><td>該 EventID 區間成功派彩總額</td></tr>
    <tr><td>`data.count`</td><td>number</td><td>該 EventID 區間成功派彩筆數</td></tr>
    <tr><td>`status`</td><td>object</td><td>回應狀態，請參考[回應格式](https://doc.va777.net/zh-Hant/v2/guides/request-format.md#回應格式)</td></tr>
  </tbody>
</table>

### 回應範例

```json theme={null}
{
  "data": {
    "totalAmount": 99.99,
    "count": 10
  },
  "status": {
    "code": "0",
    "message": "success",
    "datetime": "2022-07-01T10:13:54.920+08:00",
    "traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
  }
}
```

## 回應訊息碼

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

| 代碼 | 說明 |
| - | - |
| `416` | 查無此活動 |
| `429` | 呼叫過於頻繁 |


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