Get Customer Admission Tickets
Description
取得消費者門票列表。
Resource
GET /v1/product/customer_admission_tickets
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request
GET /v1/product/customer_admission_tickets
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| tickets | Ticket | 門票列表 |
Response Body Parameters - Ticket
| Name | Type | Description |
|---|---|---|
| product_id | string | 門票編號 |
| product_name | string | 門票名稱 |
| price | integer | 門票金額 |
| min_quantity | integer | 最小訂購量,數量0代表不限制 |
| max_quantity | integer | 最大訂購量,數量0代表不限制 |
| message | string | 提示訊息 |
Response
{
"tickets": [
{
"product_id": "T01",
"product_name": "全票",
"price": 300,
"min_quantity": 0,
"max_quantity": 19,
"message": "全票已達20張請選購一般團體票。"
},
{
"product_id": "T02",
"product_name": "敬老票",
"price": 200,
"min_quantity": 0,
"max_quantity": 0,
"message": null
},
{
"product_id": "T03",
"product_name": "學生票",
"price": 200,
"min_quantity": 0,
"max_quantity": 0,
"message": null
},
{
"product_id": "T04",
"product_name": "毛小孩票",
"price": 50,
"min_quantity": 0,
"max_quantity": 0,
"message": null
},
{
"product_id": "T05",
"product_name": "一般團體票",
"price": 250,
"min_quantity": 20,
"max_quantity": 0,
"message": "一般團體至少需要20張,未達20張請選購全票。"
}
]
}