7.1获取预订单详情

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

对接API接口,自行实现MQTT对接模式下,下行接口收到bk-new推送时(下行接口说明见0.5),根据推送的预订音id调用本接口来获取预订单详情。

DLL接口已封装,无需直接调用本接口。

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称bk_get_bookstring
getGET参数组,本组参数需要参与签名object
└id预订单id8601458771number

请求示例

{
	"action": {
		"action": "bk_get_book"
	},
	"get": {
		"id": "8601458771"
	}
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
id预订单id8601458771number
time预订单下单时间2019-03-27 11:09:02string
date预订日期2019-03-27string
shift预订时间18:30string
subject类型小桌(1-4)人string
tables桌数1number
state预订单状态0=未确认,1=已确认0number
store预订门店string
name姓名张三丰string
title称呼先生string
phone电话13546422891number
memo备注string
deposit订金100.00number
payid支付流水号(有预订金时)string
doidstring

响应示例

{
	"status": "1",
	"id": "8601458771",
	"time": "2019-03-27 11:09:02",
	"date": "2019-03-27",
	"shift": "18:30",
	"subject": "小桌(1-4)人",
	"tables": "1",
	"state": "0",
	"store": "",
	"name": "张三丰",
	"title": "先生",
	"phone": "13546422891",
	"memo": "",
	"type": "0",
	"date2": "",
	"deposit": "100.00",
	"payid": "",
	"doid": ""
}