Get Bags
Description
取得購物袋。
Resource
GET /v1/product/bags
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Query Parameters
| Name | Type | Description |
|---|---|---|
| language | string (enum) |
語系 ALLOWED VALUES:
|
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| bags | Bag | 購物袋列表 |
Response Body Parameters - Bag
| Name | Type | Description |
|---|---|---|
| id | string | 商品編號 |
| title | string | 商品第一名稱 |
| translate_title | string | 商品第一翻譯名稱 |
| english_title | string | 商品第一英文名稱 |
| price | integer | 價格 |
| img | string | 圖檔URL |
Response Example - Http Code = 200
{
"bags": [
{
"id": "BAG001",
"title": "小購物袋",
"translate_title": "Small Shopping Bag",
"english_title": "Small Shopping Bag",
"price": 1,
"img": "https://portal-dev.wixtar.com/kiosk/apptest/public/product00/bag_s1.png"
},
{
"id": "BAG002",
"title": "中購物袋",
"translate_title": "Medium Shopping Bag",
"english_title": "Medium Shopping Bag",
"price": 9527,
"img": "https://portal-dev.wixtar.com/kiosk/apptest/public/product00/bag_s2.png"
}
]
}
Response - Http Code = 200
{
"bags": []
}