感谢您的反馈!
工单查询接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
service_store_id | Number | 可选 | 123 | 门店/网点id | |
identify_code | String | 可选 | 123456789 | 核销码 | |
id | Number | 可选 | 123456 | 工单id | |
gmt_create_start | Date | 可选 | 2019-02-24 10:00:00 | 工单创建开始时间 | |
gmt_create_end | Date | 可选 | 2019-02-24 10:15:00 | 工单创建结束时间,必须与工单创建开始时间一起传入,且间隔不超过15分钟 | |
biz_order_id | Number | 可选 | 1234567 | 淘宝交易订单号。主订单或子订单均可 | |
current_page | Number | 可选 | 1 |
|
当前页数 |
page_size | Number | 可选 | 50 |
|
每页大小 |
need_workcard_operation | Boolean | 可选 | true | 是否查询操作记录信息 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 请求结果 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TmallServicecenterWorkcardQueryRequest req = new TmallServicecenterWorkcardQueryRequest(); req.setServiceStoreId(123L); req.setIdentifyCode("123456789"); req.setId(123456L); req.setGmtCreateStart(StringUtils.parseDateTime("2019-02-24 10:00:00")); req.setGmtCreateEnd(StringUtils.parseDateTime("2019-02-24 10:15:00")); req.setBizOrderId(1234567L); req.setCurrentPage(1L); req.setPageSize(50L); req.setNeedWorkcardOperation(true); TmallServicecenterWorkcardQueryResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<tmall_servicecenter_workcard_query_response> <result> <result_data> <data_list> <workcard_d_t_o> <attributes>{}</attributes> <gmt_sign_in>1550669060000</gmt_sign_in> <used_service_count>0</used_service_count> <service_trade_order> <category_id>123</category_id> <outer_id_sku>123</outer_id_sku> <sku_desc>颜色:红色</sku_desc> <seller_nick>汽车卖家1</seller_nick> <shop_name>汽车卖家1</shop_name> <sku_id>123</sku_id> <auction_id>23234234</auction_id> <auction_title>服务商品标题</auction_title> <attributes>{"key":"value"}</attributes> <gmt_pay>1550656308000</gmt_pay> <purchase_price_unit>900</purchase_price_unit> <order_id>1312322222</order_id> <buy_amount>5</buy_amount> <auction_pic>xx.png</auction_pic> </service_trade_order> <gmt_reserve_end>1550669060000</gmt_reserve_end> <gmt_modify>1550669060000</gmt_modify> <service_count>1</service_count> <gmt_cancel>1550669060000</gmt_cancel> <status_code>create</status_code> <id>3203003</id> <reserve_fail_desc>xxx</reserve_fail_desc> <left_service_count>1</left_service_count> <parent_biz_order_id>1213132343232</parent_biz_order_id> <reserve_fail_code>123</reserve_fail_code> <buyer> <phone>12345678</phone> <address_city>杭州市</address_city> <location>330110005</location> <address_district>余杭区</address_district> <address_detail>文一西路99999号</address_detail> <buyer_name>测试买家</buyer_name> <email>12345678@xxx.com</email> <address>浙江省 杭州市 余杭区 五常街道 文一西路99999号</address> <zip_code>123456</zip_code> <buyer_nick>tbtest1063</buyer_nick> <address_town>五常街道</address_town> <address_province>浙江省</address_province> <mobile>123123123123</mobile> <open_uid>AAA</open_uid> </buyer> <service_provider> <tp_nick>tbtest1063</tp_nick> <tp_id>65753805</tp_id> <worker_mobile>123456</worker_mobile> <service_store_code>abc</service_store_code> <worker_name>xxx</worker_name> <worker_id>123</worker_id> <service_store_id>331</service_store_id> <service_store_name>xxx</service_store_name> </service_provider> <fulfil_type_code>in_store</fulfil_type_code> <gmt_identify>1550669060000</gmt_identify> <gmt_create>1550656481000</gmt_create> <gmt_reserve_start>1550669060000</gmt_reserve_start> <master_trade_order> <category_id>12</category_id> <spu_id>12312</spu_id> <gmt_arrival>1550669060000</gmt_arrival> <brand_id>13123</brand_id> <gmt_expect_arrival>1550669060000</gmt_expect_arrival> <outer_id_sku>123</outer_id_sku> <sku_desc>颜色:红色</sku_desc> <price>1200</price> <seller_nick>汽车卖家1</seller_nick> <shop_name>汽车卖家1</shop_name> <sku_id>123</sku_id> <auction_id>123123</auction_id> <auction_title>实物商品标题</auction_title> <attributes>{"key":"value"}</attributes> <gmt_shipped>1550669060000</gmt_shipped> <gmt_pay>1550656308000</gmt_pay> <order_id>12343</order_id> <buy_amount>5</buy_amount> <outer_id_p>12345</outer_id_p> <parent_order_id>123456</parent_order_id> </master_trade_order> <service_definition> <biz_code>car_accessory_install</biz_code> <service_code>轮胎安装</service_code> </service_definition> <buyer_expect_date>买家期望服务时间</buyer_expect_date> <fee_list> <fee_info> <from_role_code>platform</from_role_code> <amount>200</amount> </fee_info> </fee_list> <sequence>1</sequence> <sp_service_order_id>12345</sp_service_order_id> <memo_list> <memo_d_t_o> <content>备注测试</content> <time>2022-03-15 17:57:20</time> </memo_d_t_o> </memo_list> <workcard_operation_info> <workcard_operation_d_t_o> <gmt_modify>2022-03-15 17:57:20</gmt_modify> <attribute_map>{}</attribute_map> <gmt_create>2022-03-15 17:57:20</gmt_create> <operator>system</operator> <action>创建</action> <operator_type>1</operator_type> </workcard_operation_d_t_o> </workcard_operation_info> </workcard_d_t_o> </data_list> <total_page_count>1</total_page_count> <total_count>1</total_count> <page_size>20</page_size> </result_data> <msg_code>xxx</msg_code> <msg_info>xxx</msg_info> <success>true</success> </result> </tmall_servicecenter_workcard_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>
错误码 | 错误描述 | 解决方案 |
---|