API說明

API位置 /new_ezding/members/points
需求描述 查詢會員有效紅利總點數
傳輸物件格式 json
方法 GET

範例

curl -X GET   \
-H " X-Ftcsys-key: {KEY}"  \ 
-H " X-Ftc-Authorization: {token}"  \
-H "Content-Type: application/json" \
http://{endpoint}/new_ezding/members/points?point_type=ez_member_point

回傳範例

< HTTP/1.1 200 OK
< Content-Type: application/json; charset=UTF-8
{
  "result": {
    "uid": "00001",
    "point_type": "ez_member_point",
    "point_sum": 9999
  },
  "code": 200.011,
  "status": "success"
}
HTTP回應碼 result 說明
200.011 "data" 點數查詢成功
403.203 "" 點數查詢失敗
404.001 "" 使用者帳號不存在
403.107 "" 參數錯誤

接收URL參數

參數 名稱 範例 必填 備註
point_type 紅利點數類別 ez_member_point Y ez_member_point:ez訂會員紅利點、asiamile_point:亞洲萬里通點數(不同類別代碼將陸續新增)

回傳json參數

參數 名稱 範例 必填 備註
uid 使用者ID 00001 Y
point_type 紅利點數類別 ez_member_point Y ez_member_point:ez訂會員紅利點、asiamile_point:亞洲萬里通點數(不同類別代碼將陸續新增)
point_sum 有效紅利總數 500 Y 計算status為1的總數

results matching ""

    No results matching ""