一盘货商家批量查询采购单信息
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
trade_types | Number | 可选 | 1 | 查询的经营模式,当不指定时,默认查询代销订单 代销:1 经销:2 寄售(自营寄售):5 平台寄售:6 | |
page_size | Number | 必须 | 50 | 每页条数。(每页条数不超过50条) | |
page_num | Number | 可选 | 1 | 页号,不填则默认为1 | |
user_role_type | Number | 可选 | 2 | 当前查询用户的角色 当不指定时,默认为供应商 供应商:2,分销商:1 | |
begin_time | Date | 必须 | 2000-01-01 00:00:00 | 采购单最后更新时间-起始时间,格式 yyyy-MM-dd HH:mm:ss 支持到秒的查询。时间跨度必须在0-7天。 | |
end_time | Date | 必须 | 2000-01-01 00:00:00 | 采购单最后更新时间-结束时间,格式 yyyy-MM-dd HH:mm:ss 支持到秒的查询。时间跨度必须在0-7天。 | |
channel_codes | Number | 可选 | 302 | 渠道市场编码,可批量指定。 当不指定时,按照配置的分销市场生效 渠道编码枚举:1-供销平台(淘宝);2-供销平台(天猫);3-供销平台(天猫超市);5-供销平台(淘乡甜);110001-供销平台(全球购);110007-淘分销;200002-消费电子市场;302-猫超一盘货;506-虾选一盘货 | |
order_status | Number | 可选 | 1 | 主采购单交易状态-数字表示,枚举:1-已付款,待发货;2-待确认收款;4-等待买家付款;5-已付款,已发货;6-交易成功;7-交易关闭;8-已付款; | |
refund_status | Number | 可选 | 9 | 主采购单退款状态-数字表示,枚举:9-没有过申请退款;10-退款活动中,至少有一个子单在退款中;11-退款结束,即曾经发生过退款且所有退款都完结了 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
purchase_orders | OrderList [] | null | 采购单及子采购单信息 |
|
|||
remark | String | 这是一条返回给前端的错误信息 | 错误说明 |
total_count | Number | 25 | 采购单查询总数 |
opt_time | Date | 2000-01-01 00:00:00 | 接口操作时间 |
result_code | String | SYSTEM_ERROR | 接口返回错误码 |
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); FenxiaoYphOrdersGetRequest req = new FenxiaoYphOrdersGetRequest(); req.setTradeTypes(1L); req.setPageSize(50L); req.setPageNum(1L); req.setUserRoleType(2L); req.setBeginTime(StringUtils.parseDateTime("2000-01-01 00:00:00")); req.setEndTime(StringUtils.parseDateTime("2000-01-01 00:00:00")); req.setChannelCodes(302L); req.setOrderStatus(1L); req.setRefundStatus(9L); FenxiaoYphOrdersGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<fenxiao_yph_orders_get_response> <purchase_orders> <order_list> <alipay_no>null</alipay_no> <logistics_id>LP00167730231064-1</logistics_id> <pay_time>2000-01-01 00:00:00</pay_time> <memo>这是一条采购单留言</memo> <buyer_actual_pay_yuan>0.00</buyer_actual_pay_yuan> <pay_type>10000</pay_type> <consign_time>2000-01-01 00:00:00</consign_time> <shipping>2</shipping> <logistics_company_name>这是一家物流公司</logistics_company_name> <distributor_nick>商家测试帐号86</distributor_nick> <postage_yuan>0.00</postage_yuan> <supplier_memo>供应商备注</supplier_memo> <biz_order_id>38913818274736</biz_order_id> <sub_order_detail_yph_list> <sub_order_list> <refund_fee>0</refund_fee> <buyer_pay_price>1.00</buyer_pay_price> <buy_num>1</buy_num> <discount_fee_yuan>0.00</discount_fee_yuan> <discount_fee>0</discount_fee> <sub_tc_order_id>911465155210793700</sub_tc_order_id> <sku_property_val>颜色分类:仅共享</sku_property_val> <confirm_paid_fee>0</confirm_paid_fee> <distributor_pay_price_yuan>0.00</distributor_pay_price_yuan> <bill_fee>10</bill_fee> <title>【测试,请不要拍】至清测试专用,勿动,请自重-多SKU-03</title> <real_auction_id>613697976491</real_auction_id> <refund_fee_yuan>0.00</refund_fee_yuan> <real_auction_sku_id>4496911555141</real_auction_sku_id> <sub_order_id>0</sub_order_id> <price>0</price> <tc_discount_fee>0</tc_discount_fee> <confirm_paid_fee_yuan>0.00</confirm_paid_fee_yuan> <buyer_pay_price_yuan>1.00</buyer_pay_price_yuan> <promotion_type>0</promotion_type> <distributor_price>0</distributor_price> <sc_item_id>613702760269</sc_item_id> <fenxiao_id>38913818274736</fenxiao_id> <tc_adjust_fee>0</tc_adjust_fee> <gmt_create>2000-01-01 00:00:00</gmt_create> <auction_id>613694296654</auction_id> <tc_preferential_type>聚划算</tc_preferential_type> <auction_sku_id>4493468966531</auction_sku_id> <bill_fee_yuan>1.00</bill_fee_yuan> <auction_price>0.01</auction_price> <price_yuan>0.00</price_yuan> <order_200_status>TRADE_FINISHED</order_200_status> <distributor_pay_price>0</distributor_pay_price> <distributor_price_yuan>0.00</distributor_price_yuan> <sub_order_status_code>DELIVERED</sub_order_status_code> <sub_order_status>70</sub_order_status> <refund_status>9</refund_status> <refund_status_code>RF_STATUS_NO_REFUND</refund_status_code> <auction_out_id>OUT100000</auction_out_id> <secondary_supplier_id>1000000000012345</secondary_supplier_id> <tp_create_time_price>9.00</tp_create_time_price> <features> <feature_d_o> <attr_key>111</attr_key> <attr_value>222</attr_value> </feature_d_o> </features> <auction_out_sku_id>5555</auction_out_sku_id> </sub_order_list> </sub_order_detail_yph_list> <gmt_modified>2000-01-01 00:00:00</gmt_modified> <total_price>0</total_price> <tc_order_id>911465155210793700</tc_order_id> <order_status>6</order_status> <confirm_paid_fee>0</confirm_paid_fee> <distributor_pay_price_yuan>0.00</distributor_pay_price_yuan> <supplier_nick>商家测试帐号42</supplier_nick> <confirm_paid_fee_yuan>0.00</confirm_paid_fee_yuan> <trade_type>1</trade_type> <channel_code>302</channel_code> <buyer_actual_pay>0</buyer_actual_pay> <fenxiao_id>38913818274736</fenxiao_id> <gmt_create>2000-01-01 00:00:00</gmt_create> <postage>0</postage> <supplier_from_sys>1</supplier_from_sys> <distributor_from_sys>taobao</distributor_from_sys> <end_time>2000-01-01 00:00:00</end_time> <distributor_pay_price>0</distributor_pay_price> <total_price_yuan>0.00</total_price_yuan> <order_status_code>TRADE_FINISHED</order_status_code> <refund_status>9</refund_status> <refund_status_code>ORDER_RF_NO_REFUND</refund_status_code> <logis_type>菜鸟仓</logis_type> <logis_type_code>0</logis_type_code> <dp_buyer_detail> <area>余杭区</area> <address>收货地址</address> <mobile_phone>12345678910</mobile_phone> <post>610000</post> <city>杭州市</city> <phone>123456</phone> <full_name>收货人全名</full_name> <prov>浙江省</prov> <oaid>xxxxx</oaid> </dp_buyer_detail> <tp_create_time>1645414654000</tp_create_time> <features> <feature_d_o> <attr_key>123</attr_key> <attr_value>111</attr_value> </feature_d_o> </features> </order_list> </purchase_orders> <remark>这是一条返回给前端的错误信息</remark> <total_count>25</total_count> <opt_time>2000-01-01 00:00:00</opt_time> <result_code>SYSTEM_ERROR</result_code> </fenxiao_yph_orders_get_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|