查询桌台信息
POST
/open/v1/table/fetchTables(下行接口)合作方调用该接口可查询客如云商户后台所有的或指定的桌台信息
请求参数
Body 参数application/json
ids
array[integer]
必需
桌台ID;不传值时默认查询已有的所有桌台
示例
{
"enabledTS": "true",
"enabledWM": "true"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
错误码;0:成功;其他详见错误码
message
string
错误说明
messageUuid
string
消息uuid
result
$ref(#/definitions/2356382)[]
可选
返回响应数据,json对象或数组,可空
#/definitions/2356382
可选
示例
{
"result": [
{
"tableID": "201725075570586624",
"tableNum": "105001",
"tableName": "桌台1",
"commercialId": 810094162,
"tableType": 1,
"tableArea": {
"areaCode": "105",
"areaName": "包厢区",
"id": 201724816828167170,
"floor": 3
},
"tablePersonCount": 18,
"minConsum": 0,
"canBooking": 0,
"isSmoke": null,
"floorId": null,
"sort": 1000,
"status": 0,
"tableStatus": 0,
"memo": null,
"modifyDateTime": 1567059254000,
"synFlag": "c054642f60a94183b3bf638eb8ead775"
},
{
"tableID": "201725075918713856",
"tableNum": "105002",
"tableName": "桌台2",
"commercialId": 810094162,
"tableType": 1,
"tableArea": {
"areaCode": "105",
"areaName": "包厢区",
"id": 201724816828167170,
"floor": 3
},
"tablePersonCount": 18,
"minConsum": 0,
"canBooking": 0,
"isSmoke": null,
"floorId": null,
"sort": 1000,
"status": 0,
"tableStatus": 0,
"memo": null,
"modifyDateTime": 1567059254000,
"synFlag": "5873f300be484368ab01045f5a6fb562"
}
],
"code": 0,
"message": "成功[OK]",
"messageUuid": "cfd7d95cf5e94f03b94fe36083cd935c",
"apiMessage": null
}
修改于 3 年前