阿里健康获取某一药店全部订单
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
shop_id | Number | 必须 | 112345 | 外卖分店ID | |
keyword | String | 可选 | 11 | 关键字 | |
is_all_shop | Boolean | 必须 | true | true-查询仅按商家维度 false-查询按商家下所属店铺维度 | |
is_all_order | Boolean | 必须 | true | true 仅有支付宝订单,false 包括所有类型订单(货到付款,支付券等) | |
order_status | Number | 可选 | 2 |
|
(必填字段)订单状态 待确认订单2 , 退款中订单4 , 已发货12 关闭20 交易成功21 |
page_size | Number | 必须 | 15 | 返回记录数,超过20按20条返回数据 | |
page_no | Number | 可选 | 1 |
|
页码 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 查询到的订单列表对象 | |
|
1 2 3 4 5 6 7 8 9 10 11 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TradeDrugOrdersGetRequest req = new TradeDrugOrdersGetRequest(); req.setShopId(112345L); req.setKeyword( "11" ); req.setIsAllShop( true ); req.setIsAllOrder( true ); req.setOrderStatus(2L); req.setPageSize(15L); req.setPageNo(1L); TradeDrugOrdersGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | < trade_drug_orders_get_response > < result > < result_list > < result > < start_delivery_time >2016-03-29</ start_delivery_time > < user_address > < phone >xxx</ phone > < address >北京***</ address > < name >xxx</ name > < mobile >xxx</ mobile > </ user_address > < goods_list > < order_goods > < real_price >12</ real_price > < id >12312</ id > < count >2</ count > < name >abv</ name > < goods_code >abc</ goods_code > </ order_goods > </ goods_list > < store_id >4343</ store_id > < pay_account >abc</ pay_account > < id >24007419023430</ id > < address >北京市***</ address > < delivery_pay >5</ delivery_pay > < end_delivery_time >2016-03-29</ end_delivery_time > < create_time >2016-03-29</ create_time > < user_id >34323232</ user_id > < total_pay >500</ total_pay > < store_name >xxx大药房</ store_name > < store_contact_phone >xxx</ store_contact_phone > < note >留言</ note > < from >2</ from > < alipay_stream_id >123456789</ alipay_stream_id > </ result > </ result_list > < result_size >20</ result_size > < total_count >20</ total_count > </ result > </ trade_drug_orders_get_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|