1.2确认订单

优质
小牛编辑
125浏览
2023-12-01

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称do_confirmstring
getGET参数组,本组参数需要参与签名object
└id订单号47302320number
└state状态(2->下单成功,-1->下单失败 ,6->订单已配送,10->订单已完成(6,10只针对外卖订单))2number
└bzid业务单号12345677number
└table桌台号47302320number
postPOST参数组object
└info如果下单失败,请提交错误说明,注意用utf-8编码线下软件异常string
└hint如果有提醒消息,可以提交消息内容,如部分菜品估清未能下单。注意utf-8菜品估清string
└rider_phone骑手手机(外卖订单状态6时有效)156000000001string
└rider_name骑手姓名(外卖订单状态6时有效)张三number
└package_num外卖配送打包号(外卖订单状态6时有效)1number

请求示例

{
	"action": {
		"action": "do_confirm"
	},
	"get": {
		"id": "47302320",
		"state": "2",
		"bzid": "12345677",
		"table": "47302320"
	},
	"post": {
		"info": "线下软件异常",
		"hint": "菜品估清",
		"rider_phone": "张三",
		"rider_name": "156000000001",
		"package_num": "1"
	}
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
info错误时会返回相应的错误信息提交成功2string
msid10021number

响应示例

{
  "status": "1",
  "info": "提交成功2",
  "server_timestamp": 1567480027,
  "server_time": "2019-09-03 11:07:07",
  "server_name": "api-105.hz",
  "msid": "10021"
}