- 开放平台对接说明
- 登录
- 路由管理
- 客户端管理
- 字典管理
- 菜单管理
- 省市区管理
- 客户管理
- 角色管理
- 系统版本管理
- 用户管理
- 常用功能管理
- 会员管理
- 基础管理
- 机构管理
- 餐次管理
- 机构餐次管理
- 支付方式
- 支付宝直连管理
- 聚合支付通道
- 支付宝小程序
- 微信小程序
- 微信直连
- 产品单位
- 产品分类
- 做法类别
- 做法档案
- 产品关联做法
- 菜谱管理
- 产品管理
- 餐盘管理
- 机构大厅
- 桌台档案
- 开台必点
- 厨房打印机定义
- 厨单管理
- 数据同步
- 机构设备
- 系统设置
- 导入导出日志
- 支付宝ISV第三方
- 微信服务商表
- 订单管理
- 文件管理
- 支付服务
- 手机验证码管理
- 服务商管理
- POS服务
- 业务日志管理
- 消息通知 管理
- 特殊餐管理
- 费控管理
- 餐券管理
- 人脸特征值
- AI需求相关接口
编辑产品
开发中
PUT
/base/bsProduct
机构
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
示例值:
1938227f-d47b-47d6-bfce-38729900cfba
TENANT-ID
string
可选
示例值:
1
Body 参数application/json
productId
number
主键
code
string
编码
name
string
名称
branchId
number
机构ID
englishName
string
英文名称
barcode
string
条码
multigraph
string
菜品图片
productCategoryId
number
出品小类
productCategoryCode
string
出品小类编码
mnemonicCode
string
助记码
unitArchivesName
string
产品单位
productType
integer
出品类型
price
number
价格
packingFee
number
外卖包装费
memberPrice1
number
会员价格1
memberPrice2
number
会员价格2
memberPrice3
number
会员价格3
privateRoomPrice1
number
包房价格1
privateRoomPrice2
number
包房价格2
privateRoomPrice3
number
包房价格3
privateRoomPrice4
number
包房价格4
discountsType
integer
参与折扣
minimumDiscountRate
number
折扣最低折率
costPrice
number
成本价
allowPackage
integer
是否套餐
packagePriceType
integer
套餐价型
numberStarting
integer
起点数量
allowTemporaryDish
integer
是否临时菜
allowEmenuDownload
integer
是否电子菜牌下载
allowPrintLabel
integer
是否打印标签
allowPriceChange
integer
是否允许改价
allowParticipationPoints
integer
是否允许参与积分
allowTakeOut
integer
是否参与外卖
allowWeigh
integer
是否称重
allowRealInputQuantity
integer
是否即时录入数量
allowRealEntryAttendant
integer
是否即时录入服务员
detailed
string
详细
enable
integer
是否启用
remarks
string
备注
packageList
array [object {14}]
必需
productPackageId
number
主键
productId
number
产品ID
productSpecId
number
套餐选中规格ID
originPrice
number
套餐原价
price
number
价格
num
integer
数量
amount
number
金额
selectIdentity
integer
选择标识
sort
integer
排序
allowAlternatives
integer
是否为替换项
alternativesId
number
被替换项ID
groupTag
string
分组
remarks
string
备注
children
array [object {14}]
必需
specList
array [object {15}]
必需
productSpecId
number
主键
unitArchivesName
string
产品单位
price
number
价格
memberPrice1
number
会员价格1
memberPrice2
number
会员价格2
memberPrice3
number
会员价格3
privateRoomPrice1
number
包房价格1
privateRoomPrice2
number
包房价格2
privateRoomPrice3
number
包房价格3
privateRoomPrice4
number
包房价格4
commissionMethod
integer
销售提成方式
commissionValue
number
销售提成值
costPrice
number
成本价
allowDefault
integer
是否默认
remarks
string
备注
示例
{
"productId": "1830890217413038081",
"code": "202406331990",
"name": "荤菜套餐",
"branchId": "1823902540268584961",
"branchName": null,
"englishName": "hctc",
"barcode": "965226611",
"multigraph": null,
"productCategoryId": "1825465968061874177",
"productCategoryCode": "001",
"mnemonicCode": null,
"unitArchivesName": "份",
"productType": 1,
"price": 36.00,
"packingFee": 2.00,
"memberPrice1": 36.00,
"memberPrice2": 36.00,
"memberPrice3": 36.00,
"privateRoomPrice1": 36.00,
"privateRoomPrice2": 36.00,
"privateRoomPrice3": 36.00,
"privateRoomPrice4": 36.00,
"discountsType": 1,
"minimumDiscountRate": 0.00,
"costPrice": 20.00,
"allowPackage": 1,
"packagePriceType": 1,
"numberStarting": 1,
"allowTemporaryDish": 1,
"allowEmenuDownload": 1,
"allowPrintLabel": 1,
"allowPriceChange": 1,
"allowParticipationPoints": 1,
"allowTakeOut": 1,
"allowWeigh": 1,
"allowRealInputQuantity": 1,
"allowRealEntryAttendant": 1,
"detailed": "non nostrud dolor velit",
"enable": 1,
"remarks": "in do consequat",
"createUserId": "1811607166327562241",
"createName": "苏康",
"createTime": "2024-09-03 16:46:59",
"updateUserId": null,
"updateName": null,
"updateTime": "2024-09-03 16:47:00",
"packageList": [
{
"productPackageId": "1830890217899577346",
"productId": "1830890217413038081",
"productSpecId": "1826105090438914050",
"productSpecName": null,
"productSpecUnitArchivesName": null,
"originPrice": 16.00,
"price": 16.00,
"num": 1,
"amount": 16,
"selectIdentity": 1,
"sort": 1,
"allowAlternatives": 0,
"alternativesId": "0",
"parentProductPackageId": null,
"groupTag": null,
"remarks": "套餐菜品1",
"createUserId": null,
"createName": null,
"createTime": "2024-09-03 16:46:59",
"updateUserId": null,
"updateName": null,
"updateTime": "2024-09-03 16:47:00",
"children": [
{
"productPackageId": "1830890218105098242",
"productId": "1830890217413038081",
"productSpecId": "1826132441243602946",
"productSpecName": null,
"productSpecUnitArchivesName": null,
"originPrice": 13.00,
"price": 13.00,
"num": 1,
"amount": 13,
"selectIdentity": 1,
"sort": 1,
"allowAlternatives": 1,
"alternativesId": "1830890217899577346",
"parentProductPackageId": "1826105090438914050",
"groupTag": null,
"remarks": "套餐菜品1替代品",
"createUserId": null,
"createName": null,
"createTime": "2024-09-03 16:46:59",
"updateUserId": null,
"updateName": null,
"updateTime": "2024-09-03 16:47:00",
"children": []
}
]
}
],
"specList": [
{
"productSpecId": "1830890217668890625",
"productId": "1830890217413038081",
"unitArchivesName": "份",
"price": 36.00,
"memberPrice1": 36.00,
"memberPrice2": 36.00,
"memberPrice3": 36.00,
"privateRoomPrice1": 36.00,
"privateRoomPrice2": 36.00,
"privateRoomPrice3": 36.00,
"privateRoomPrice4": 36.00,
"commissionMethod": 1,
"commissionValue": 0.00,
"costPrice": 20.00,
"allowDefault": 1,
"remarks": null,
"createUserId": null,
"createName": null,
"createTime": "2024-09-03 16:46:59",
"updateUserId": null,
"updateName": null,
"updateTime": "2024-09-03 16:47:00"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://devapi.maicanbao.com/base/bsProduct' \
--header 'Authorization: 1938227f-d47b-47d6-bfce-38729900cfba' \
--header 'TENANT-ID: 1' \
--header 'Content-Type: application/json' \
--data-raw '{
"productId": "1830890217413038081",
"code": "202406331990",
"name": "荤菜套餐",
"branchId": "1823902540268584961",
"branchName": null,
"englishName": "hctc",
"barcode": "965226611",
"multigraph": null,
"productCategoryId": "1825465968061874177",
"productCategoryCode": "001",
"mnemonicCode": null,
"unitArchivesName": "份",
"productType": 1,
"price": 36.00,
"packingFee": 2.00,
"memberPrice1": 36.00,
"memberPrice2": 36.00,
"memberPrice3": 36.00,
"privateRoomPrice1": 36.00,
"privateRoomPrice2": 36.00,
"privateRoomPrice3": 36.00,
"privateRoomPrice4": 36.00,
"discountsType": 1,
"minimumDiscountRate": 0.00,
"costPrice": 20.00,
"allowPackage": 1,
"packagePriceType": 1,
"numberStarting": 1,
"allowTemporaryDish": 1,
"allowEmenuDownload": 1,
"allowPrintLabel": 1,
"allowPriceChange": 1,
"allowParticipationPoints": 1,
"allowTakeOut": 1,
"allowWeigh": 1,
"allowRealInputQuantity": 1,
"allowRealEntryAttendant": 1,
"detailed": "non nostrud dolor velit",
"enable": 1,
"remarks": "in do consequat",
"createUserId": "1811607166327562241",
"createName": "苏康",
"createTime": "2024-09-03 16:46:59",
"updateUserId": null,
"updateName": null,
"updateTime": "2024-09-03 16:47:00",
"packageList": [
{
"productPackageId": "1830890217899577346",
"productId": "1830890217413038081",
"productSpecId": "1826105090438914050",
"productSpecName": null,
"productSpecUnitArchivesName": null,
"originPrice": 16.00,
"price": 16.00,
"num": 1,
"amount": 16,
"selectIdentity": 1,
"sort": 1,
"allowAlternatives": 0,
"alternativesId": "0",
"parentProductPackageId": null,
"groupTag": null,
"remarks": "套餐菜品1",
"createUserId": null,
"createName": null,
"createTime": "2024-09-03 16:46:59",
"updateUserId": null,
"updateName": null,
"updateTime": "2024-09-03 16:47:00",
"children": [
{
"productPackageId": "1830890218105098242",
"productId": "1830890217413038081",
"productSpecId": "1826132441243602946",
"productSpecName": null,
"productSpecUnitArchivesName": null,
"originPrice": 13.00,
"price": 13.00,
"num": 1,
"amount": 13,
"selectIdentity": 1,
"sort": 1,
"allowAlternatives": 1,
"alternativesId": "1830890217899577346",
"parentProductPackageId": "1826105090438914050",
"groupTag": null,
"remarks": "套餐菜品1替代品",
"createUserId": null,
"createName": null,
"createTime": "2024-09-03 16:46:59",
"updateUserId": null,
"updateName": null,
"updateTime": "2024-09-03 16:47:00",
"children": []
}
]
}
],
"specList": [
{
"productSpecId": "1830890217668890625",
"productId": "1830890217413038081",
"unitArchivesName": "份",
"price": 36.00,
"memberPrice1": 36.00,
"memberPrice2": 36.00,
"memberPrice3": 36.00,
"privateRoomPrice1": 36.00,
"privateRoomPrice2": 36.00,
"privateRoomPrice3": 36.00,
"privateRoomPrice4": 36.00,
"commissionMethod": 1,
"commissionValue": 0.00,
"costPrice": 20.00,
"allowDefault": 1,
"remarks": null,
"createUserId": null,
"createName": null,
"createTime": "2024-09-03 16:46:59",
"updateUserId": null,
"updateName": null,
"updateTime": "2024-09-03 16:47:00"
}
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
boolean
必需
ok
boolean
必需
示例
{
"code": 0,
"msg": null,
"data": true,
"ok": true
}