Get Tickets Activitys
Description
取得票劵活動。
Resource
GET /v1/ticket/activity
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Response
[
{
"id": 1,
"subject": "貴賓電子禮卷",
"description": "<p>本次活動詳情</p>",
"is_hidden_ticket_no": false,
"ticket": [
{
"id": 168,
"name": "麥味登100元現金折價劵",
"quantity": 500,
"available_quantity": 450
}
]
},
{
"id": 2,
"subject": "大薯兌換卷",
"description": "<p>本次活動詳情</p>",
"is_hidden_ticket_no": true,
"ticket": [
{
"id": 188,
"name": "麥味登大薯兌換卷",
"quantity": 265,
"available_quantity": 200
}
]
}
]
Response Body Parameters
回應為 Activity 陣列(活動列表)。
Response Body Parameters - Activity
| Name | Type | Description |
|---|---|---|
| id | number | 活動代碼 |
| subject | string | 活動主題 |
| description | string | 活動詳情 |
| is_hidden_ticket_no | boolean | 是否隱藏票卷號碼 |
| ticket | list[Ticket] | 活動票劵 |
Response Body Parameters - Ticket
| Name | Type | Description |
|---|---|---|
| id | number | 活動票劵編號 |
| name | string | 活動票劵名稱 |
| quantity | number | 活動票劵數量 |
| available_quantity | number | 活動票劵可用數量 |