¥免费必须用户授权
拆合单结果回传接口
公共参数
请求地址:
HTTP地址
http://gw.api.taobao.com/router/rest
公共请求参数:
公共响应参数:
请求参数
响应参数
点击获取key和secret
请求示例
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FulfillmentOrderAssembleRequest req = new FulfillmentOrderAssembleRequest();
FulfillmentOrderAssembleRequest.AssembleOrder obj1 = new FulfillmentOrderAssembleRequest.AssembleOrder();
obj1.setGroupId("123456");
List<FulfillmentOrderAssembleRequest.OrderGroup> list3 = new ArrayList<FulfillmentOrderAssembleRequest.OrderGroup>();
FulfillmentOrderAssembleRequest.OrderGroup obj4 = new FulfillmentOrderAssembleRequest.OrderGroup();
list3.add(obj4);
obj4.setTaobaoSubOrderId("123456");
obj4.setOrderType(0L);
obj4.setItemType(0L);
obj4.setOrderId("123456");
obj4.setErpOrderId("123456");
obj4.setTaobaoParentOrderId("123456");
obj1.setOrderList(list3);
req.setAssembleOrders(obj1);
req.setType("MERGE");
FulfillmentOrderAssembleResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
响应示例
<fulfillment_order_assemble_response>
true
<call_error_code>INVALID_PARAM</call_error_code>
<call_error_msg>参数非法</call_error_msg>
<order_group_responses>
<order_group_response>
<group_id>123456</group_id>
true
<error_code>INVALID_PARAM</error_code>
<error_msg>参数非法</error_msg>
</order_group_response>
</order_group_responses>
</fulfillment_order_assemble_response>
异常示例
<error_response>
50
Remote service error
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>