文档中心 > API类目 > 天猫服务数据API

alibaba.homedecoration.area.capacity.usage.query (服务商区域容量使用情况查询)

服务商区域容量使用情况查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
area_capacity_usage_query_top_request AreaCapacityUsageQueryTopRequest 必须 区域容量使用情况查询参数
  • └ location_id
  • Number
  • 必须
  • 330110
  • 区域id,要求区域id,区县id不存在传市id
  • └ query_days
  • Number
  • 必须
  • 7
  • 查询天数,当前日期往后最长支持查询30天

响应参数

名称 类型 示例值 描述
result Result 结果
  • value
  • AreaCapacityUsageTop []
  • 容量使用明细集合
  • └ service_date
  • String
  • ""
  • 服务日期,格式 yyyy-MM-dd
  • └ time_slot_code
  • String
  • ""
  • 时间波次编码:am 上午 / pm 下午
  • └ total_minutes
  • Number
  • 0
  • 总分钟数
  • └ remain_minutes
  • Number
  • 0
  • 剩余分钟数
  • └ status
  • String
  • ""
  • 容量状态:FULL 已满 / AVAILABLE 可用
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • ""
  • 错误编码
  • └ error_msg
  • String
  • ""
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHomedecorationAreaCapacityUsageQueryRequest req = new AlibabaHomedecorationAreaCapacityUsageQueryRequest();
AlibabaHomedecorationAreaCapacityUsageQueryRequest.AreaCapacityUsageQueryTopRequest obj1 = new AlibabaHomedecorationAreaCapacityUsageQueryRequest.AreaCapacityUsageQueryTopRequest();
obj1.setLocationId(330110L);
obj1.setQueryDays(7L);
req.setAreaCapacityUsageQueryTopRequest(obj1);
AlibabaHomedecorationAreaCapacityUsageQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_homedecoration_area_capacity_usage_query_response>
    <result>
        <value>
            <area_capacity_usage_top>
                <service_date>&quot;&quot;</service_date>
                <time_slot_code>&quot;&quot;</time_slot_code>
                <total_minutes>0</total_minutes>
                <remain_minutes>0</remain_minutes>
                <status>&quot;&quot;</status>
            </area_capacity_usage_top>
        </value>
        <success>true</success>
        <error_code>&quot;&quot;</error_code>
        <error_msg>&quot;&quot;</error_msg>
    </result>
</alibaba_homedecoration_area_capacity_usage_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

返回
顶部