Get Purchase Record
Description
獲取會員在時間範圍內的購買紀錄
Resource
GET /v1/data_center/purchase_record
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Query Parameters
| Name | Type | Description |
|---|---|---|
| company_id | string | 公司編號 |
| start_date | string | 起始日期 |
| end_date | string | 結束日期 |
Request Example
GET /v1/data_center/purchase_record?company_id=18090404&start_date=2016-06-21&end_date=2019-06-23
Response Example
{
"record_list": [
{
"company_id": "22721208",
"shop_id": "MTYG99",
"vip_id": "0000000330",
"sale_id": "MTYG9901SA201712250079",
"vipgrp_id": null,
"tot_sales": 378.0,
"tot_discharge": 0.0,
"service_charge": 0.0,
"sale_date": "2017-12-25 15:14:18",
"is_first": false
},
{
"company_id": "22721208",
"shop_id": "MTYG99",
"vip_id": "0000001935",
"sale_id": "MTYG9901SA201712250093",
"vipgrp_id": null,
"tot_sales": 110.0,
"tot_discharge": 0.0,
"service_charge": 0.0,
"sale_date": "2017-12-25 17:56:32",
"is_first": false
},
{
"company_id": "22721208",
"shop_id": "MTYG99",
"vip_id": "00000APP098653",
"sale_id": "MTYG9901SA201906210007",
"vipgrp_id": null,
"tot_sales": 69.0,
"tot_discharge": 0.0,
"service_charge": 0.0,
"sale_date": "2019-06-21 06:33:44",
"is_first": true
}
]
}
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| record_list | record | 交易紀錄清單 |
Response Body Parameters - record
| Name | Type | Description |
|---|---|---|
| company_id | string | 公司編號 |
| shop_id | string | 店號 |
| vip_id | string | 貴賓編號 |
| sale_id | string | 銷售單據編號 |
| vipgrp_id | string | 貴賓群組編號 |
| tot_sales | float | 總銷售金額(淨) |
| tot_discharge | float | 尾數折讓 |
| service_charge | float | 服務費 |
| sale_date | string | 銷售日期 |
| is_first | bool | 是否為首購 |