Skip to content

Get Stored Value Denomination

Description

取得儲值面額。

Resource

GET /v1/card/denomination

Authorization

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

Request Example

GET /v1/card/denomination

Response Body Parameters

Name Type Description
denomination Denomination[] 儲值卡面額列表

Response Body Parameters - Denomination

Name Type Description
id string 面額編號
name string 面額名稱
amount integer 儲值面額
gift_point integer 儲值贈送點數

Response

HTTP-Status-Code: 200

{
    "denomination": [
        {   
            "id": "1",
            "name": "100 元",
            "amount": 100,
            "gift_point": 10
        },
        {
            "id": "2",
            "name": "200 元",
            "amount": 200,
            "gift_point": 25
        },
        {
            "id": "3",
            "name": "300 元",
            "amount": 300,
            "gift_point": 40
        }
    ]
}

HTTP-Status-Code: 404

{
    "code": "WX9999",
    "message": "查無儲值卡面額資料"
}