Allocate Tickets
Description
分票。
Resource
POST /v1/ticket/allocation
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| order_id | string | 訂單編號 |
| verification_code | string | 驗證碼 |
| tickets | Ticket | 門票列表 |
Request Body Parameters - Ticket
| Name | Type | Description |
|---|---|---|
| product_id | string | 門票編號 |
| quantity | string | 票數 |
Request
{
"order_id": "test21092200001",
"verification_code": "134679",
"tickets": [
{
"product_id": "T01",
"quantity": 2
},
{
"product_id": "T03",
"quantity": 1
}
]
}
Response
Status-Code: 204 No Content
Response Error Code
| code | message |
|---|---|
| 1001 | 參數錯誤 |
| 1003 | 發生未知的錯誤 |
| 1401 | 票券不足,請重新分票 |
| 1402 | 系統票券不足,無法進行分票 |