文档中心 > API类目 > 闲鱼租房

alibaba.idle.house.order.shorterm.notify (短租订单下单成功回传)

闲鱼租房短租订单下单成功回传

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
order_id String 可选 3123455222 订单id
item_id Number 可选 31212343 房源id
order_status Number 可选 1 订单状态

响应参数

名称 类型 示例值 描述
result UserDataResult 订单状态回传结果
  • └ error_msg
  • String
  • INVALID_ACCOUNT
  • 错误信息
  • └ success
  • Boolean
  • false
  • 操作是否成功
  • └ error_code
  • String
  • INVALID_ACCOUNT
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleHouseOrderShortermNotifyRequest req = new AlibabaIdleHouseOrderShortermNotifyRequest();
req.setOrderId("3123455222");
req.setItemId(31212343L);
req.setOrderStatus(1L);
AlibabaIdleHouseOrderShortermNotifyResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_house_order_shorterm_notify_response>
    <result>
        <error_msg>INVALID_ACCOUNT</error_msg>
        <success>false</success>
        <error_code>INVALID_ACCOUNT</error_code>
    </result>
</alibaba_idle_house_order_shorterm_notify_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

返回
顶部