获取采购类目
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
is_active | Boolean | 可选 | true |
|
是否失效 |
org_id | String | 可选 | 36822 |
|
组织id |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ActionResult | null | 获取url的出参 |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaPurCategoryCodeGetRequest req = new AlibabaPurCategoryCodeGetRequest(); req.setIsActive( true ); req.setOrgId( "36822" ); AlibabaPurCategoryCodeGetResponse 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 | < alibaba_pur_category_code_get_response > < result > < success >true</ success > < error_code >null</ error_code > < contents > < purchase_category_dto > < is_active >Y</ is_active > < org_id >36822</ org_id > < corp_id >null</ corp_id > < en_illustration >Ants蚂蚁采购新类目测试EN</ en_illustration > < cn_illustration >Ants蚂蚁采购新类目测试CN</ cn_illustration > < full_path_en_desc >0806Ants</ full_path_en_desc > < full_path_cn_desc >Ants蚂蚁采购新类目测试</ full_path_cn_desc > < en_desc >0806Ants</ en_desc > < cn_desc >Ants蚂蚁采购新类目测试</ cn_desc > < parent_category_id >0</ parent_category_id > < category_level >1</ category_level > < category_code_full_path >0/0806</ category_code_full_path > < category_code >0806</ category_code > < category_id >206464</ category_id > </ purchase_category_dto > </ contents > < error_msg >null</ error_msg > < error_level >null</ error_level > </ result > </ alibaba_pur_category_code_get_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 > |
错误码 | 错误描述 | 解决方案 |
---|