Skip to content

Get Recommend Products

Description

取得推薦加點。

Resource

GET /v1/recommend_products

Authorization

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

Query Parameters

Name Type Description
store_id string 門市代碼
vip_group_id string 門市代碼
pickup_time string 取貨時間
(optional)
Default:系統時間為準
EXAMPLE "2020-01-01 15:30:00"

Response

{
  "products": [
    {
      "sale_start": null,
      "sale_end": null,
      "id": "0003",
      "title": "和風雞腿飯",
      "second_title": "和風雞腿飯",
      "memo": "",
      "spec": "",
      "unit": "份",
      "barcode": "",
      "tax": 0,
      "tax_sign": "TX",
      "price": 250,
      "enable": true,
      "is_combo_item": false,
      "is_float": false,
      "can_get_points": false,
      "can_redeemed": false,
      "spend_points": 0,
      "pack_price_type": "PRODUCT",
      "type": "GENERAL_PRODUCT",
      "origin": "",
      "element": "",
      "caloric": "",
      "description": null,
      "promotion_content": null,
      "description_url": null,
      "spec_html": null,
      "spec_url": null,
      "EC_url": null,
      "tags": null,
      "app_product_name": null,
      "introduction": null,
      "is_hidden": false,
      "abbreviated_title": "",
      "ispickup": false,
      "is_combo": false,
      "is_package": false,
      "special_price": 225.0,
      "member_discount_rate": 75.0,
      "position": 0,
      "combo_price": 250,
      "package_price": null,
      "is_stop_sale": false,
      "brand": "",
      "gencods": null,
      "default_data_price": 0,
      "img": null,
      "tastes": [
        {
          "id": 8,
          "title": "加大",
          "translate_title": "",
          "english_title": "",
          "is_mutually_exclusive": true,
          "kind": "0",
          "max_quantity": null,
          "is_required": false,
          "items": [
            {
              "id": 1,
              "title": "加大",
              "price": 10,
              "size_child_product_id": null
            },
            {
              "id": 2,
              "title": "超大",
              "price": 20,
              "size_child_product_id": null
            },
            {
              "id": 3,
              "title": "超超大",
              "price": 30,
              "size_child_product_id": null
            }
          ],
          "default": {}
        }
      ],
      "single_price": 250
    },
    {
      "sale_start": null,
      "sale_end": null,
      "id": "160001",
      "title": "原味雞排",
      "second_title": "",
      "memo": "",
      "spec": "",
      "unit": "份",
      "barcode": "",
      "tax": 0,
      "tax_sign": "",
      "price": 50,
      "enable": true,
      "is_combo_item": false,
      "is_float": false,
      "can_get_points": false,
      "can_redeemed": false,
      "spend_points": 0,
      "pack_price_type": "PRODUCT",
      "type": "GENERAL_PRODUCT",
      "origin": "",
      "element": "",
      "caloric": "",
      "description": "<p>美味多汁可口</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<pre id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" data-placeholder=\"翻譯\" aria-label=\"譯文\" data-ved=\"2ahUKEwjmo96nu_qFAxXlj68BHYoEByIQ3ewLegQIBRAU\"><span class=\"Y2IQFc\" lang=\"en\">Chicken!#︿%@1234  5677<br /><br /><br /><br /></span></pre>",
      "promotion_content": "",
      "description_url": "",
      "spec_html": "",
      "spec_url": "",
      "EC_url": "",
      "tags": "",
      "app_product_name": "",
      "introduction": "",
      "is_hidden": false,
      "abbreviated_title": "",
      "ispickup": false,
      "is_combo": false,
      "is_package": false,
      "special_price": null,
      "member_discount_rate": null,
      "position": 0,
      "combo_price": 50,
      "package_price": null,
      "is_stop_sale": false,
      "brand": "",
      "gencods": null,
      "default_data_price": 0,
      "img": "https://portal-dev.wixtar.com/kiosk/apptest/public/product00/408311-1-1716537458_s.png",
      "tastes": [
        {
          "id": 2,
          "title": "辣度",
          "translate_title": "",
          "english_title": "",
          "is_mutually_exclusive": true,
          "kind": "0",
          "max_quantity": null,
          "is_required": false,
          "items": [
            {
              "id": 1,
              "title": "小辣",
              "price": 0,
              "size_child_product_id": null
            },
            {
              "id": 2,
              "title": "中辣",
              "price": 10,
              "size_child_product_id": null
            },
            {
              "id": 3,
              "title": "大辣",
              "price": 20,
              "size_child_product_id": null
            }
          ],
          "default": {}
        },
        {
          "id": 5,
          "title": "處理",
          "translate_title": "",
          "english_title": "",
          "is_mutually_exclusive": true,
          "kind": "0",
          "max_quantity": null,
          "is_required": false,
          "items": [
            {
              "id": 1,
              "title": "要切",
              "price": 0,
              "size_child_product_id": null
            },
            {
              "id": 2,
              "title": "不切",
              "price": 0,
              "size_child_product_id": null
            }
          ],
          "default": {
            "id": 2,
            "title": "不切",
            "price": 0,
            "size_child_product_id": null
          }
        }
      ],
      "single_price": 50
    }
  ]
}

Response Body Parameters

Name Type Description
products Product 商品列表

Response Body Parameters - Product

Name Type Description
id string 商品編號
title string 商品第一名稱
translate_title string 商品第一翻譯名稱
english_title string 商品第一英文名稱
second_title string 商品第二名稱
translate_second_title string 商品第二翻譯名稱
english_second_title string 商品第二英文名稱
abbreviated_title string 商品簡稱
translate_abbreviated_title string 商品翻譯簡稱
english_abbreviated_title string 商品英文簡稱
categories Category 商品類別
memo string 商品備註
translate_memo string 商品翻譯備註
english_memo string 商品英文備註
spec string 規格
translate_spec string 翻譯規格
english_spec string 英文規格
unit string 單位
translate_unit string 翻譯單位
english_unit string 英文單位
description string 描述
translate_description string 翻譯描述
english_description string 英文描述
promotion_content string 促銷內容
translate_promotion_content string 促銷翻譯內容
english_promotion_content string 促銷英文內容
spec_html string 規格(HTML格式)
translate_spec_html string 翻譯規格(HTML格式)
english_spec_html string 英文規格(HTML格式)
introduction string 簡介
translate_introduction string 翻譯簡介
english_introduction string 英文簡介
barcode string 條碼
tax integer 稅額
tax_sign string 稅別
price integer 價格
enable Boolean 啟用
is_combo Boolean 是否為套餐
is_package Boolean 是否為單品組合
is_combo_item Boolean 是否為套餐子項目
is_stop_sale Boolean 是否為停售商品
can_get_points Boolean 是否可累積點數
can_redeemed Boolean 是否可用點數兌換
spend_points integer 兌換所需點數
combo_price integer 組合餐價格
origin string 產地
element string 成份
caloric string 熱量
img string 圖檔URL
desciption string 描述
(HTML)
special_price float 特價
member_discount_rate float 會員折扣率
sale_start string 銷售時間起
sale_end string 銷售時間迄

Response Body Parameters - Category

Name Type Description
id string 分類編號
title string 分類名稱