文档中心 > API类目 > 天猫汽车

taobao.bbq.localization.queryrule (bbq查询接口)

喵养车旗舰店bbq限购查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_id String 可选 619969288783 商品id

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • data
  • BbqRuleDto
  • 1234
  • 返回素材id
  • └ owner
  • String
  • 限购规则归属人
  • └ version
  • Number
  • 限购规则版本
  • clauses
  • BbqClauseDto []
  • 限购规则具体内容
  • └ begin_time
  • Date
  • 开始时间
  • └ end_time
  • Date
  • 结束时间
  • └ uper_num
  • Number
  • 数量上限
  • └ id
  • Number
  • 限购规则id
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ error_code
  • Number
  • "isv.invalid-parameter"
  • 错误码
  • └ error_msg
  • String
  • "参数错误"
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
BbqLocalizationQueryruleRequest req = new BbqLocalizationQueryruleRequest();
req.setItemId("619969288783");
BbqLocalizationQueryruleResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<bbq_localization_queryrule_response>
    <result>
        <data>
            <owner></owner>
            <version></version>
            <clauses>
                <bbq_clause_dto>
                    <begin_time></begin_time>
                    <end_time></end_time>
                    <uper_num></uper_num>
                    <id></id>
                </bbq_clause_dto>
            </clauses>
        </data>
        <success>false</success>
        <error_code>&quot;isv.invalid-parameter&quot;</error_code>
        <error_msg>&quot;参数错误&quot;</error_msg>
    </result>
</bbq_localization_queryrule_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

返回
顶部