Get Shop Points Usage Record
Description
取得門市點數使用紀錄。
Resource
GET /v1/point/shop_usage_record/{store_id}
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Path Parameters
| Name | Type | Description |
|---|---|---|
| store_id | string | 門市代號 |
Query Parameters
| Name | Type | Description |
|---|---|---|
| start_date | string | 開始日期 EXAMPLE "2020-01-01" |
| end_date | string | 結束日期 EXAMPLE "2020-01-01" |
Request
GET /v1/point/shop_usage_record/A01?start_date=2020-01-01&end_date=2020-01-01
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| logs | Log[] | 異動紀錄 |
Response Body Parameters - Log
| Name | Type | Description |
|---|---|---|
| vip_id | string | 會員編號 |
| vip_name | string | 會員名稱 |
| date | string | 累兌點時間 |
| points | integer | 點數 |
| point_type | PointType | 點數異動類型 |
| point_memo | string | 點數備註 |
Response Body Parameters - PointType
| Name | Description |
|---|---|
| new_consumption | 消費新增 |
| sales_return_reduction | 銷退返還 |
| exchange | 點數兌換 |
| exchange_sell_back | 點數兌換銷退 |
| transfer_out | 點數轉出 |
| transfer_in | 點數轉入 |
| zero | 點數歸零 |
Response
{
"logs": [
{
"vip_id": "A12345678901",
"vip_name": "鄭先生",
"date": "2021-08-08 21:52:24",
"points": 10,
"point_type": "new_consumption",
"point_memo": "test"
}
]
}