Get Admission Ticket Order Details
Description
取得門票訂單明細。
Resource
GET /v1/order/{order_id}/admission_tickets
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Path Parameters
| Name | Type | Description |
|---|---|---|
| order_id | string | 訂單編號 |
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| verification_code | string | 驗證碼 |
Request
GET /v1/order/test21092200001/admission_tickets?verification_code=134679
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| tickets | Ticket | 門票列表 |
Response Body Parameters - Ticket
| Name | Type | Description |
|---|---|---|
| product_id | string | 門票編號 |
| product_name | string | 門票名稱 |
| total_quantity | integer | 總票數 |
| allocated_quantity | integer | 已分配票數 |
| remaining_quantity | integer | 剩餘票數 |
| show_certificate | boolean | 是否出示證明文件 |
Response
{
"tickets": [
{
"product_id": "T01",
"product_name": "全票",
"total_quantity": 4,
"allocated_quantity": 2,
"remaining_quantity": 2,
"show_certificate": false
},
{
"product_id": "T02",
"product_name": "敬老票",
"total_quantity": 2,
"allocated_quantity": 0,
"remaining_quantity": 2,
"show_certificate": true
}
]
}