跳到主要内容

10.1 订单搜索接口(haowhoo.trade.sold.search)

10.1.1 请求参数​

字段名变量名必填类型示例说明
接口类型p1_bizType是String(32)haowhoo.trade.sold.searchAPI接口类型
商户编号p2_tenantCode是String(20)1828400000199商户号,即策AI平台分配
产品编号p3_productCode是String(20)1001产品号,即策AI平台分配
时间戳p4_timestamp是long1574674560993时间戳:1574674560993,北京时间10分钟以内
查询数据p5_data是String(Max)…JSON字符串,不参与加密(此接口无参数)
签名sign是String(200)…MD5WITHRSA签名

p5_data格式如下:

字段名变量名必填类型示例说明
订单编号orderNo否String(20)OR640794279955即策AI平台订单编号
发货超时toSendTimeOut否Booleanfalse即策AI平台发货是否超时
物流单号mailNo否String(20)SF1794279955即策AI平台物流单号
买家姓名buyerName否String(20)张三即策AI平台买家姓名
买家手机号buyerPhone否String(20)13942792955即策AI平台买家手机号
买家手机号后四位buyerPhoneLast4否String(20)9955即策AI平台买家手机号后四位
收货人姓名consigneeName否String(20)张三即策AI平台收货人姓名
收货人手机号consigneePhone否String(20)13942792955即策AI平台收货人手机号
收货人手机号后四位consigneePhoneLast4否String(20)9955即策AI平台收货人手机号后四位
订单更新开始时间fromUpdateTime否String(20)2021-07-22 22:00:00即策AI平台订单更新开始时间,格式:yyyy-MM-dd HH:mm:ss
订单更新结束时间toUpdateTime否String(20)2021-07-22 22:00:00即策AI平台订单更新结束时间,格式:yyyy-MM-dd HH:mm:ss
下单开始时间fromCreateTime否String(20)2021-07-22 22:00:00即策AI平台下单开始时间,格式:yyyy-MM-dd HH:mm:ss
下单结束时间toCreateTime否String(20)2021-07-22 22:00:00即策AI平台下单结束时间,格式:yyyy-MM-dd HH:mm:ss
商品名称goodsNames否String(20)月饼即策AI平台商品名称
订单类型orderType否String(20)normal即策AI平台【订单类型】 normal:普通订单
售后状态rightStatus否String(20)sellerRefund即策AI平台售后状态:sellerRefund-卖家主动退款,sellerTodo-卖家处理中,buyerTodo-等待买家退货,confirmRefund-等待卖家退款,refunding-退款处理中,sellerReject-卖家拒绝,platformEntering-平台介入,platformClosed-平台结束,buyerClosed-买家撤销,feedbackClosed-退款成功,buyerExchange-等待买家邮寄,confirmExchange-等待卖家发货,sendExchange-商家已发货,exchangeClosed-换货成功
订单状态orderStatus否String(20)topay即策AI平台订单状态:topay-待付款,confirmAddress-确认地址,tosend-待发货,send-已发货,confirm-确认收货,success-完成,cancel-关闭,refundCancel-退款关闭(预售订单状态:topay-待付定金,tobalancepay-待付尾款,waitbalancepay-等待尾款可付)
配送方式shoppingType否String(20)delivery即策AI平台配送方式:delivery-物流发货,noDelivery-无需发货,pickUp-上门自提,localTown-同城配送
付款方式payType否String(20)purchase即策AI平台付款方式:purchase-购买支付
支付渠道payChannel否String(20)wxpay即策AI平台支付渠道:wxpay-微信支付,alipay-支付宝支付,remit-对公转账
排序sort否String(20)creaTime即策AI平台排序:creaTime,updateTime
是否倒叙desc否Booleanfalse即策AI平台是否倒叙
页码page否Integer(8)1默认为1
每页大小rows否Integer(8)10默认为10

10.1.2 响应参数​

字段名变量名必填类型示例说明
接口类型rt1_bizType是String(32)haowa.hotel.searchAPI接口类型
商户编号rt2_tenantCode是String(20)1828400000199商户号
返回码rt3_retCode否String(20)0000详情见附录-返回码
返回信息rt4_retMsg是String(200)成功
返回结果rt5_data否String(Max)…JSON字符串,详见示例
签名sign是String(200)…MD5WITHRSA签名

rt5_data格式如下:

