Encrypt Ticket ID
Description
加密票券編號。
Resource
POST /v1/ticket/encrypt
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| ticket_ids | list[string] | 要加密的票劵編號 |
Request Example
POST /v1/ticket/encrypt
{
"ticket_ids": [
"TICKET0001",
"TICKET0002"
]
}
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| tickets | list[Ticket] | 票券列表 |
## Response Body Parameters - Ticket | Name | Type | Description | |--------------|--------|-------------| | id | string | 原始票劵編號 | | encrypted_id | string | 已加密的票劵編號 | |
Response Example - Http Code 200
{
"tickets": [
{
"id": "TICKET0001",
"encrypted_id": "WQEIJO1980213JP==NEIOJ12"
},
{
"id": "TICKET0002",
"encrypted_id": "SADJIOJW==U9==SAKDJ"
}
]
}
Response Example - Http Code 400
{
"message": "尚未開啟加密功能"
}