文档中心 > API类目 > CRM猎户座前台

alibaba.crm.customer.org.get (查询客户当前所在的组织信息)

查询客户当前所在的组织信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ali_cgs String 必须 2346012589 阿里客户ID
product_type String 可选 a2 商机类型

响应参数

名称 类型 示例值 描述
result ResultObject {} 接口返回model
  • value
  • CustomerOpportunityRegionVo
  • {}
  • 具体内容
  • └ hr_team
  • String
  • 行政主管组
  • 杭州-三组
  • └ hr_region
  • String
  • 行政区域
  • 杭州
  • └ big_region
  • String
  • 大区
  • 华东大区
  • └ mid_region
  • String
  • 中区
  • 华东渠道
  • └ region
  • String
  • 区域
  • 安徽庐州(合伙人)
  • └ full_name_path
  • String
  • /Alibaba/中供/全国/华东大区/华东渠道/安徽庐州(合伙人)/安徽大米网络技术有限公司(合伙人)/志高队
  • 组织全路径
  • └ cate_lv1_id
  • String
  • 3
  • 美妆
  • └ cate_lv1_desc
  • String
  • 服装及配饰
  • 服装及配饰
  • └ cate_lv2_id
  • String
  • 127726318
  • 127726318
  • └ cate_lv2_desc
  • String
  • 男装
  • 男装
  • └ success
  • Boolean
  • true
  • 相应是否成功
  • └ dateline
  • Number
  • 1618753522
  • 当前时间戳
  • └ code
  • String
  • 0
  • 响应码
  • └ error_desc
  • String
  • 系统异常
  • 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCrmCustomerOrgGetRequest req = new AlibabaCrmCustomerOrgGetRequest();
req.setAliCgs("2346012589");
req.setProductType("a2");
AlibabaCrmCustomerOrgGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_crm_customer_org_get_response>
    <result>
        <value>
            <hr_team>行政主管组</hr_team>
            <hr_region>行政区域</hr_region>
            <big_region>大区</big_region>
            <mid_region>中区</mid_region>
            <region>区域</region>
            <full_name_path>/Alibaba/中供/全国/华东大区/华东渠道/安徽庐州(合伙人)/安徽大米网络技术有限公司(合伙人)/志高队</full_name_path>
            <cate_lv1_id>3</cate_lv1_id>
            <cate_lv1_desc>服装及配饰</cate_lv1_desc>
            <cate_lv2_id>127726318</cate_lv2_id>
            <cate_lv2_desc>男装</cate_lv2_desc>
        </value>
        <success>true</success>
        <dateline>1618753522</dateline>
        <code>0</code>
        <error_desc>系统异常</error_desc>
    </result>
</alibaba_crm_customer_org_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部