Send Product Tickets
Description
配發商品券。
Resource
POST /v1/ticket/product/send
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| vip_id | string | 會員編號 |
| order_id | string | 訂單編號 |
| store_id | string | 門市代碼 |
| sale_date | string | 銷售日期 EXAMPLE "2020-01-01 12:00:00" |
| sale_kind | string (enum) |
銷售種類 ALLOWED VALUES:
|
| tickets | Ticket | 票券列表 |
Request Body Parameters - Ticket
| Name | Type | Description |
|---|---|---|
| product_id | string | 商品編號 |
| quantity | integer | 數量 |
| amount | integer | 總金額 |
Request
{
"vip_id": "VIP0001",
"order_id": "test21092200001",
"store_id": "test",
"sale_date": "2022-04-01 12:00:00",
"tickets": [
{
"product_id": "T01",
"quantity": 2,
"amount": 100
},
{
"product_id": "T03",
"quantity": 1,
"amount": 80
}
]
}
Response
Status-Code: 204 No Content
Response Error Code
| code | message |
|---|---|
| 1001 | 參數錯誤 |
| 1003 | 發生未知的錯誤 |
| 1402 | 系統票券不足,無法進行分票 |
| 1403 | 票券系統發生問題,請聯絡客服人員 |
| 2001 | 查無票券資料 |