Get Member Key
Description
取得會員登入金鑰。
- 商家會員來源為星益欣會員中心時:
- 僅允許帶入 phone_number 查手機,不接受 vip_id 或 type。
- 會員狀態檢核:會員帳號停權/凍結、註銷或狀態異常時,阻擋並回傳 HTTP 400 及 code: UAC0026。
- 狀態正常:星益欣會員中心會員無全通路 acckey,固定回傳 {"acckey": ""}。
Resource
GET /v1/member/key
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Query Parameters
| Name | Type | Description |
|---|---|---|
| phone_number | string | 行動電話號碼 (optional) |
| vip_id | string | 會員編號 (optional) |
| type | string | 來源種類 ALLOWED VALUES:
|
Request Example
GET /v1/member/key?phone_number=0911223344&type=KIOSK
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| acckey | string | 會員金鑰(Wixtar 會員固定為空字串 "") |
Response Example (Http Code = 200)
{
"acckey": ""
}
Error Response Example - 會員狀態異常/停權/註銷 (Http Code = 400)
{
"code": "UAC0026",
"message": "會員帳號已停權或凍結,無法登入"
}
Error Response Example - 查無會員 (Http Code = 400)
{
"code": "UAC0002",
"message": "查無此會員"
}