Skip to content

Update Menu Item

Description

更新菜單項目。

Resource

PATCH /manager/v1/product/menu_item

Authorization

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

Request Body Parameters

Name Type Description
company_id string 公司編號
shop_id string 門市編號
insert_product_ids list[string] 新增商品編號
delete_product_ids list[string] 刪除商品編號
insert_combos Combo 要新增的套餐資料
delete_combos Combo 要刪除的套餐資料
insert_packs Pack 要新增的系列組合資料
delete_packs Pack 要刪除的系列組合資料

Request Body Parameters - Combo

Name Type Description
combo_id string 套餐商品編號
product_ids list[string] 套餐子項商品編號

Request Body Parameters - Pack

Name Type Description
pack_id string 系列組合商品編號
product_ids list[string] 系列組合子項商品編號

Request Example

{
  "company_id": "18090377",
  "shop_id": "000030",
  "insert_product_ids": [
    "UC00000001",
    "UC00000002"
  ],
  "delete_product_ids": [
    "UC00000015"
  ],
  "insert_combos": [
    {
      "combo_id": "Zy002",
      "product_ids": [
        "KU008"
      ]
    }
  ],
  "delete_combos": [],
  "insert_packs": [],
  "delete_packs": [
    {
      "pack_id": "UC10000036",
      "product_ids": [
        "UC04200001"
      ]
    }
  ]
}

Response Example

Status-Code: 204 NO CONTENT