Get Seal Usage Records
Description
取得集章使用紀錄。
Resource
GET /v1/user/seal_usage_records
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Query Parameters
| Name | Type | Description |
|---|---|---|
| start_date | string | 開始日期 (例:2020-08-14 12:00:00) (optional) |
| end_date | string | 結束日期 (例:2020-08-14 23:59:59) (optional) |
Request Example
GET /v1/user/seal_usage_records?start_date=2021-07-05 09:00:00&end_date=2021-07-06 18:00:00
Response
{
"vip_id": "000002",
"vip_group_id ": "002",
"vip_group_name ": "VIP卡",
"total_seal_quantity ": 10,
"log ": [
{
"vip_id": "000002",
"vip_group_id": "002",
"vip_group_name": "VIP卡",
"store_id": "425056",
"store_name": "上海店",
"ticket_id": "42505682SA20217050051",
"input_date": "2021-07-05T11:55:03",
"type": "add",
"collect_quantity ": 15,
"create_date": "2021-07-05T11:55:03",
"create_user": "1",
"is_execute": true,
"execute_date": "2021-07-05T11:55:03",
"online_execute": true,
"transfer_status": "1",
"last_update ": "2021-07-05T11:55:03",
"remark ": "銷售新增"
},
{
"vip_id": "000002",
"vip_group_id": "002",
"vip_group_name": "VIP卡",
"store_id": "02",
"store_name": "總部",
"ticket_id": "00001",
"input_date": "2021-07-06T02:55:03",
"type": "exchange",
"collect_quantity ": -5,
"create_date": "2021-07-06T02:55:03",
"create_user": "lafresh",
"is_execute": true,
"execute_date": "2021-07-06T02:55:03",
"online_execute": true,
"transfer_status": "1",
"last_update ": "2021-07-06T02:55:03",
"remark ": "集章換抵用券"
}
]
}
Response Body
| Name | Type | Description |
|---|---|---|
| vip_id | string | 會員編號 |
| vip_group_id | string | 會員群組編號 |
| vip_group_name | string | 會員群組名稱 |
| total_seal_quantity | string | 總集章數 |
| log | Log | 異動紀錄 |
Response Body Parameters - Log
| Name | Type | Description |
|---|---|---|
| vip_id | string | 會員編號 |
| vip_group_id | string | 會員群組編號 |
| vip_group_name | string | 會員群組名稱 |
| store_id | string | 異動分店編號 |
| store_name | string | 異動分店名稱 |
| ticket_id | string | 異動單據編號 |
| input_date | string | 單據日期 |
| type | SealType | 集章異動類型 |
| collect_quantity | int | 集章數 |
| create_date | string | 建檔日期 |
| create_user | string | 建檔人員 |
| is_execute | boolean | 計算執行過 |
| execute_date | string | 執行時間 |
| online_execute | boolean | 連線執行 |
| transfer_status | string | 傳輸標誌 |
| last_update | string | 傳輸異動日 |
| remark | string | 備註 |
Request Body Parameters - SealType
| Name | Description |
|---|---|
| add | 消費新增 |
| sub | 銷退返還 |
| exchange | 兌換集章 |
| zero | 印章數歸零 |