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

taobao.simcard.plan.get (运营商查询套餐内容)

运营商查询套餐内容

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
card_plan_top_request CardPlanTopRequest 必须 套餐查询请求
  • └ item_id
  • Number
  • 必须
  • 727922199285
  • 天猫商品id
  • └ sku_id
  • Number
  • 必须
  • 5045306944586
  • 天猫商品skuId

响应参数

名称 类型 示例值 描述
result_code String SUCCESS 错误码
is_success Boolean true 是否调用成功
model CardPlan 套餐信息
  • sku_info
  • SkuInfo
  • sku信息
  • └ title
  • String
  • 120G19元/月套餐
  • 套餐名称
  • └ monthly_rent
  • String
  • 19元/月
  • 月租描述
  • └ general_data
  • String
  • 100G
  • 通用流量描述
  • └ targeted_data
  • String
  • 100G
  • 定向流量描述
  • └ call_duration
  • String
  • 100分钟
  • 通话时长描述
  • └ fee_detail_image
  • String
  • https://img.alicdn.com/imgextra/i1/263168616/O1CN018P0V282DWBMyAdLmw_!!263168616-2-haokaTP.png
  • 资费详情图
  • promotion_info
  • PromotionInfo
  • 优惠信息
  • └ has_promotion
  • Boolean
  • true
  • 是否存在优惠
  • └ promotion_rent_text
  • String
  • 首月免费 次月优惠后 19元/月起
  • 优惠文案
  • └ promotion_detail_image
  • String
  • https://img.alicdn.com/imgextra/i1/263168616/O1CN018P0V282DWBMyAdLmw_!!263168616-2-haokaTP.png
  • 优惠详情图
  • └ ext
  • String
  • {}
  • 扩展参数
result_desc String SUCCESS 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
SimcardPlanGetRequest req = new SimcardPlanGetRequest();
SimcardPlanGetRequest.CardPlanTopRequest obj1 = new SimcardPlanGetRequest.CardPlanTopRequest();
obj1.setItemId(727922199285L);
obj1.setSkuId(5045306944586L);
req.setCardPlanTopRequest(obj1);
SimcardPlanGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<simcard_plan_get_response>
    <result_code>SUCCESS</result_code>
    <is_success>true</is_success>
    <model>
        <sku_info>
            <title>120G19元/月套餐</title>
            <monthly_rent>19元/月</monthly_rent>
            <general_data>100G</general_data>
            <targeted_data>100G</targeted_data>
            <call_duration>100分钟</call_duration>
            <fee_detail_image>https://img.alicdn.com/imgextra/i1/263168616/O1CN018P0V282DWBMyAdLmw_!!263168616-2-haokaTP.png</fee_detail_image>
        </sku_info>
        <promotion_info>
            <has_promotion>true</has_promotion>
            <promotion_rent_text>首月免费 次月优惠后 19元/月起</promotion_rent_text>
            <promotion_detail_image>https://img.alicdn.com/imgextra/i1/263168616/O1CN018P0V282DWBMyAdLmw_!!263168616-2-haokaTP.png</promotion_detail_image>
        </promotion_info>
        <ext>{}</ext>
    </model>
    <result_desc>SUCCESS</result_desc>
</simcard_plan_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

返回
顶部