POST Coupon/SyncDishOrder
扫码点餐同步订单信息
请求信息
请求URI参数
无
请求数据参数
订单同步信息
DishOrderInfo名称 | 说明 | 类型 | 扩展说明 |
---|---|---|---|
sp_mchid |
服务商商户号 如果为空则根据门店编号获取 |
字符串 |
无 |
sub_mchid |
子商户商户号 如果为空则根据门店编号获取 |
字符串 |
无 |
out_order_no |
订单号 |
字符串 |
无 |
out_shop_no |
商户旗下门店的唯一编号 |
字符串 |
无 |
sub_appid |
小程序ID |
字符串 |
必填 |
sub_openid |
用户标识 |
字符串 |
无 |
login_token |
微信用户登录接口返回的登录票据 公众号,填写页面授权access_token 小程序,填写session_key。 |
字符串 |
无 |
order_entry |
点餐入口,公众号:点餐页面完整URL 小程序:点餐页面path路径 |
字符串 |
无 |
total_amount |
总价,单位为分 |
整数 |
无 |
discount_amount |
优惠金额,单位为分 |
整数 |
无 |
user_amount |
实际支付金额,单位为分 |
整数 |
无 |
status |
订单状态,取值如下: CREATE_DEAL—用户下单; PAY_SUCCESS—支付完成,结账成功; |
字符串 |
无 |
action_time |
状态发生变化的时间,格式为rfc3339格式,如2018-06-08T10:34:56+08:00 |
字符串 |
无 |
pay_time |
支付时间(status为PAY_SUCCESS时必填),格式为rfc3339格式,如2018-06-08T10:34:56+08:00 |
字符串 |
无 |
transaction_id |
交易订单号(status为PAY_SUCCESS时必填) |
字符串 |
无 |
out_trade_no |
服务商系统内部支付订单号(status为PAY_SUCCESS时必填) |
字符串 |
无 |
dish_list |
菜品清单 |
Collection of DishInfo |
无 |
请求数据格式
application/json, text/json
例子:
{ "sp_mchid": "sample string 1", "sub_mchid": "sample string 2", "out_order_no": "sample string 3", "out_shop_no": "sample string 4", "sub_appid": "sample string 5", "sub_openid": "sample string 6", "login_token": "sample string 7", "order_entry": "sample string 8", "total_amount": 9, "discount_amount": 10, "user_amount": 11, "status": "sample string 12", "action_time": "sample string 13", "pay_time": "sample string 14", "transaction_id": "sample string 15", "out_trade_no": "sample string 16", "dish_list": [ { "out_dish_no": "sample string 1", "name": "sample string 2", "price": 3, "unit": "sample string 4", "count": 5.1, "discount": 6 }, { "out_dish_no": "sample string 1", "name": "sample string 2", "price": 3, "unit": "sample string 4", "count": 5.1, "discount": 6 } ] }
响应数据
资源说明
ResultInfoOfBoolean名称 | 说明 | 类型 | 扩展说明 |
---|---|---|---|
code | ResultCode |
无 |
|
msg | 字符串 |
无 |
|
data | 布尔 |
无 |
响应数据格式
application/json, text/json
例子:
{ "code": "SUCCESS", "msg": "sample string 1", "data": true }