查询外部成本中心
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rq | OpenCostCenterQueryRq | 必须 | 请求对象 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | BtriphomeResult | result | 返回对象 |
|
1 2 3 4 5 6 7 8 9 10 11 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtipCostCenterQueryRequest req = new AlitripBtipCostCenterQueryRequest(); AlitripBtipCostCenterQueryRequest.OpenCostCenterQueryRq obj1 = new AlitripBtipCostCenterQueryRequest.OpenCostCenterQueryRq(); obj1.setThirdpartId( "cost1" ); obj1.setUserId( "user1" ); obj1.setNeedOrgEntity( true ); obj1.setCorpId( "corp1" ); obj1.setTitle( "成本中心1" ); req.setRq(obj1); AlitripBtipCostCenterQueryResponse rsp = client.execute(req, sessionKey); 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 | < alitrip_btip_cost_center_query_response > < result > < result_code >0</ result_code > < result_msg >成功</ result_msg > < success >true</ success > < cost_center_list > < open_cost_center_query_rs > < id >12345</ id > < corp_id >corp1</ corp_id > < title >阿里商旅</ title > < number >12345</ number > < thirdpart_id >cost1</ thirdpart_id > < scope >1</ scope > < entity_list > < open_org_entity_do > < name >张三</ name > < entity_id >12345</ entity_id > < entity_type >1</ entity_type > < corp_id >corp1</ corp_id > < user_num >23</ user_num > </ open_org_entity_do > </ entity_list > </ open_cost_center_query_rs > </ cost_center_list > </ result > </ alitrip_btip_cost_center_query_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 > |
错误码 | 错误描述 | 解决方案 |
---|