- App/H5对接流程:
- API开放接口对接流程
- 小程序对接流程v1.1
- 数据推送说明
- 基础信息
- 电影票接口
- 卡券接口
- 点餐接口
订单详情
GET
/api/kfc/order_detail
Kfc
请求参数
Query 参数
id
string
订单ID
返回响应
🟢200Success
application/json
Body
code
integer <int32>
code
message
string | null
message
data
object (KfcOrderChannelDto)
可选
id
string <uuid>
可选
epUserId
string <uuid>
归属企业用户id
epParentId
string <uuid>
归属企业用户父id
userId
string <uuid>
用户ID
shopId
string <uuid>
店铺ID
shopCode
string | null
店铺code
shopName
string | null
店铺
cityId
integer <int32>
城市id
cityName
string | null
城市名称
platformCityId
string | null
平台城市id
orderName
string | null
订单名称
eatType
enum<integer> <int32>
可选
1:takeout,打包;
2:delivery,外卖; 目前外卖产品api对接的方式正在开发当中,上线后另行通知
枚举值:
012
eatTypeName
string | null
只读可选
orderSign
string | null
订单签名
userMobile
string | null
用户手机
userName
string | null
用户姓名
avatarUrl
string | null
用户头像
productsInfo
string | null
可选
refundProducts
array[object (KfcOrderProduct) {19}] | null
可选
remark
string | null
备注
originPrice
number <double>
订单原价(市场价)
totalDistributionPrice
number <double>
可选
epParentCommission
number <double>
可选
epCommission
number <double>
本订单佣金
refundAmount
number <double>
退款金额
refundTime
string <date-time> | null
退款时间
imageUrl
string | null
图片地址
info
string | null
订单说明
totalUserPrice
number <double>
可选
epCostPrice
number
必需
costMode
string
必需
orderState
enum<integer> <int32>
可选
1:Paid,订单已付;
2:WaitCode,等待出码;
3:Success,订单成功;
4:Failed,订单失败;
5:Canceled,订单取消;
6:Refunded,订单退款;
7:NopayCancel,未付取消;
8:PartRefunded,部分退款;
9:Locked,订单锁定;
10:WaitCustomer,客服处理中;
11:WaitDelivery,等待配送;
12:Deliverying,配送中;
13:WaitKfc,正在出餐;
枚举值:
012345678910111213
orderStateName
string | null
订单状态
createTime
string <date-time>
创建时间
updateTime
string <date-time> | null
更新时间
paidTime
string <date-time> | null
支付时间
successTime
string <date-time> | null
订单成功时间
platformOrderId
string | null
平台订单ID
codes
string | null
可选
qrCodes
string | null
可选
payType
integer <int32>
支付方式
isChannelPay
boolean
是否渠道收款
orderPayId
string | null
外部平台支付凭证号
payTranId
string | null
外部平台支付流水号
orderCustomId
string | null
数字格式订单号
appId
string | null
所属APPId
payAppId
string | null
支付APPId
count
integer <int32>
可选
address
string | null
门店地址
lat
number <double>
Lat
lon
number <double>
Lon
recAddress
string | null
外卖配送地址
pushUrl
string | null
可选
entPara
string | null
可选
entUserId
string | null
可选
payUrl
string | null
可选
epUserName
string | null
可选
mealTime
integer <int32>
可选
tableWare
boolean
是否需要餐具
offsetPrice
number <double>
可选
waitTime
integer <int32> | null
等待时间(分钟)
queueSize
integer <int32> | null
等待单数
supplierId
string <uuid> | null
供应商Id
biddingEndTime
string <date-time> | null
竞价截止时间
biddingCount
integer <int32>
竞价次数
orderType
enum<integer> <int32>
可选
1:Kfc,肯德基;
2:MDL,麦当劳;
4:XBK,星巴克;
8:NXDC,奈雪的茶;
16:RXKF,瑞幸咖啡;
32:XC,喜茶;
64:KD,库迪;
枚举值:
1248163264128
orderTypeName
string | null
订单类型
mode
integer <int32>
可选
supplierRemark
string | null
供应商备注
supplierName
string | null
昵称
supplierAvatarUrl
string | null
头像地址
makeMealSeconds
integer
可选
deliveryPrice
number <double>
可选
courierLocationH5
string
可选
recAddr
object (RecAddr)
外卖订单收货地址
示例
{
"code": 0,
"message": "string",
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"epUserId": "f6922f56-2635-4dc5-9821-536548cc4172",
"epParentId": "c45a9505-bd3e-4c6a-becf-eae1056d362d",
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"shopId": "70542939-296f-4335-b0b1-f4e5a2513ef7",
"shopCode": "string",
"shopName": "string",
"cityId": 0,
"cityName": "string",
"platformCityId": "string",
"orderName": "string",
"eatType": 0,
"eatTypeName": "string",
"orderSign": "string",
"userMobile": "string",
"userName": "string",
"avatarUrl": "string",
"productsInfo": "string",
"refundProducts": [
{
"pId": "string",
"productId": "string",
"linkId": "string",
"quantity": 0,
"nameCn": "string",
"imageUrl": "string",
"selPrice": 0,
"orgPrice": 0,
"settlePrice": 0,
"channelPrice": 0,
"ChannelCostMode": 0,
"hasRefund": true,
"refundAmount": 0,
"refundCount": 0,
"selected": [
{
"round": 0,
"products": [
{
"productId": "string",
"linkId": "string",
"quantity": 0
}
]
}
],
"orderId": "string",
"orderSn": "string",
"spec": "string",
"index": 0
}
],
"remark": "string",
"originPrice": 0,
"totalDistributionPrice": 0,
"epParentCommission": 0,
"epCommission": 0,
"refundAmount": 0,
"refundTime": "2019-08-24T14:15:22Z",
"imageUrl": "string",
"info": "string",
"totalUserPrice": 0,
"epCostPrice": 0,
"costMode": "string",
"orderState": 0,
"orderStateName": "string",
"createTime": "2019-08-24T14:15:22Z",
"updateTime": "2019-08-24T14:15:22Z",
"paidTime": "2019-08-24T14:15:22Z",
"successTime": "2019-08-24T14:15:22Z",
"platformOrderId": "string",
"codes": "string",
"qrCodes": "string",
"payType": 0,
"isChannelPay": true,
"orderPayId": "string",
"payTranId": "string",
"orderCustomId": "string",
"appId": "string",
"payAppId": "string",
"count": 0,
"address": "string",
"lat": 0,
"lon": 0,
"recAddress": "string",
"pushUrl": "string",
"entPara": "string",
"entUserId": "string",
"payUrl": "string",
"epUserName": "string",
"mealTime": 0,
"tableWare": true,
"offsetPrice": 0,
"waitTime": 0,
"queueSize": 0,
"supplierId": "e01eb4c4-8eb9-4fb7-b625-61f58c6148db",
"biddingEndTime": "2019-08-24T14:15:22Z",
"biddingCount": 0,
"orderType": 1,
"orderTypeName": "string",
"mode": 0,
"supplierRemark": "string",
"supplierName": "string",
"supplierAvatarUrl": "string",
"makeMealSeconds": 0,
"deliveryPrice": 0,
"courierLocationH5": "string",
"recAddr": {
"orderId": "string",
"userId": "string",
"contact": "string",
"gender": "string",
"phone": "string",
"addr": "string",
"number": "string",
"lat": 0,
"lon": 0,
"createTime": "string",
"id": "string"
}
}
}
修改于 2024-12-17 03:00:09