代发管理-分销商订单查询接口 此接口为详情接口和列表接口一体,当传入biz_order_id时查询出来的字段是全量字段,当不传入biz_order_id时只保障返回参数中的订单id相关字段。
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
auction_id | Number | 可选 | 12345 | 商品id | |
end_created | String | 可选 | 结束时间 格式:yyyy-MM-dd HH:mm:ss | 结束时间 | |
biz_order_id | Number | 可选 | 123456 | 主订单ID,传递主订单ID后其它筛选条件即失败,返回参数中会额外返回省、市、区、街道信息 | |
page_index | Number | 必须 | 1 | 页码 | |
distributor_id | Number | 可选 | 123 | 分销商平台id | |
page_size | Number | 可选 | 10 |
|
每页数量 |
auction_name | String | 可选 | 鞋子 | 商品名称 | |
start_created | String | 可选 | 开始时间 格式:yyyy-MM-dd HH:mm:ss | 开始时间,目前支持查询30天以内的订单,以订单创建时间为准 | |
query_cancel_scporder | Boolean | 可选 | false |
|
返回结果中是否包含已取消的代发单据,默认不反悔 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
page_index | Number | 1 | 页码 |
call_result | String | true | 调用结果 |
call_err_code | String | SYSTEM_ERROR | 异常错误码 |
call_err_msg | String | 系统异常 | 异常信息 |
page_size | Number | 10 | 每页条数 |
model | QueryDistributorOrderResponse | 业务对象 | |
|
|||
total_count | Number | 100 | 总条数 |
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); DaifaDistributorOrderQueryRequest req = new DaifaDistributorOrderQueryRequest(); req.setAuctionId(12345L); req.setEndCreated("结束时间 格式:yyyy-MM-dd HH:mm:ss"); req.setBizOrderId(123456L); req.setPageIndex(1L); req.setDistributorId(123L); req.setPageSize(10L); req.setAuctionName("鞋子"); req.setStartCreated("开始时间 格式:yyyy-MM-dd HH:mm:ss"); req.setQueryCancelScporder(false); DaifaDistributorOrderQueryResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<daifa_distributor_order_query_response> <page_index>1</page_index> <call_result>true</call_result> <call_err_code>SYSTEM_ERROR</call_err_code> <call_err_msg>系统异常</call_err_msg> <page_size>10</page_size> <model> <distributor_order_models> <distributor_order_model> <parent_id>123456</parent_id> <main>true</main> <detail>false</detail> <biz_order_id>123456</biz_order_id> <order_status>待发货</order_status> <pay_time>格式:yyyy-MM-dd HH:mm:ss</pay_time> <seller_memo>xxxx</seller_memo> <sub_distributor_order_models> <sub_distributor_order_model> <scp_order_id>12345</scp_order_id> <parent_id>12345</parent_id> <main>true</main> <detail>false</detail> <biz_order_id>123456</biz_order_id> <order_status>代发货</order_status> <distribute_status>已分配</distribute_status> <auction_id>12456</auction_id> <auction_pict_url>xxxx.png</auction_pict_url> <auction_name>鞋子</auction_name> <quality>2</quality> <consign_time>格式:yyyy-MM-dd HH:mm:ss</consign_time> <pay_time>格式:yyyy-MM-dd HH:mm:ss</pay_time> <distribute_time>格式:yyyy-MM-dd HH:mm:ss</distribute_time> <seller_memo>xxxx</seller_memo> <sku_id>123456</sku_id> <daifa_scp_order_models> <daifa_scp_order_model> <scp_order_id>123456</scp_order_id> <distributor_id>123456</distributor_id> <supplier_id>123456</supplier_id> <remark>卖家备注</remark> <product_id>123456</product_id> <product_name>鞋子</product_name> <product_count>1</product_count> <product_sku_id>123456</product_sku_id> <product_sku_spec>红色,40码</product_sku_spec> <product_pic_url>xxx.png</product_pic_url> <product_type>0</product_type> <supplier_name>xxx供货商</supplier_name> <distribute_time>2021-01-01 19:00:00</distribute_time> <distribute_status>已分配</distribute_status> <consign_time>2021-01-01 19:00:00</consign_time> <cancel_reason>订单修改地址</cancel_reason> <quality>1</quality> <sku_id>12345</sku_id> </daifa_scp_order_model> </daifa_scp_order_models> <sku_spec>红色,40码</sku_spec> <outer_sku_id>12345</outer_sku_id> <outer_id>123456</outer_id> <gmt_create>格式:yyyy-MM-dd HH:mm:ss</gmt_create> <gmt_modified>格式:yyyy-MM-dd HH:mm:ss</gmt_modified> </sub_distributor_order_model> </sub_distributor_order_models> <address_do> <prov>浙江省</prov> <city>杭州市</city> <area>余杭区</area> <town>五常街道</town> </address_do> <gmt_create>格式:yyyy-MM-dd HH:mm:ss</gmt_create> <gmt_modified>格式:yyyy-MM-dd HH:mm:ss</gmt_modified> </distributor_order_model> </distributor_order_models> </model> <total_count>100</total_count> </daifa_distributor_order_query_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|