拆分寻源请求TOP接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
id | Number | 必须 | 174684 | 需求池行ID | |||||||
sourcing_request_split_top_out_d_t_o | SourcingRequestSplitTopOutDto [] | 必须 |
|
需求池拆分信息 | |||||||
|
|||||||||||
user_info | UserInfo | 必须 | 操作人信息 | ||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ActionResult | 获取url的出参 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaPurSrSplitRequest req = new AlibabaPurSrSplitRequest(); req.setId(174684L); List<AlibabaPurSrSplitRequest.SourcingRequestSplitTopOutDto> list2 = new ArrayList<AlibabaPurSrSplitRequest.SourcingRequestSplitTopOutDto>(); AlibabaPurSrSplitRequest.SourcingRequestSplitTopOutDto obj3 = new AlibabaPurSrSplitRequest.SourcingRequestSplitTopOutDto(); list2.add(obj3); obj3.setQuantity( "1" ); obj3.setExtra( "{\"put\":\"aaa\"}" ); obj3.setRemark( "1" ); req.setSourcingRequestSplitTopOutDTO(list2); AlibabaPurSrSplitRequest.UserInfo obj4 = new AlibabaPurSrSplitRequest.UserInfo(); obj4.setWorkNo( "1" ); req.setUserInfo(obj4); AlibabaPurSrSplitResponse rsp = client.execute(req); 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 41 | < alibaba_pur_sr_split_response > < result > < success >ture</ success > < error_code >200</ error_code > < contents > < sourcing_request_dto > < order_type >byAmount</ order_type > < order_num >0</ order_num > < ou_code >R9Z</ ou_code > < remark >1</ remark > < item_name >程的白名单提交测试</ item_name > < uom >元</ uom > < apply_dept >A7297</ apply_dept > < origin_id >6493487801</ origin_id > < delivery_address >--</ delivery_address > < ou_id >200000081</ ou_id > < id >100195491</ id > < item_description >消金</ item_description > < original_buyer >56771</ original_buyer > < company_code >99782076</ company_code > < unit_price >1</ unit_price > < quantity >60000000</ quantity > < need_by_date >1619107200000</ need_by_date > < category_code >EPZ1</ category_code > < actual_requestor >560225</ actual_requestor > < parent_id >100194125</ parent_id > < buyer >56771</ buyer > < tags >CMALL</ tags > < apply_person >56771</ apply_person > < origin_type >PR</ origin_type > < apply_code >PR10038355</ apply_code > < currency_code >CNY</ currency_code > < data_source >NEW_PR</ data_source > < is_ceres >false</ is_ceres > < status >Pending</ status > </ sourcing_request_dto > </ contents > < error_msg >错误了</ error_msg > < error_level >0</ error_level > </ result > </ alibaba_pur_sr_split_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 > |
错误码 | 错误描述 | 解决方案 |
---|