设置成本中心人员信息
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rq | OpenCostCenterSetEntityRq | 必须 | 入参对象 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | OpenCostCenterSetEntityRs | module | 结果对象 |
|
|||
result_code | Number | 0 | 结果码 |
result_msg | String | 成功 | 结果描述 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripOpenCostCenterEntitySetRequest req = new AlitripBtripOpenCostCenterEntitySetRequest(); AlitripBtripOpenCostCenterEntitySetRequest.OpenCostCenterSetEntityRq obj1 = new AlitripBtripOpenCostCenterEntitySetRequest.OpenCostCenterSetEntityRq(); obj1.setCorpId( "corp1" ); List<AlitripBtripOpenCostCenterEntitySetRequest.OpenOrgEntityDo> list3 = new ArrayList<AlitripBtripOpenCostCenterEntitySetRequest.OpenOrgEntityDo>(); AlitripBtripOpenCostCenterEntitySetRequest.OpenOrgEntityDo obj4 = new AlitripBtripOpenCostCenterEntitySetRequest.OpenOrgEntityDo(); list3.add(obj4); obj4.setEntityId( "1234" ); obj4.setEntityType( "1" ); obj1.setEntityList(list3); obj1.setThirdpartId( "cost1" ); obj1.setVersion(2L); req.setRq(obj1); AlitripBtripOpenCostCenterEntitySetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 | < alitrip_btrip_open_cost_center_entity_set_response > < result > < add_num >1</ add_num > < remove_num >2</ remove_num > < selected_user_num >3</ selected_user_num > </ result > < result_code >0</ result_code > < result_msg >成功</ result_msg > </ alitrip_btrip_open_cost_center_entity_set_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 > |
错误码 | 错误描述 | 解决方案 |
---|