文档中心 > 京杭一键出票

京杭运价接口

更新时间:2016/12/21 访问次数:794

概述

通过整理全量和增量接口批量获取旗舰店产品数据,商家可对此数据进行加工后外投进行收单。

【京杭】——产品询价

【京杭】——增量产品接口

注:增量获取政策需要以最后一次为准,覆盖之前的政策信息
* taobao.alitrip.product.get

【京杭】——全量接口

注:全量接口返回的是运价压缩文件下载url,需要先下载文件流,然后解压读取文件。
* taobao.alitrip.fullproductpath.get

文件内容结构见下方

{
    "lastTime": "2016-11-28 01:00:00",
    "flights": [{
                "airlineCode": "CA",
                "arrAirport": "CAN",
                "arrTime": "2016-11-28 23:45:00",
                "cabins": [{
                    "cabin": "F",
                    "cabinClass": 0,
                    "cabinNumber": "3",
                    "cabinPrice": 2950,
                    "childPrice": 0,
                    "invalidTime": "2016-11-28 02:38:29",
                    "ticketPrice": 2950
                }, {
                    "cabin": "Y",
                    "cabinClass": 2,
                    "cabinNumber": "A",
                    "cabinPrice": 1180,
                    "childPrice": 0,
                    "invalidTime": "2016-11-28 02:38:29",
                    "ticketPrice": 1180
                }, {
                    "cabin": "V",
                    "cabinClass": 2,
                    "cabinNumber": "A",
                    "cabinPrice": 720,
                    "childPrice": 0,
                    "invalidTime": "2016-11-28 02:38:29",
                    "ticketPrice": 720
                }],
                "depAirport": "HGH",
                "depDate": "2016-11-28",
                "depTime": "2016-11-28 21:15:00",
                "flightNo": "CA3606"
            }, {
                "airlineCode": "CA",
                "arrAirport": "CAN",
                "arrTime": "2016-11-28 16:05:00",
                "cabins": [{
                    "cabin": "Y",
                    "cabinClass": 2,
                    "cabinNumber": "A",
                    "cabinPrice": 1120,
                    "childPrice": 0,
                    "invalidTime": "2016-11-28 02:38:29",
                    "ticketPrice": 1120
                }, {
                    "cabin": "A",
                    "cabinClass": 0,
                    "cabinNumber": "2",
                    "cabinPrice": 1300,
                    "childPrice": 0,
                    "invalidTime": "2016-11-28 02:38:29",
                    "ticketPrice": 1300
                }, {
                    "cabin": "Q",
                    "cabinClass": 2,
                    "cabinNumber": "A",
                    "cabinPrice": 800,
                    "childPrice": 0,
                    "invalidTime": "2016-11-28 02:38:29",
                    "ticketPrice": 800
                }, {
                    "cabin": "F",
                    "cabinClass": 0,
                    "cabinNumber": "4",
                    "cabinPrice": 2800,
                    "childPrice": 0,
                    "invalidTime": "2016-11-28 02:38:29",
                    "ticketPrice": 2800
                }],
                "depAirport": "HGH",
                "depDate": "2016-11-28",
                "depTime": "2016-11-28 13:50:00",
                "flightNo": "CA1721"
            }]
}

FAQ

关于此文档暂时还没有FAQ
返回
顶部