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

taobao.industry.dajian.rp.calender.query (商家查询可约日历)

商家查询可约日历

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_modify_calendar_request QueryModifyCalendarRequest 必须 入参
  • └ seller_id
  • Number
  • 必须
  • 123
  • 卖家ID
  • └ biz_action_type_code
  • String
  • 必须
  • identify
  • 事件类型。DOOR_IDENTIFY("identify", "上门鉴定"), DOOR_PICKUP("pickup", "上门取件")
  • └ receiver_district_code
  • String
  • 可选
  • 360902
  • 三级地址Code
  • └ receiver_district_name
  • String
  • 必须
  • 余杭街道
  • 三级地址Name

响应参数

名称 类型 示例值 描述
result Result 返回值
  • data
  • RefundCalenderDay []
  • 可约日历列表
  • └ appoint_date
  • Date
  • 2024-03-11
  • Date类型。可约日期。yyyy-MM-dd
  • appoint_slice_list
  • RefundAppointSliceDTO []
  • 当前日期的可约时间片列表
  • └ code
  • String
  • day
  • 枚举编码
  • └ desc
  • String
  • 9:00-21:00
  • 枚举描述值
  • └ start_time
  • String
  • 9:00
  • 开始时间 9:00
  • └ end_time
  • String
  • 21:00
  • 结束时间 21:00
  • └ enable
  • Boolean
  • true
  • 是否可用.true:可用。false不可用
  • └ unable_reason
  • Boolean
  • 不可预约
  • 不可用原因
  • └ appoint_day
  • String
  • 2024-03-11
  • String
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • PARAM_INVALID
  • 错误编码
  • └ error_msg
  • String
  • 请求参数无效
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
IndustryDajianRpCalenderQueryRequest req = new IndustryDajianRpCalenderQueryRequest();
IndustryDajianRpCalenderQueryRequest.QueryModifyCalendarRequest obj1 = new IndustryDajianRpCalenderQueryRequest.QueryModifyCalendarRequest();
obj1.setSellerId(123L);
obj1.setBizActionTypeCode("identify");
obj1.setReceiverDistrictCode("360902");
obj1.setReceiverDistrictName("余杭街道");
req.setQueryModifyCalendarRequest(obj1);
IndustryDajianRpCalenderQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<industry_dajian_rp_calender_query_response>
    <result>
        <data>
            <refund_calender_day>
                <appoint_date>2024-03-11</appoint_date>
                <appoint_slice_list>
                    <refund_appoint_slice_d_t_o>
                        <code>day</code>
                        <desc>9:00-21:00</desc>
                        <start_time>9:00</start_time>
                        <end_time>21:00</end_time>
                        <enable>true</enable>
                        <unable_reason>不可预约</unable_reason>
                    </refund_appoint_slice_d_t_o>
                </appoint_slice_list>
                <appoint_day>2024-03-11</appoint_day>
            </refund_calender_day>
        </data>
        <success>true</success>
        <error_code>PARAM_INVALID</error_code>
        <error_msg>请求参数无效</error_msg>
    </result>
</industry_dajian_rp_calender_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

返回
顶部