# 按照推广员获取订单
# 接口调用请求说明
http请求方式:POST
https://api.weixin.qq.com/shop/order/get_list_by_finder?access_token=xxxxxxxxx
# 请求参数
{
"start_pay_time": "2020-03-25 12:05:25",
"end_pay_time": "2020-04-25 12:05:25",
"promoter_id":"PROMOTER_ID",
"promoter_openid": "OPENID",
"page": 1,
"page_size": 10
}
# 回包示例
{
"errcode":0,
"errmsg":"ok",
"orders":[
{
"order_id":123455,
"out_order_id":"xxxxx",
"status":20,
"path":"/pages/order.html?out_order_id=xxxxx",
"order_detail":{
"promotion_info":{
"finder_nickname":"FINDER_NICKNAME",
"promoter_id":"PROMOTER_ID",
"promoter_openid": "OPENID"
},
"product_infos":[
{
"out_product_id":"12345",
"out_sku_id":"23456",
"product_cnt":10,
"sale_price":200,
"path":"pages/productDetail/productDetail?productId=2176180",
"title":"标题",
"head_img":"http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg",
"real_price":200
}
],
"pay_info":{
"pay_method":"微信支付",
"prepay_id":"42526234625",
"prepay_time":"2020-03-25 14:04:25",
"transaction_id":"131456479687",
"pay_time":"2020-03-25 14:05:25",
"pay_method_type":0
},
"price_info":{
"order_price":1600,
"freight":500,
"discounted_price":1000,
"additional_price":100,
"additional_remarks":"税费"
},
"delivery_detail":{
"delivery_type":1,
"finish_all_delivery":1,
"delivery_list":[
{
"waybill_id":"SFXXXX",
"delivery_id":"SF"
}
]
}
}
}
],
"total_num":20
}
# 请求参数说明
参数 | 类型 | 是否必填 | 说明 |
---|---|---|---|
start_pay_time | string | 否 | 订单支付时间的开始时间 |
end_pay_time | string | 否 | 订单支付时间的结束时间 |
promoter_id | string | 否 | 推广员唯一ID,与promoter_openid二选一 |
promoter_openid | string | 否 | 推广员openid,与promoter_id二选一 |
page | number | 是 | 第几页(最小填1) |
page_size | number | 是 | 每页数量(不超过100) |
# 回包参数说明
参数 | 类型 | 说明 |
---|---|---|
errcode | number | 错误码 |
errmsg | string | 错误信息 |
orders[] | Order[] | 订单列表,参考获取订单; |
total_num | number | 订单满足条件的总数 |