文档中心 > API类目 > 酒店交易API

taobao.xhotel.order.distribution.tmc.list (特殊场景查询订单接口)

用于特殊场景查询订单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tmc_order_list_top_query_req TmcOrderListTopQueryReq 必须 查询参数
  • └ scene_code
  • String
  • 必须
  • 01
  • 场景码
  • └ start_time
  • Date
  • 必须
  • 2025-08-17 15:00:00
  • 订单创建时间起
  • └ end_time
  • Date
  • 必须
  • 2025-08-24 15:00:00
  • 订单创建时间止(不超过七天)
  • └ distributor
  • String
  • 必须
  • test
  • 分销商

响应参数

名称 类型 示例值 描述
error_msg String 系统错误 失败原因
result Result [] 结果
  • └ tp_chain_order_id
  • Number
  • 123214214214
  • tp链路订单id
  • └ tid
  • Number
  • 123214124141242
  • 飞猪订单id
error_resp_code Number 1111 失败码
code4_dev String 500 失败码for开发
msg_for_dev String 系统错误 失败原因
is_success Boolean true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelOrderDistributionTmcListRequest req = new XhotelOrderDistributionTmcListRequest();
XhotelOrderDistributionTmcListRequest.TmcOrderListTopQueryReq obj1 = new XhotelOrderDistributionTmcListRequest.TmcOrderListTopQueryReq();
obj1.setSceneCode("01");
obj1.setStartTime(StringUtils.parseDateTime("2025-08-17  15:00:00"));
obj1.setEndTime(StringUtils.parseDateTime("2025-08-24  15:00:00"));
obj1.setDistributor("test");
req.setTmcOrderListTopQueryReq(obj1);
XhotelOrderDistributionTmcListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<xhotel_order_distribution_tmc_list_response>
    <error_msg>系统错误</error_msg>
    <result>
        <result>
            <tp_chain_order_id>123214214214</tp_chain_order_id>
            <tid>123214124141242</tid>
        </result>
    </result>
    <error_resp_code>1111</error_resp_code>
    <code4_dev>500</code4_dev>
    <msg_for_dev>系统错误</msg_for_dev>
    <is_success>true</is_success>
</xhotel_order_distribution_tmc_list_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

返回
顶部