文档
测试

订单—查询

GET
/order/info

接口描述

查询订单信息

请求参数

参数名
类型
描述
必填
id
int
订单id
可选
ids
string
订单id(多个),JSON字符串
可选
company
int
订单所属商家id
可选
companys
string
订单所属商家id(多个),JSON字符串
可选
father
string
同companys
可选
orderCode
string
订单编号
可选
code
string
同orderCode
可选
wmcode
string
微盟订单号
可选
jwcode
string
佳为订单号
可选
ocode
string
如果传此参数,则查询ocode字段为null的订单信息(无关联订单号)
可选
ocodes
string
关联订单号,模糊查询
可选
replaced
int
订单标识,详见说明
可选
noReplaced
int
排除某标识
可选
flag
int
订单类型,0和99为订货单,2为退货单,8为子单,9为预售单,97为差异单,98为配差单,1为已删除
可选
flags
string
订单类型(多个),JSON字符串
可选
type
int
订单状态(多个),JSON字符串,详见说明
可选
untype
int
排除订单状态
可选
ctype
int
订单付款状态(多个),JSON字符串,0为未支付,1为部分支付,2为已支付
可选
otype
int
支付方式(多个),JSON字符串,0为未支付、1为预存款支付、2为微信支付、5为组合支付
可选
rtype
int
收货状态,0为待收货、1为已送达、2为已确认、3为未收到货
可选
sale
int
暂未使用
可选
express
string
配送方式,1为平台配送,2为上门自提
可选
pcontext
string
物流信息
可选
haspcontext
string
查询有物流信息的订单
可选
custom
string
下单客户编码
可选
cids
string
下单客户编码(多个),JSON字符串
可选
man
string
下单客户名称
可选
employee
int
所属员工id
可选
department
int
所属部门id
可选
border
int
关联订单id
可选
goodId
int
订单包含商品id
可选
like
string
订单编号或客户名称或手机号
可选
startTime
string
订单创建起始日期
可选
endTime
string
订单创建结束日期
可选
startUpTime
string
订单送达起始日期
可选
endUpTime
string
订单送达结束日期
可选
startFanTime
string
订单财务审核起始日期
可选
endFanTime
string
订单爱无审核结束日期
可选
diff
string
查询最新修改时间距离当前时间超过3天的订单
可选
sFlag
int
结算状态,0为待结算,1为结算中,2为已结算
可选
noPurchase
string
传值则排除退货单中的采购退货
可选
orderbystime
string
按订单提交时间/审核时间降序排序
可选
orderbytime
string
按订单送达时间降序排序
可选
orderByCreateTime
string
按订单创建时间降序排序
可选
orderByCustom
string
按客户编码排序
可选
start
int
分页起始
可选
len
int
分页长度
可选
last
string
按订单id降序排序
可选

响应参数

参数名
类型
描述
必填
DistributionFee
int
分销费,单位分
必填
address
string
订单收货信息
必填
agent
string
经办人
必填
attachment
string
附件,JSON字符串
必填
bdesc
string
订单备注
必填
bill
int
发票id,暂未使用
必填
billContext
string
发票内容
必填
billTitle
string
发票抬头
必填
billType
string
发票类型
必填
border
int
关联订单号
必填
cancel
string
订单作废原因
必填
ccontext
string
出入库清单,暂未使用
必填
company
int
所属商家id
必填
cost
int
金额,单位分
必填
create_time
string
订单创建时间
必填
creater
string
制单人
必填
ctype
int
支付状态
必填
custom
string
下单客户编码
必填
custom_type
string
下单客户类型
必填
depot
int
仓库id
必填
dmoney
int
待收款金额,单位分
必填
employee
int
员工id
必填
eprice
int
配送费用,单位分
必填
express
string
配送方式,1为平台配送,2为上门自提
必填
fanTime
string
财务审核时间
必填
flag
int
订单类型
必填
fman
string
财务审核人
必填
id
int
订单id
必填
identityNumber
string
纳税人识别号
必填
jwcode
string
佳为订单号
必填
linkman
string
联系人姓名
必填
log
string
发货单号记录
必填
man
string
下单客户名称
必填
mod_time
string
订单修改时间
必填
ocode
string
关联订单号
必填
ocontext
string
订单清单,JSON字符串
必填
odesc
string
暂未使用
必填
oman
string
订单审核人
必填
oprice
int
订单金额
必填
orderTime
string
订单审核时间
必填
order_code
string
订单编号
必填
otime
string
预计出入库时间
必填
otype
int
支付方式
必填
pay_log
string
订单支付记录
必填
pcontext
string
物流信息,JSON字符串
必填
phone
string
手机号
必填
platform_params
string
T+平台参数
必填
rate
int
暂未使用
必填
reject
string
驳回原因
必填
replaced
int
订单标识,详见说明
必填
rmoney
int
已收款金额,单位分
必填
sale
int
暂未使用
必填
sf
int
部门id
必填
size
int
订单商品总体积
必填
smoney
int
待审核金额,单位分
必填
sprice
int
订单特批价
必填
stime
string
提交/审核时间
必填
supplier
int
供货商id
必填
taxes
int
税费,单位分
必填
time
string
送达时间
必填
trip
int
行程
必填
type
int
订单状态,详见说明
必填
weight
int
订单商品总重量
必填
wmcode
string
微盟订单号
必填
zone
int
片区
必填
sFlag
int
结算状态,0为待结算,1为已结算
必填

说明 / 示例

replaced字段说明: 订单0为普通单、1为代客下单、3为秒杀单、4为拼团单、5为礼物单、6为补单; 退货单0为司机退货,1为自主退货,2为采购退货,3为订单退货 type字段说明: 订单0为待提交、2为待订单审核、3为待财务审核、4为待出库、5为待发货、6为待收货、7为已完成、-1为已作废; 退货单0为待提交、2为待退货审核、3为待财务审核、4为待入库、5为待付款、7为已完成、-1为已作废 排序规则参数不传,默认按照订单修改时间降序排序