Skip to content

Get Pre Order Projects

Description

取得預購專案。

Resource

GET /v1/pre_order_projects

Authorization

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

Response

{
  "projects": [
    {
      "id": "test0001",
      "name": "中秋預購早鳥專案",
      "can_cancel": true,
      "cancel_order_deadline": "2020-07-15T23:59:59.999Z",
      "start_time": "2020-07-01T00:00:00.0Z",
      "end_time": "2020-07-15T23:59:59.999Z",
      "pickup": {
        "method": [
          {
            "id": "1",
            "name": "門市取貨"
          },
          {
            "id": "2",
            "name": "超商取貨"
          },
          {
            "id": "3",
            "name": "宅急便"
          }
        ],
        "stores": [
          {
            "id": "shop01",
            "name": "中正門市"
          },
          {
            "id": "shop02",
            "name": "信義門市"
          }
        ],
        "start_time": "2020-09-01T00:00:00.000Z",
        "end_time": "2020-09-15T23:59:59.999Z"
      },
      "image_url": "http://40.83.96.208:8080/kiosk/app/public/pre_order/5839-1-1550816490.png",
      "image_s_url": "http://40.83.96.208:8080/kiosk/app/public/pre_order/5839-1-1550816490_s.png",
      "description": "<p>預購專案的活動詳細說明</p>",
      "products": [
        {
          "id": "UC00000011",
          "title": "椒鹽雞塊(單點)",
          "categories": [
            {
              "id": "281",
              "title": "單品類(炸)"
            }
          ],
          "memo": "",
          "spec": "300G",
          "unit": "PCS",
          "barcode": "",
          "tax": 500,
          "tax_sign": "",
          "price": 80,
          "enable": true,
          "is_combo": false,
          "is_package": false,
          "is_combo_item": false,
          "is_stop_sale": false,
          "can_get_points": false,
          "can_redeemed": false,
          "spend_points": 0,
          "combo_price": 0,
          "origin": "",
          "element": "",
          "caloric": "",
          "img": "http://40.83.96.208:8080/kiosk/app/public/product00/5839-1-1550816490_s.png",
          "desciption": null,
          "special_price": null
        }
      ]
    }
  ]
}

Response Body Parameters

Name Type Description
projects Projects[] 預購專案資訊

Response Body Parameters - Projects

Name Type Description
id string 專案編號
name string 專案名稱
can_cancel bool 是否可取消
cancel_order_deadline string 取消訂單截止日期
start_time string 開始時間
end_time string 結束時間
pickup Pickup 取貨
image_url string 專案預購圖檔URL
image_s_url string 專案預購列表使用圖檔URL
description string 活動詳細說明
products Product 預購專案商品列表

Response Body Parameters - Pickup

Name Type Description
method Method 取貨方式
stores Store 取貨門市
start_time string 可取貨時間
end_time string 取貨截止時間

Response Body Parameters - Method

Name Type Description
id string 取貨方式編號
name string 取貨方式名稱

Response Body Parameters - Store

Name Type Description
id string 取貨門市編號
name string 取貨門市名稱

Response Body Parameters - Product

Name Type Description
id string 商品編號
title string 商品名稱
categories Category 商品類別
memo string 商品備註
spec string 規格
unit 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 描述
special_price string 特價

Response Body Parameters - Category

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