文档中心 > API类目 > 国际站外贸直通车操作

alibaba.scbp.ad.customer.find.customer.info (查询客户信息)

查询客户信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
top_context_dto TopContextDto 必须 用户信息
  • └ product_id
  • Number
  • 可选
  • 110101103
  • 产品id
  • └ product_line_id
  • Number
  • 必须
  • 110101
  • 产品线id

响应参数

名称 类型 示例值 描述
result ResultDto {} 返回类
  • result
  • TopCustomerDto
  • {}
  • 返回实体
  • └ currency
  • String
  • CNY
  • 币种
  • └ level
  • Number
  • 1
  • 客户等级
  • └ score
  • Number
  • 35
  • 分数
  • └ star_temp
  • Number
  • 1
  • 下月星级
  • └ score_temp
  • Number
  • 35
  • 下月分数
  • └ exchange_rate
  • String
  • 1
  • 汇率
  • └ tax_rate
  • String
  • 6
  • 税率
  • └ region
  • String
  • hz
  • 区域
  • └ customer_balance
  • Number
  • 154888
  • 账户余额,单位:分

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaScbpAdCustomerFindCustomerInfoRequest req = new AlibabaScbpAdCustomerFindCustomerInfoRequest();
AlibabaScbpAdCustomerFindCustomerInfoRequest.TopContextDto obj1 = new AlibabaScbpAdCustomerFindCustomerInfoRequest.TopContextDto();
obj1.setProductId(110101103L);
obj1.setProductLineId(110101L);
req.setTopContextDto(obj1);
AlibabaScbpAdCustomerFindCustomerInfoResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_scbp_ad_customer_find_customer_info_response>
    <result>
        <result>
            <currency>CNY</currency>
            <level>1</level>
            <score>35</score>
            <star_temp>1</star_temp>
            <score_temp>35</score_temp>
            <exchange_rate>1</exchange_rate>
            <tax_rate>6</tax_rate>
            <region>hz</region>
            <customer_balance>154888</customer_balance>
        </result>
    </result>
</alibaba_scbp_ad_customer_find_customer_info_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

返回
顶部