文档中心 > 综合交通-商家对接

qimen.alitrip.rail.trade.confirm (行程确认接口)

国际火车票商家占座接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
agent_order_id String 可选 12fax 订单号

响应参数

名称 类型 示例值 描述
result ResultSet 响应结果
  • └ err_msg
  • String
  • 系统异常
  • 错误信息
  • └ err_code
  • String
  • sys-error
  • 错误码
  • └ success
  • Boolean
  • true
  • 是否成功
  • module
  • ConfirmRS
  • module
  • └ asyncKey
  • String
  • xxaakey
  • key
  • └ isAsync
  • Boolean
  • true
  • 同步异步

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
AlitripRailTradeConfirmRequest req = new AlitripRailTradeConfirmRequest();
req.setAgentOrderId("12fax");
AlitripRailTradeConfirmResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<result>
    <err_msg>系统异常</err_msg>
    <err_code>sys-error</err_code>
    <success>true</success>
    <module>
        <asyncKey>xxaakey</asyncKey>
        <isAsync>true</isAsync>
    </module>
</result>

异常示例

  • 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

返回
顶部