Skip to content

Get Sale Method

Description

取得銷售方式。

Resource

GET /v1/sale_method

Authorization

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

Query Parameters

Name Type Description
store_id string 門市代碼
client_device string
(enum)
客戶端裝置
ALLOWED VALUES:
  • APP
  • KIOSK
(option)
language string
(enum)
語系
ALLOWED VALUES:
  • TRADITIONAL_CHINESE: 繁體中文
  • JAPANESE: 日語
  • KOREAN: 韓語
  • ENGLISH: 英語
  • FRENCH: 法語
(option)

Request Example

GET /v1/sale_method?store_id=A001

Response

{
  "sale_methods": [
    {
      "id": "1",
      "name": "內用",
      "has_address": false,
      "type": "DINE_IN",
      "translate_name": "Dine-in"
    },
    {
      "id": "2",
      "name": "外帶",
      "has_address": false,
      "type": "PICK_UP",
      "translate_name": "Takeout",
    },
    {
      "id": "3",
      "name": "外送",
      "has_address": true,
      "type": "DELIVERY",
      "translate_name": "Delivery"
    }
  ]
}

Response Body Parameters

Name Type Description
sale_methods Sale Method[] 銷售方式列表

Response Body Parameters - Sale Method

Name Type Description
id string 編號
name string 名稱
has_address boolean 是否需填寫地址
type string
(enum)
銷售方式
ALLOWED VALUES:
  • DINE_IN
  • PICK_UP
  • DELIVERY
translate_name string
(enum)
翻譯名稱