Get First Purchase Record
Description
獲取會員的首購(第一次交易)紀錄
Resource
Post /v1/data_center/first_purchase_record
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Example
{
"vip_id_list": [
"00000SHOP000056",
"0000001935"
],
"company_id": "18090404"
}
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| vip_id_list | list [string] | 會員編號清單 |
| company_id | string | 公司編號 |
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"
},
{
"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"
},
{
"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"
}
]
}
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 | 銷售日期 |