Get Stored Value Cards
Description
取得儲值卡列表。
Resource
GET /v1/card/list
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Example
GET /v1/card/list
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| cards | Card[] | 儲值卡列表 |
Response Body Parameters - Card
| Name | Type | Description |
|---|---|---|
| card_no | string | 儲值卡號 |
| type | string | 種類ALLOWED VALUES:
|
| money | float | 餘額 |
| is_default | boolean | 是否為預設卡片 |
| image_url | string | 儲值卡圖檔 |
Response
Status-Code: 200
{
"cards": [
{
"card_no": "WW1234509878991",
"type": "實體卡",
"money": 888.9,
"is_default": false,
"image_url": "http://card.wixtar.com/WW1234509878991"
},
{
"card_no": "WW789IU908UJBNM",
"type": "虛擬卡",
"money": 9988770.9,
"is_default": true,
"image_url": "http://card.wixtar.com/WW789IU908UJBNM"
}
]
}
Status-Code: 404
{
"code": "WX0099",
"message": "查無儲值卡資料"
}