Get Payments
Description
取得付款方式。
Resource
GET /v1/payments
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Query Parameters
| Name | Type | Description |
|---|---|---|
| shop_id | string | 門市代碼 |
| source_type | string(enum) | 來源種類 ALLOWED VALUES:
|
Request Example
GET /v1/payments?shop_id=test01&source_type=MOBILE_APP
Response
{
"payments": [
{
"id": "LINE_PAY",
"name": "LINE Pay"
},
{
"id": "CREDIT_CARD",
"name": "信用卡"
}
]
}
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| payments | Payment | 付款方式 |
Response Body Parameters - Payment
| Name | Type | Description |
|---|---|---|
| id | string | 付款方式編號 |
| name | string | 付款方式名稱 |
| line_pay_product_name | string | LINE Pay品名,只有付款方式為LINE Pay會回傳 (option) |