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

qimen.alitrip.custombus.offline.number.query (定制巴士查询停运班次接口)

定制巴士查询停运班次接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
fromCity String 可选 北京市 出发城市
toCity String 可选 天津市 到达城市
fromStationCode String 可选 北京南站 出发车站code
toStationCode String 可选 天津北站 到达车站code
fromDateTimeEnd String 可选 2022-05-21 00:00:00 出发时间止,可为空,筛选此时间段内发车的停运班次,不传则不做筛选
fromDateTimeBegin String 可选 2022-05-19 00:00:00 出发时间始,可为空,筛选此时间段内发车的停运班次,不传则不做筛选

响应参数

名称 类型 示例值 描述
retCode String 0 业务结果编码(是必填)
retDesc String 成功 业务结果描述(是必填)
success Boolean true 是否成功
lineSchedule LineSchedule [] 线路信息
  • line
  • Line
  • 路线信息
  • └ fromDurationEnd
  • String
  • 06:00
  • 出发时间止。发车时间类型为3、4时必填,为3时限制用户选择范围,为4时描述固定时间段的结束。
  • └ fromDate
  • String
  • 07:00
  • 出发日期,发车时间类型为1时必填
  • └ name
  • String
  • 成都-巴中
  • 线路名称
  • └ fromTime
  • String
  • 07:00
  • 出发时间,发车时间类型为1时必填
  • └ id
  • String
  • 123
  • 线路id
  • └ fromDurationBegin
  • String
  • 18:00
  • 出发时间起。发车时间类型为3、4时必填,为3时限制用户选择范围,为4时描述固定时间段的开始。
  • └ desc
  • String
  • 成都-巴中
  • 线路描述

请求示例

{"fromDateTimeEnd":"2022-05-21 00:00:00","toCity":"天津市","toStationCode":"天津北站","fromStationCode":"北京南站","fromDateTimeBegin":"2022-05-19 00:00:00","fromCity":"北京市"}

响应示例

{
    "retCode":"0",
    "retDesc":"成功",
    "success":true,
    "lineSchedule":[
        {
                "line":{
                    "fromDurationEnd":"06:00",
                    "fromDate":"07:00",
                    "name":"成都-巴中",
                    "fromTime":"07:00",
                    "id":"123",
                    "fromDurationBegin":"18:00",
                    "desc":"成都-巴中"
                }
        }
    ]
}

验签示例

{"retDesc":"Illegal request","success":"false","retCode":"sign-check-failure"}

错误码解释

错误码 错误描述 解决方案

API工具

FAQ

返回
顶部