文档中心 > API文档

taobao.vas.subscribe.get (订购关系查询)

用于ISV根据登录进来的淘宝会员名查询该为该会员开通哪些收费项目,ISV只能查询自己名下的应用及收费项目的订购情况

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
article_code String 必须 ts-1234 商品编码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得该应用的商品代码
nick String 必须 hz0799 淘宝会员名

响应参数

名称 类型 示例值 描述
article_user_subscribes ArticleUserSubscribe [] 用户订购信息
  • └ item_code
  • String
  • ts-123-1
  • 收费项目代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得收费项目代码
  • └ deadline
  • Date
  • 2000-01-01 00:00:00
  • 订购关系到期时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
VasSubscribeGetRequest req = new VasSubscribeGetRequest();
req.setArticleCode("ts-1234");
req.setNick("hz0799");
VasSubscribeGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<vas_subscribe_get_response>
    <article_user_subscribes>
        <article_user_subscribe>
            <item_code>ts-123-1</item_code>
            <deadline>2000-01-01 00:00:00</deadline>
        </article_user_subscribe>
    </article_user_subscribes>
</vas_subscribe_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>

错误码解释

错误码 错误描述 解决方案
1000 输入参数无效 输入参数无效
1034 该appkey无法查询此商品的订购 使用正确的appkey查询商品的订购关系

API工具

如何获得此API

FAQ

返回
顶部