Get Guide Admission Tickets
Description
取得導遊門票列表。
Resource
GET /v1/product/guide_admission_tickets
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| guide_id | string | 導遊編號 |
Request
GET /v1/product/guide_admission_tickets?guide_id=G001
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| groups | Group | 團體列表 |
Response Body Parameters - Group
| Name | Type | Description |
|---|---|---|
| id | string | 團體編號 |
| name | string | 團體名稱 |
| 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
{
"groups": [
{
"id": "group_a",
"name": "社客團",
"tickets": [
{
"product_id": "T01",
"product_name": "一般團體票",
"price": 300,
"min_quantity": 20,
"max_quantity": 0,
"message": "一般團體至少需要20張,未達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
}
]
},
{
"id": "group_b",
"name": "學生團",
"tickets": [
{
"product_id": "T03",
"product_name": "學生票",
"price": 200,
"min_quantity": 0,
"max_quantity": 0,
"message": null
}
]
}
]
}