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

alibaba.crm.customer.opportunity.query (查询客户行业信息以及批量商机所属组织信息)

查询客户行业信息以及批量商机所属组织信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
customer_opportunity_region_batch_qry CustomerOpportunityRegionBatchQry 必须 请求参数类
  • └ ali_cgs
  • String
  • 必须
  • 2346012589
  • 阿里客户id
  • └ product_types
  • String []
  • 必须
  • ["a2","okki"]
  • 阿里商机类型集合

响应参数

名称 类型 示例值 描述
result ResultObject 接口返回model
  • └ code
  • String
  • 0
  • 响应码
  • └ error_desc
  • String
  • 系统异常
  • 错误信息
  • └ dateline
  • Number
  • 1736762256203
  • 当前时间戳
  • └ success
  • Boolean
  • true
  • 请求是否成功
  • value
  • CustomerOpportunityRegionBatchVo
  • 返回数据内容
  • └ bu_mapping_cate_lv1_desc
  • String
  • 家具
  • 一级行业名称
  • └ hr_team
  • String
  • 广州市途正网络技术有限公司
  • 行政主管组
  • okki_opportunity_region_list
  • OpportunityRegionVo []
  • 商机信息集合
  • └ mid_region
  • String
  • 南粤本渠中区
  • 中区
  • └ big_region
  • String
  • 南粤大区
  • 大区
  • └ full_name_path
  • String
  • /Alibaba/中供/全国/南粤大区/南粤本渠中区/粤广(合伙人)/广州市途正网络技术有限公司(合伙人)
  • 组织全路径
  • └ region
  • String
  • 粤广(合伙人)
  • 区域
  • └ opp_type
  • String
  • a2
  • 商机类型
  • └ opp_id
  • String
  • 123
  • 商机id
  • └ owner_id
  • String
  • ytest001
  • 商机所属人id
  • └ role
  • String
  • 客户经理
  • 角色
  • └ org_type
  • String
  • 一环
  • 组织类型: 一环或二环
  • └ hr_region
  • String
  • 粤广渠道
  • 行政区域
  • └ bu_mapping_cate_lv2_desc
  • String
  • 商用家具
  • 二级行业名称
  • └ bu_mapping_cate_lv2_id
  • String
  • 150301
  • 二级行业编码
  • └ bu_mapping_cate_lv1_id
  • String
  • 1503
  • 一级行业编码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCrmCustomerOpportunityQueryRequest req = new AlibabaCrmCustomerOpportunityQueryRequest();
AlibabaCrmCustomerOpportunityQueryRequest.CustomerOpportunityRegionBatchQry obj1 = new AlibabaCrmCustomerOpportunityQueryRequest.CustomerOpportunityRegionBatchQry();
obj1.setAliCgs("2346012589");
obj1.setProductTypes(""a2","okki"");
req.setCustomerOpportunityRegionBatchQry(obj1);
AlibabaCrmCustomerOpportunityQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_crm_customer_opportunity_query_response>
    <result>
        <code>0</code>
        <error_desc>系统异常</error_desc>
        <dateline>1736762256203</dateline>
        <success>true</success>
        <value>
            <bu_mapping_cate_lv1_desc>家具</bu_mapping_cate_lv1_desc>
            <hr_team>广州市途正网络技术有限公司</hr_team>
            <okki_opportunity_region_list>
                <opportunity_region_vo>
                    <mid_region>南粤本渠中区</mid_region>
                    <big_region>南粤大区</big_region>
                    <full_name_path>/Alibaba/中供/全国/南粤大区/南粤本渠中区/粤广(合伙人)/广州市途正网络技术有限公司(合伙人)</full_name_path>
                    <region>粤广(合伙人)</region>
                    <opp_type>a2</opp_type>
                    <opp_id>123</opp_id>
                    <owner_id>ytest001</owner_id>
                    <role>客户经理</role>
                    <org_type>一环</org_type>
                </opportunity_region_vo>
            </okki_opportunity_region_list>
            <hr_region>粤广渠道</hr_region>
            <bu_mapping_cate_lv2_desc>商用家具</bu_mapping_cate_lv2_desc>
            <bu_mapping_cate_lv2_id>150301</bu_mapping_cate_lv2_id>
            <bu_mapping_cate_lv1_id>1503</bu_mapping_cate_lv1_id>
        </value>
    </result>
</alibaba_crm_customer_opportunity_query_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

返回
顶部