Manage Member Points
Description
管理會員點數。
Resource
PATCH /v1/user/manage_points
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| point_type | PointType** | 點數狀態 |
| points | integer | 點數 |
| store_id | string | 門市代碼 (optional) |
| amount | float | 金額 (optional) |
| memo | string | 備註 (optional) |
| card_no | string | 會員虛擬卡號 (optional) |
Request Body Parameters - PointType
| Name | Description |
|---|---|
| NEW_CONSUMPTION | 消費新增 |
| SALES_RETURN_REDUCTION | 銷退返還 |
| EXCHANGE | 點數兌換 |
| EXCHANGE_SELL_BACK | 點數兌換銷退 |
| TRANSFER_OUT | 點數轉出 |
| TRANSFER_IN | 點數轉入 |
Add Points Request
{
"point_type": "NEW_CONSUMPTION",
"points": 10,
"store_id": "0",
"amount": 25.0,
"memo": "新增點數",
"card_no": "Da/dVQJebCkHZCGAPaInuztlSw+OBYs2odSEKePyho0="
}
Redeem Points Request
{
"point_type": "SALES_RETURN_REDUCTION",
"points": 10,
"store_id": "0",
"amount": 25.0,
"memo": "扣除點數",
"card_no": "Da/dVQJebCkHZCGAPaInuztlSw+OBYs2odSEKePyho0="
}
Response
Status-Code: 204 No Content