• 开发者平台
  • >
  • 餐饮文档中心

查询桌台信息收费

(下行接口)合作方调用该接口可查询客如云商户后台所有的或指定的桌台信息

授权方式:门店授权

请求描述

HTTP请求方式:POST
HTTP请求头类型:Content-Type=application/json
URI:  /open/v1/table/fetchTables

请求参数

1.公共参数

详情可查看【公共说明】中的公共参数模块

2.业务参数

参数名 类型 是否必填 参数描述
ids List<Long> 桌台ID;不传值时默认查询已有的所有桌台

业务示例(JSON)

{
   "ids":[37846171577807872,37846171565224960]
}

响应参数

参数名 类型 是否必填 参数描述
code Int 返回编码,详见错误码
message String 返回信息
messageUuid String 消息uuid
result List<OpenTableInfoVo> 返回响应数据,json对象或数组,可空

OpenTableInfoVo

参数名 类型 是否必填 参数描述
canBooking Integer 是否可预定,0.可预订,1.不可预订
commercialId Long 门店号ID
floorId Integer 楼层ID
isSmoke Integer 是否是吸烟区0,吸烟,1,不吸烟
memo String 备注
minConsum BigDecimal 最低消费金额,单位:元
modifyDateTime Date 更新时间
sort Integer 排序
status Integer 桌台状态;0:可用,-1:不可用,1:未生效
tableArea Area 区域信息
tableID String 桌台ID
tableName String 桌台名称,同一区域不可重复
tableNum String 桌台编号
tablePersonCount Integer 桌台人数
tableStatus Integer 桌台的状态,0空闲,1就餐,2待清台,3锁定中
tableType Integer 桌台类型,0: 大厅,1: 包厢,2: 卡座,3: 露台,4: 其他
synFlag String 桌台uuid

Area

参数名 类型 是否必填 参数描述
areaCode String 区域编码
areaName String 区域名称编码
id String 区域id
floor Integer 楼层

响应示例(JSON)

{
    "result": [
        {
            "tableID": "201725075570586624",
            "tableNum": "105001",
            "tableName": "桌台1",
            "commercialId": 810094162,
            "tableType": 1,
            "tableArea": {
                "areaCode": "105",
                "areaName": "包厢区",
                "id": 201724816828167168,
                "floor": 3
            },
            "tablePersonCount": 18,
            "minConsum": 0.00,
            "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": 201724816828167168,
                "floor": 3
            },
            "tablePersonCount": 18,
            "minConsum": 0.00,
            "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
}
目录