文档中心 > API类目 > 天猫好房平台服务API

tmall.alihouse.platform.serviceorder.query (查询平台服务服务单信息)

查询平台服务服务单信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
store_id Number 必须 234567 门店id
service_order_no String 必须 124354635 服务单号

响应参数

名称 类型 示例值 描述
result Result 返回响应信息
  • └ result_code
  • String
  • 1
  • 结果code 1 成功
  • data
  • ServiceInfoResponse
  • 服务单信息
  • compensate_details
  • CompensateDetailDTO []
  • 赔偿单信息
  • └ actual_amt
  • Number
  • 1
  • 实际赔付金额
  • └ apply_amt
  • Number
  • 1
  • 申请金额
  • └ case_amt
  • Number
  • 1
  • 判断金额
  • └ comment
  • String
  • 备注
  • 备注
  • └ compensate_order_no
  • String
  • 12312312
  • 赔付单号
  • └ service_order_no
  • String
  • 123412312
  • 服务单号
  • └ status
  • String
  • AGREE
  • 赔付单状态
  • └ store_id
  • Number
  • 123123123
  • 门店id
  • service_order
  • ServiceOrderDTO
  • 服务单对象
  • └ service_order_no
  • String
  • 1231231
  • 服务单号
  • └ service_status
  • String
  • INIT
  • 服务单状态
  • └ service_type
  • Number
  • 3
  • 服务单类型 3, "纠纷"
  • └ biz_type
  • Number
  • 1
  • 服务单业务类型 新二租 1新房
  • └ punish_cancel_time
  • Number
  • 214325364534
  • 惩罚取消时间
  • └ punish_comment
  • String
  • 惩罚comment
  • 惩罚comment
  • └ punish_status
  • String
  • R
  • 惩罚状态 R 惩罚
  • └ punish_time
  • Number
  • 135425341
  • 惩罚时间
  • └ punish_timeout_time
  • Number
  • 24132
  • 惩罚超时时间
  • └ question_content
  • String
  • 问题内容
  • 问题内容
  • └ question_duty
  • String
  • SELLER
  • 问题责任 "INVALID", "问题无效" ,SELLER "卖家责任" ,"BUYER", "买家责任"
  • └ question_obj_id
  • String
  • 12342553412
  • 问题对象id
  • └ question_obj_type
  • String
  • 01
  • 问题对象类型. 01--> 订单
  • └ question_store_id
  • Number
  • 12312312
  • 问题门店
  • └ question_seller_id
  • Number
  • 1231241
  • 问题关联店铺id
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ extend_info
  • String
  • {"":""}
  • 扩展信息
  • └ result_desc
  • String
  • success
  • 结果信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAlihousePlatformServiceorderQueryRequest req = new TmallAlihousePlatformServiceorderQueryRequest();
req.setStoreId(234567L);
req.setServiceOrderNo("124354635");
TmallAlihousePlatformServiceorderQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_alihouse_platform_serviceorder_query_response>
    <result>
        <result_code>1</result_code>
        <data>
            <compensate_details>
                <compensate_detail_d_t_o>
                    <actual_amt>1</actual_amt>
                    <apply_amt>1</apply_amt>
                    <case_amt>1</case_amt>
                    <comment>备注</comment>
                    <compensate_order_no>12312312</compensate_order_no>
                    <service_order_no>123412312</service_order_no>
                    <status>AGREE</status>
                    <store_id>123123123</store_id>
                </compensate_detail_d_t_o>
            </compensate_details>
            <service_order>
                <service_order_no>1231231</service_order_no>
                <service_status>INIT</service_status>
                <service_type>3</service_type>
                <biz_type>1</biz_type>
                <punish_cancel_time>214325364534</punish_cancel_time>
                <punish_comment>惩罚comment</punish_comment>
                <punish_status>R</punish_status>
                <punish_time>135425341</punish_time>
                <punish_timeout_time>24132</punish_timeout_time>
                <question_content>问题内容</question_content>
                <question_duty>SELLER</question_duty>
                <question_obj_id>12342553412</question_obj_id>
                <question_obj_type>01</question_obj_type>
                <question_store_id>12312312</question_store_id>
                <question_seller_id>1231241</question_seller_id>
            </service_order>
        </data>
        <success>true</success>
        <extend_info>{&quot;&quot;:&quot;&quot;}</extend_info>
        <result_desc>success</result_desc>
    </result>
</tmall_alihouse_platform_serviceorder_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

返回
顶部