文档中心 > API类目 > 淘宝定制行业API

taobao.industry.applestore.restriction.query (查询当前时期限购)

查询当前时期限购

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
restriction_info_query RestrictionInfoQuery 可选 入参
  • └ restriction_ids
  • String
  • 必须
  • 656851744680
  • 限购id列表
  • └ restriction_type
  • String
  • 必须
  • 2
  • 限购类别
  • └ channel
  • String
  • 可选
  • PC
  • 渠道
  • └ start_time
  • Date
  • 可选
  • 2023-05-11 00:00:00
  • 开始时间
  • └ end_time
  • Date
  • 可选
  • 2023-05-11 00:00:00
  • 结束时间
  • └ business_type
  • String
  • 可选
  • CE_APPLE
  • 业务

响应参数

名称 类型 示例值 描述
data RestrictionInfoVO [] 查询到的限购信息
  • └ conflict_with_other
  • Boolean
  • false
  • 是否冲突
  • restriction_plan_vo
  • RestrictionPlanVO
  • 冲突的限购计划
  • └ start_time
  • Number
  • 1684807188000
  • 开始时间
  • └ end_time
  • Number
  • 1684807188000
  • 结束时间
  • └ out_rule_id
  • String
  • 2282952446
  • 外部限购id
  • └ restriction_no
  • String
  • TBIDRCOBJ3846202304200015
  • 限购编码
  • └ periods
  • Number
  • 1
  • 限购期数
  • └ period_type
  • String
  • D
  • 限购类别
  • └ current_period
  • Number
  • 1
  • 当前期数
  • └ plan_item_id
  • Number
  • 608
  • 计划实例id
  • └ plan_id
  • Number
  • 579
  • 计划ID
  • └ status
  • Number
  • 0
  • 状态
  • └ unique_key
  • String
  • 579_608_656851744680
  • 唯一键
  • └ plan_name
  • String
  • 创建测试
  • 名称
error_message String sellerId can not be null 错误信息
fail Boolean false 是否失败

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
IndustryApplestoreRestrictionQueryRequest req = new IndustryApplestoreRestrictionQueryRequest();
IndustryApplestoreRestrictionQueryRequest.RestrictionInfoQuery obj1 = new IndustryApplestoreRestrictionQueryRequest.RestrictionInfoQuery();
obj1.setRestrictionIds("656851744680");
obj1.setRestrictionType("2");
obj1.setChannel("PC");
obj1.setStartTime(StringUtils.parseDateTime("2023-05-11 00:00:00"));
obj1.setEndTime(StringUtils.parseDateTime("2023-05-11 00:00:00"));
obj1.setBusinessType("CE_APPLE");
req.setRestrictionInfoQuery(obj1);
IndustryApplestoreRestrictionQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<industry_applestore_restriction_query_response>
    <data>
        <restriction_info_v_o>
            <conflict_with_other>false</conflict_with_other>
            <restriction_plan_vo>
                <start_time>1684807188000</start_time>
                <end_time>1684807188000</end_time>
                <out_rule_id>2282952446</out_rule_id>
                <restriction_no>TBIDRCOBJ3846202304200015</restriction_no>
                <periods>1</periods>
                <period_type>D</period_type>
                <current_period>1</current_period>
                <plan_item_id>608</plan_item_id>
                <plan_id>579</plan_id>
                <status>0</status>
                <unique_key>579_608_656851744680</unique_key>
                <plan_name>创建测试</plan_name>
            </restriction_plan_vo>
        </restriction_info_v_o>
    </data>
    <error_message>sellerId can not be null</error_message>
    <fail>false</fail>
</industry_applestore_restriction_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

返回
顶部