支持中心 > 热门问题

【国际机票】订单列表查询调用失败

提交于: 2016-11-08 11:02:07

 

1,接口名称:taobao.alitrip.ie.agent.order.search
2:请求地址:http://gw.api.taobao.com/router/rest接口
3,appkey:23282838
4,Req参数:
ITopClient client = new DefaultTopClient(url, appkey, secret);

AlitripIeAgentOrderSearchRequest req = new AlitripIeAgentOrderSearchRequest();

req.BeginTime = DateTime.Parse("2016-11-07 00:00:01");

req.CurrentPage = 1L;

req.EndTime = DateTime.Parse("2016-11-08 23:59:59");

req.OrderStatus = "Close";

req.PageSize = 20L;

req.FareSource = 3L;

AlitripIeAgentOrderSearchResponse rsp = client.Execute(req, sessionKey);

返回的结果是:
<?xml version="1.0" encoding="utf-8" ?><alitrip_ie_agent_order_search_response><has_next>false</has_next><query_success>true</query_success><request_id>47s1xhf4thla</request_id></alitrip_ie_agent_order_search_response><!--top011250246112.eu13-->
返回的结果中 query_success=true,但没有任何记录值,但我们后台里确实是有记录的
另外 req.OrderStatus = "Close"; 这个地方好像只能传入一个状态的值,如果我们想获取所有的状态,怎么传值,谢谢。

Q: 环**际 - 2016-11-08 11:02:07


A:接口返回正常,只是没有数据,查不到数据的原因推断应该跟faresource参数值有关,faresource可以不填写,orderStatus只能填入一种状态,无法获取全部状态的订单
附faresource状态合集:Private(0, "私有运价"),Airline(2, "航司直连"),Publish(3, "公布运价"),AgentDirect(9, "代理人直连API"),Amadeus(10, "Amadeus"),PrivateStock(11, "私有库存"),TF(12,"TF"),AirlineEspeed(16, "航司直连ESPEED”);


 

返回
顶部