文档
测试

订单列表

POST
https://www.duofer.com/f/order/list

接口描述

获取订单列表

请求头

参数名
类型
描述
必填
platform
string
客户端平台
必填

请求参数

参数名
类型
描述
必填
page
int
第几页,必填
必填
limit
int
限制返回数据条数,必填
必填
shopid
string
店铺ID,必填
必填
starttime
int
开始时间(时间戳),可选
必填
endtime
int
结束时间(时间戳),可选
必填

响应参数

参数名
类型
描述
必填
res
bool
请求是否成功
必填
msg
string
请求错误提示,一般需提示前端
必填
err
int
错误码,前端可根据它来识别是哪种错误
必填
more
bool
是否还有下一页
必填
data
array[map]
元素是map,含如下字段
必填
orderid
string
订单ID
必填
userid
string
用户ID
必填
shopid
string
店铺ID
必填
total
int
订单金额
必填
remark
string
商家备注
必填
paid
int
支付金额
必填
deal_time
int
下单时刻(时间戳)
必填
pay_time
int
支付时刻(时间戳)
必填
pay_from
string
支付来源
必填
is_paid
int
是否已支付
必填
goods
array[map]
商品信息,见https://trello.com/c/Neq6e19G/29-%E5%BA%97%E9%93%BA%E7%9B%B8%E5%85%B3%E6%8E%A5%E5%8F%A3
必填
desk
string
桌号标识
必填
printed
int
是否打印过
必填

说明 / 示例

**所有的请求报文头部必带如下字段** - `platform (string)` 表示平台,如微信、支付宝 注: 目前仅支持微信平台,所以`platform`字段应该是`[wx]+[版本号]`,如`platform : wx7.0.4`。 ------------------------------------------------------------------ **所有的响应报文必带的三个字段** - `res (bool)` 成功/失败 - `msg (string)` 提示信息 - `err (int)` 错误码,成功的码是`10000` 下面接口的响应数据默认已带如上两个字段。部分接口可能会附带一些额外的数据,都以json的格式组织。 成功的请求一般不进行提示,失败的请求需要根据`msg`提示用户。 ------------------------------------------------------------------