文档
测试

订单详情

POST
/order/omsDishOrder/one

请求参数

参数名
类型
描述
必填
billId
String
订单id 注意 非订单号!是订单id
必填

响应参数

参数名
类型
描述
必填
discounts
array
活动组【旧版描述】
必填
discountPrice
String
单类活动汇总价格
必填
discountName
String
活动名称
必填
msg
string
请求结果消息
必填
code
string
请求结果状态码
必填
data
object
返回结果业务对象
必填
bills
array
订单下商品流水
必填
orderlineId
string
商品流水编号
必填
parentSno
string
父节点编号【例如套餐下商品所属套餐流水编号】
必填
orderId
string
订单号
必填
storeId
string
商户编号
必填
branchId
string
门店编号
必填
dishType
string
商品明细类别 0-普通商品 1-套餐主记录 2-套餐明细主商品
必填
is_choose
string
套餐下商品选择类型:0 必选 1 自选'
必填
dishStatus
string
商品状态 -1 部分退款 -11 全部退款 0 已下单 111 已付款未付完 1 制作中 2 制作完成 3 已完成
必填
state
string
【预留】商品制作状态:0 未制作 1 制作 (未开屏显直接默认1-制作)
必填
addFoodCode
string
外部商品id
必填
dish_out_name
string
外部商品名称
必填
skuId
string
外部规格编号
必填
sku_name
string
外部规格名称
必填
addfoot_marks_wm
string
外部的加料信息 json格式
必填
orgPrice
string
售价的原价
必填
addPrice
string
加料加价
必填
price
string
实付商品单价
必填
shopownerPrice
string
店长折扣单价
必填
discount_id
string
活动折扣编号【活动相关】
必填
discountPrice
string
活动折扣单价【活动相关】 例如原价8元 优惠单价2元 实付单价6元
必填
discountName
string
活动折扣名称【活动相关】
必填
boxFee
string
打包费
必填
qty
string
购买数量
必填
discountAmount
string
折扣金额
必填
arAmount
string
实付金额
必填
float_amount
string
浮动金额 套餐下的子商品有这个
必填
amount
string
点单金额=(原价+加价)*数量
必填
returnAmount
string
退款金额
必填
returnQty
string
退款数量
必填
dishId
string
内部商品id(内部属性外卖需要映射)
必填
dishName
string
商品名称(内部属性外卖需要映射)
必填
productId
string
菜品编号(内部属性外卖需要映射)
必填
prodName
string
菜品名称 (内部属性外卖需要映射)
必填
dishClassType
string
商品分类名称 (内部属性外卖需要映射)
必填
standard
string
规格名称(内部属性外卖需要映射)
必填
standardId
string
规格编号 (内部属性外卖需要映射)
必填
dishUrl
string
商品图片 (内部属性外卖需要映射)
必填
dishClassId
string
商品分类id (内部属性外卖需要映射)
必填
bizId
string
商品短码
必填
unit
string
单位
必填
accounts
string
加料信息
必填
remark
string
备注
必填
finishTime
string
制作完成时间'
必填
confirmTime
string
下单时间
必填
updateDate
string
更新时间
必填
confirmUserId
string
下单员编号
必填
useLabelPrinter
string
使用标签打印机 0 不使用 1使用
必填
printInPos
string
是否POS打印 0 不使用 1使用
必填
isPackage
string
是否打包 0 不打包 1打包
必填
requirement
string
选择口味后,存储文本,用“,”隔开
必填
duration
string
时长/持续时间 未开启屏显则为0
必填
cost
string
成本
必填
costAmount
string
成本
必填
profitAmount
string
利润
必填
discounts
array
订单下活动优惠流水
必填
discountPrice
String
单类活动汇总价格
必填
discountName
String
活动名称
必填
pays
array
订单下支付流水
必填
infoType
string
流水类型:0.流入(支付) 1.流出(退款)
必填
payName
string
支付方式名称
必填
customerPaid
string
顾客实付 (详情显示支付价格)
必填
shouldReturnAmount
string
应退金额 (详情显示退款价格)
必填
accountId
string
支付流水编号
必填
billId
string
订单号
必填
storeId
string
商户编号
必填
branchId
string
门店编号
必填
billNo
string
订单编号【预留】
必填
daySeq
string
每个来源订单当前日序号
必填
extBranchNo
string
外部商户/门店编号
必填
extOrderNo
string
外部订单编号
必填
memberId
string
会员编号
必填
rsBillId
string
由离线时门店收银端产生的单号 使用UUID
必填
billType
string
订单类型 1-堂食 2外卖
必填
isAppointment
string
是否预约 0-不是 1-是
必填
bespeakTime
string
预约配送用餐时间 仅外卖使用
必填
fromType
string
订单来源 1-pc收银 2-安卓收银 3-饿了么 4-美团外卖 5-小程序
必填
billStatus
string
'订单状态 -2 订单被取消 -1 部分退款 -11 全部退款 -19 申請退款 0 创建订单待付款 111 部分付款 11 已付款大屏通知 12 叫号 21 外卖已付款 22 外卖已接单配送中 23拒绝配送 31 已付款订单完成 32已配送订单完成
必填
amount
string
总金额
必填
discount_type
string
折扣类型 1-打折 2-减价
必填
discountAmount
string
折扣金额,汇总明细折扣金额 【店长优惠】
必填
activityAmount
string
活动优惠金额 【活动优惠】
必填
arAmount
string
应收金额 (折后应该收多少)
必填
payAmount
string
支付金额 实际支付金额
必填
changAmount
string
找零
必填
luckAmount
string
红包金额
必填
roundAmount
string
自动抹零金额
必填
callNo
string
叫餐号 当天内不重复,随机产生3-4位数
必填
payType
string
【最后一次】支付类型:1.现金 2.扫呗支付宝 3.店长余额 4.美团团购 5.会员 6.自定义支付 7.组合支付 8.美团支付 9.饿了吗 10.企迈 21.扫呗微信
必填
payId
string
【最后一次】自定义支付方式编号【payType为6.自定义支付是生效】
必填
payTime
string
【最后一次】支付时间
必填
wmDispatchAmount
string
【外卖】配送费
必填
wmAddress
string
【外卖】交货地址,默认门店地址
必填
contact
string
联系人
必填
telephone
string
联系电话
必填
virtualPhone
string
虚拟手机号
必填
returnBillNo
string
退款单号
必填
returnAmount
string
退款总金额
必填
returnUser
string
退单操作人名称
必填
refuseReason
string
拒单理由(商家维度)
必填
returnReason
string
退单原因(用户维度)
必填
applyRefundType
string
申请退款类型 0-未申请 -1 部分退款 -11 全部退款
必填
dispatchType
string
配送方式 0-无需配送 1-美团配送 2-饿了么配送 5-自行配送
必填
dispatchFee
string
配送费
必填
tableNumber
string
桌号
必填
personNumber
string
人数
必填
menuid
string
菜谱编号
必填
billDate
string
订单入库时间 示例:2021-10-18 22:08:44
必填
returnDate
string
退单时间
必填
complateDate
string
完成时间
必填
createBy
string
下单员 示例:李耀东
必填
createId
string
下单员编号 示例:1399975926543745024
必填
createDate
string
下单时间
必填
remark
string
备注
必填

