Get Verified Admission Tickets
Description
取得已入園門票列表。
Resource
GET /v1/ticket/verified_admission_tickets
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| start_date | string | 開始日期 EXAMPLE "2020-01-01" (optional) |
| end_date | string | 結束日期 EXAMPLE "2020-01-01" (optional) |
Request
GET /v1/ticket/verified_admission_tickets
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| tickets | Ticket | 門票列表 |
Response Body Parameters - Ticket
| Name | Type | Description |
|---|---|---|
| id | string | 票券編號 |
| product_name | string | 門票名稱 |
| remaining_discount_amount | integer | 門票剩餘折抵金額 |
| can_use | boolean | 門票折抵是否可用 |
| error_message | string | 門票折抵訊息 (optional) |
| order_id | string | 訂單編號 |
Response
{
"tickets": [
{
"id": "BB100312",
"product_name": "全票",
"remaining_discount_amount": 100,
"can_use": true,
"order_id": "110122010600004"
},
{
"id": "BB100336",
"product_name": "敬老票",
"remaining_discount_amount": 100,
"can_use": false,
"error_message": "已超過使用期限",
"order_id": "110122010600004"
},
{
"id": "BB100337",
"product_name": "學生票",
"remaining_discount_amount": 0,
"can_use": false,
"error_message": "沒有可以使用的折價券",
"order_id": "110122010600004"
}
]
}