改变桌台状态接口
POST
http://xxxxx/pos/table/state/change
接口描述
旧的接口:http://xxxxx /ss_wx/open_table
请求头
参数名
类型
描述
必填
content-type
str
application/json
必填
请求参数
参数名
类型
描述
必填
user_id
str
登录账户id
必填
pos_group_id
str
用户组id
必填
token
str
用户登录token
必填
table_id
int
桌台id
必填
table_state
int
桌台状态 {1:空闲,2:开台, 3:下单, 4:结账}
必填
order_id
str
当table_state=3的时候需要传
必填
order_timestamp
str
当table_state=3的时候需要传
必填
响应参数
参数名
类型
描述
必填
flag
Boolean
访问状态true / false
必填
msg
str
访问日志
必填
TokenTrue
boolen
验证登录token是否有效
必填
lock_state
boolena
锁定状态
必填
update_timestamp
boolean
订单是否已经被更新了
必填
origin_reference
str
原订单号
必填
table_name
str
桌台名称
必填