返回示例

```json { "code": 200, "msg": null, "data": { "payTime": "2021-10-19 19:36:35", "discountAmount": "0.00", "canRefund": "1", "tableNumber": "", "daySeq": "0", "payAmount": "0.02", "extOrderNo": "D616EADC37A99D5722", "contact": "", "isAppointment": "0", "billNo": "20211019193654404", "arAmount": "0.02", "returnAmount": "0.00", "memberId": "0", "branchId": "1407264976637620224", "activityAmount": "0.00", "dispatchFee": "1.00", "wmDispatchAmount": "", "telephone": "18218368055", "billDate": "2021-10-19 19:36:54", "returnUser": "", "createId": "0", "billId": "1450425722062503936", "cardId": "", "changAmount": "0.00", "payId": "0", "applyRefundType": "", "roundAmount": "0.00", "wmAddress": "", "dispatchType": "0", "extBranchNo": "5E098C", "callNo": "3654", "returnBillNo": "", "remark": "", "virtualPhone": "", "personNumber": "0", "serialVersionUID": "1", "returnDate": "", "fromType": "5", "returnReason": "", "billStatus": "11", "luckAmount": "0.00", "bills": [ { "standard": "", "orderId": "1450425722062503936", "discountAmount": "0.00", "parentSno": "0", "confirmUserId": "", "dishStatus": "3", "price": "0.01", "shopownerPrice": "0.00", "prodName": "雪碧", "bizId": "", "sku_name": "", "state": "0", "skuId": "", "arAmount": "0.01", "returnAmount": "0.00", "branchId": "1407264976637620224", "finishTime": "null", "dishClassType": "饮料/汽水", "productId": "0", "returnQty": "0", "float_amount": "0", "addFoodCode": "655708189777461249", "costAmount": "0.00", "addPrice": "0.00", "confirmTime": "2021-10-19 19:36:55", "unit": "", "boxFee": "0", "qty": "1", "dishName": "雪碧", "useLabelPrinter": "1", "orderlineId": "1450425722716815360", "updateDate": "2021-10-19 19:37:48", "profitAmount": "0.00", "discountPrice": "0.00", "standardId": "0", "is_choose": "0", "remark": "", "orgPrice": "0.01", "printInPos": "1", "duration": "", "serialVersionUID": "1", "discountName": "", "dishUrl": "", "dish_out_name": "雪碧", "discount_id": "0", "amount": "0.01", "cost": "", "isPackage": "1", "requirement": "", "storeId": "1407257140276850688", "refundQuantity": "0", "addfoot_marks_wm": "", "dishType": "0", "dishId": "1417672212729049088", "accounts": "[]", "dishClassId": "1407258089422680065" }, { "standard": "", "orderId": "1450425722062503936", "discountAmount": "0.00", "parentSno": "0", "confirmUserId": "", "dishStatus": "3", "price": "0.01", "shopownerPrice": "0.00", "prodName": "乐事", "bizId": "", "sku_name": "", "state": "0", "skuId": "", "arAmount": "0.01", "returnAmount": "0.00", "branchId": "1407264976637620224", "finishTime": "null", "dishClassType": "饮料/奶茶", "productId": "0", "returnQty": "0", "float_amount": "0", "addFoodCode": "655065371060998144", "costAmount": "0.00", "addPrice": "0.00", "confirmTime": "2021-10-19 19:36:55", "unit": "", "boxFee": "0", "qty": "1", "dishName": "乐事", "useLabelPrinter": "1", "orderlineId": "1450425722716815361", "updateDate": "2021-10-19 19:37:48", "profitAmount": "0.00", "discountPrice": "0.00", "standardId": "0", "is_choose": "0", "remark": "", "orgPrice": "0.01", "printInPos": "1", "duration": "", "serialVersionUID": "1", "discountName": "", "dishUrl": "", "dish_out_name": "乐事", "discount_id": "0", "amount": "0.01", "cost": "", "isPackage": "1", "requirement": "", "storeId": "1407257140276850688", "refundQuantity": "0", "addfoot_marks_wm": "", "dishType": "0", "dishId": "1427093916117446656", "accounts": "[]", "dishClassId": "1407258115553193984" } ], "createDate": "2021-10-19 19:36:54", "amount": "0.02", "billType": "1", "storeId": "1407257140276850688", "discount_type": "0", "complateDate": "", "rsBillId": "", "payTypeName": "现金", "bespeakTime": "2021-10-19 19:36:54", "createBy": "自助点单机器人", "menuid": "", "refuseReason": "", "pays": [ { "customerPaid": "-0.98", "infoType": "0", "shouldReturnAmount": "0.00", "payName": "现金" } ] } } ```