字段名变量名类型示例说明
订单编号orderNoString(20)OR640794279955即策AI平台订单编号
下单时间orderTimeDate2021-07-22 22:00:00即策AI平台下单时间
订单状态orderStatusStringtopay即策AI平台订单状态
订单状态描述orderStatusDescString代付款即策AI平台订单状态描述
订单金额orderAmountLong10000订单金额,只包含价格合计
运费金额deliveryAmountLong0即策AI平台运费金额
原始运费deliveryAmountOriginalLong0即策AI平台原始运费
订单优惠后金额orderDiscountAmountLong0订单优惠后金额:订单金额-优惠金额(优惠劵,积分,营销活动),不包含手工减价和运费
实付金额realAmountLong0即策AI平台实付金额
积分抵扣金额pointAmountLong0即策AI平台积分抵扣金额
支付时间payTimeDate2021-07-22 22:00:00即策AI平台支付时间
订单更新时间updateTimeDate2021-07-22 22:00:00即策AI平台订单更新时间
订单完成时间successTimeDate2021-07-22 22:00:00即策AI平台订单完成时间
付款方式payTypeStringwxpay付款方式:purchase-购买支付、银行卡、优惠兑换、赠品、找人代付
付款方式描述payTypeDescString微信付款方式:微信、支付宝、银行卡、优惠兑换、赠品、找人代付
支付渠道payChannelStringwxpay支付渠道:wxpay-微信支付,alipay-支付宝支付,remit-对公转账
支付渠道描述payChannelDescString微信支付渠道描述:微信支付,支付宝支付,对公转账
订单类型orderTypeStringnormal订单类型:normal-普通订单,presale-预售订单
订单类型描述orderTypeDescString普通订单订单类型:普通订单、预售订单
手工减价金额manualDiscountAmountLong0手工减价金额
用户昵称nickNameString张三三即策AI平台用户昵称
用户名称userNameString张三即策AI平台用户名称
用户手机号userPhoneString13942792955即策AI平台用户手机号
收货人姓名consigneeString张三即策AI平台收货人姓名
收货人手机号consigneePhoneString13942792955即策AI平台收货人手机号
收货人省份provinceNameString浙江省即策AI平台收货人收货人省份
收货人城市cityNameString杭州市即策AI平台收货人收货人城市
收货人区县areaNameString拱墅区即策AI平台收货人收货人区县
收货人详细地址addressStringxx街道xx公寓北区x幢x单元110楼室即策AI平台收货人详细地址
买家备注memoString买家备注即策AI平台买家备注
卖家备注sellerMemoString卖家备注即策AI平台卖家备注
定金支付时间depositTimeDate2021-07-22 22:00:00即策AI平台定金支付时间
定金金额depositAmountLong1000即策AI平台定金金额
实付定金金额realDepositAmountLong1000即策AI平台实付定金金额
尾款支付时间balanceTimeDate2021-07-22 22:00:00即策AI平台尾款支付时间
尾款金额balanceAmountLong1000即策AI平台尾款金额
实付尾款金额realBalanceAmountLong1000即策AI平台实付尾款金额
预售订单尾款最后支付时间balanceEndTimeDescString2021-07-22 22:00:00即策AI平台预售订单尾款最后支付时间
预售订单预计发货时间时间presaleDeliveryTimeDescString2021-07-22 22:00:00即策AI平台预售订单预计发货时间时间
子订单列表orderSubListArray以下字段是子订单列表字段
子订单编号orderSubNoStringOS4594632795即策AI平台子订单编号
子订单积分抵扣金额pointAmountLong0即策AI平台子订单积分抵扣金额
子订单sku产品编号goodsNoStringSKU70077723011010280111即策AI平台子订单sku产品编号
子订单sku商品编码goodsCodeStringfsaahh24即策AI平台子订单sku商品编码
子订单商品名称goodsNameString月饼即策AI平台子订单商品名称
子订单商品主图goodsFrontImgShowString即策AI平台子订单商品主图
子订单类型orderTypeString即策AI平台子订单类型:normal-普通订单,presale-预售订单(为空表示等同父订单)
子订单类型描述orderTypeDescString即策AI平台子订单类型:普通订单、预售订单(为空表示等同父订单)
子订单状态orderStatusString即策AI平台子订单状态(为空表示等同父订单)
子订单状态描述orderStatusDescString即策AI平台子订单状态描述(为空表示等同父订单)
子订单配送方式shoppingTypeString即策AI平台子订单配送方式
子订单配送方式描述shoppingTypeDescString即策AI平台子订单配送方式描述
子订单创建时间createTimeDate即策AI平台子订单创建时间
子订单更新时间updateTimeDate即策AI平台子订单更新时间
子订单金额orderAmountLong10000即策AI平台子订单金额
子订单商品数量goodsNumInteger即策AI平台子订单商品数量
子订单商品价格goodsAmountLong即策AI平台子订单商品价格
子订单商品SKU名称goodsSkuNameString即策AI平台子订单商品SKU名称
子订单实付金额realAmountLong即策AI平台子订单实付金额
子订单手工减价金额manualDiscountAmountLong即策AI平台子订单手工减价金额
子订单原始运费deliveryAmountOriginalLong即策AI平台子订单原始运费
子订单订单优惠后金额orderDiscountAmountLong即策AI平台子订单订单优惠后金额
子订单运费金额deliveryAmountLong即策AI平台子订单运费金额
子订单物流单号mailNoString即策AI平台子订单物流单号
子订单物流公司expressNameString即策AI平台子订单物流公司
子订单用户是否退款buyerRefundBoolean即策AI平台子订单用户是否退款
子订单维权状态rightStatusString即策AI平台子订单维权状态
子订单维权状态描述rightStatusDescString即策AI平台子订单维权状态描述
子订单定金金额depositAmountLong即策AI平台子订单定金金额
子订单实付定金金额realDepositAmountLong即策AI平台子订单实付定金金额
子订单尾款金额balanceAmountLong即策AI平台子订单尾款金额
子订单实付尾款金额realBalanceAmountLong即策AI平台子订单实付尾款金额

10.1.3 示例​

响应参数rt5_data为下面格式的UTF-8编码的JSON字符串。

格式如下:

{
"orders": [
{
"orderNo":"OR1626935951659983",
"orderStatus":"cancel",
"orderAmount":12900
},
{
"orderNo":"OR1655935951613911",
"orderStatus":"cancel",
"orderAmount":11900
}
],
"total": 2
}