文档中心 > API类目 > 阿里通信API

taobao.phone.item.external.recommend (话费选品能力外放)

话费选品能力外放

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
phone_distribution_recommend_req PhoneDistributionRecommendReq 必须 选品请求
  • └ account
  • String
  • 必须
  • 133xxxxxxxx
  • 用户手机号

响应参数

名称 类型 示例值 描述
biz_code String 0000 响应码
data PhoneRecommendRes 返回数据
  • list
  • PhoneDistributionPhoneItemVO []
  • 商品列表
  • └ item_id
  • Number
  • y/evrpFi6WTPtlALuW7J5Q==
  • 商品标识
  • └ face
  • String
  • 50
  • 商品面额
  • └ price
  • String
  • 50
  • 商品价格
  • cat_info
  • CatInfoVO
  • 号码信息
  • └ show_cat_name
  • String
  • 辽宁
  • 手机归属区域
  • └ area_name
  • String
  • 辽宁移动
  • 手机归属运营商
  • └ city
  • String
  • 阜新
  • 手机归属城市
  • └ cat_name
  • String
  • 中国移动
  • 运营商
  • └ notice
  • String
  • null
  • 公告
is_success Boolean true 响应状态
message String SUCCESS 响应信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PhoneItemExternalRecommendRequest req = new PhoneItemExternalRecommendRequest();
PhoneItemExternalRecommendRequest.PhoneDistributionRecommendReq obj1 = new PhoneItemExternalRecommendRequest.PhoneDistributionRecommendReq();
obj1.setAccount("133xxxxxxxx");
req.setPhoneDistributionRecommendReq(obj1);
PhoneItemExternalRecommendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<phone_item_external_recommend_response>
    <biz_code>0000</biz_code>
    <data>
        <list>
            <phone_distribution_phone_item_v_o>
                <item_id>y/evrpFi6WTPtlALuW7J5Q==</item_id>
                <face>50</face>
                <price>50</price>
            </phone_distribution_phone_item_v_o>
        </list>
        <cat_info>
            <show_cat_name>辽宁</show_cat_name>
            <area_name>辽宁移动</area_name>
            <city>阜新</city>
            <cat_name>中国移动</cat_name>
        </cat_info>
        <notice>null</notice>
    </data>
    <is_success>true</is_success>
    <message>SUCCESS</message>
</phone_item_external_recommend_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

返回
顶部