文档中心 > API类目 > 火车票API

taobao.train.agent.bookorders.get.vtwo (代理商获取待出票订单列表v2--增加鉴权校验)

代理商获取待出票订单列表,只返回订单号

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
agent_id Number 必须 123 代理商id

响应参数

名称 类型 示例值 描述
order_count Number 123 待处理订单总数
order_ids String 192512321111091,192512321111092,192512321111093 订单号集合,用半角逗号(,)连接,只会返回固定数量
error_msg String 错误描述 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TrainAgentBookordersGetVtwoRequest req = new TrainAgentBookordersGetVtwoRequest();
req.setAgentId(123L);
TrainAgentBookordersGetVtwoResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<train_agent_bookorders_get_vtwo_response>
    <order_count>123</order_count>
    <order_ids>192512321111091,192512321111092,192512321111093</order_ids>
    <error_msg>错误描述</error_msg>
</train_agent_bookorders_get_vtwo_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

返回
顶部