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

taobao.train.agent.returnorders.get.vtwo (获取待退票的订单v2--增加鉴权校验)

代理商用来获取待退票的订单列表及数量,防止代理商掉单。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
agent_id Number 必须 123 卖家ID
offline Number 可选 0 0 线上退票 1线下退票

响应参数

名称 类型 示例值 描述
order_count Number 123 待退票的订单数
order_ids String 123,212,122 子订单号字符串,每个订单以逗号分隔
error_msg String 错误说明 错误描述
main_order_ids String 1238883848 主订单id列表
refund_apply_times String 2017-01-01 19:00:00,2017-01-01 19:00:00 申请时间,每个时间以逗号分隔

请求示例

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

响应示例

  • XML示例
  • JSON示例
<train_agent_returnorders_get_vtwo_response>
    <order_count>123</order_count>
    <order_ids>123,212,122</order_ids>
    <error_msg>错误说明</error_msg>
    <main_order_ids>1238883848</main_order_ids>
    <refund_apply_times>2017-01-01 19:00:00,2017-01-01 19:00:00</refund_apply_times>
</train_agent_returnorders_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

返回
顶部