Skip to content

Update Stored Value Card Default State

Description

更新儲值卡預設狀態。

Resource

PATCH /v1/card/default_state

Authorization

採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login

Request Body Parameters

Name Type Description
store_id string 門市編號
vip_id string 會員編號
card_no string 儲值卡號
is_default boolean 是否為預設

Request

{
    "store_id": "B0001",
    "vip_id": "VIP009",
    "card_no": "BB34567809876",
    "is_default": true
}

Response Body Parameters

Name Type Description
code string 執行結果代碼
message string 執行結果說明

Response

HTTP-Status-Code: 200

{
    "code": "0000",
    "message": "執行成功"
}

HTTP-Status-Code: 400

{
    "code": "WX9999",
    "message": "依全通路回傳"
}