汽车票定制巴士-查询余票信息
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| fromStationCode | String | 可选 | 101 | 出发车站 | |
| toStationCode | String | 可选 | 102 | 到达车站 | |
| fromDate | String | 必须 | 2022-05-19 | 出发日期 | |
| fromTime | String | 必须 | 10:00 | 出发时间 | |
| lineId | String | 可选 | 111 | 线路id | |
| scheduleId | String | 必须 | 123 | 班次id |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| retCode | String | 0 | 错误码 |
| retDesc | String | 成功 | 错误信息 |
| leftTicketCnt | Number | 10 | 余票数 |
| success | Boolean | true | 是否成功 |
| startTime | String | 2022-05-17 11:00:00 | 发车时间,适用车次发车时间有变动 |
| ticketPrice | String | 2000 | 车次票价,适用车次票价有变动(单位分) |
| saleStatus | Number | 1 | 0停售1可售 |
{"fromDate":"2022-05-19","fromTime":"10:00","toStationCode":"102","lineId":"111","fromStationCode":"101","scheduleId":"123"}
{
"retCode":"0",
"retDesc":"成功",
"leftTicketCnt":10,
"success":true,
"startTime":"2022-05-17 11:00:00",
"ticketPrice":"2000",
"saleStatus":1
}
{"retDesc":"Illegal request","success":"false","retCode":"sign-check-failure"}
| 错误码 | 错误描述 | 解决方案 |
|---|---|---|
| response-body-parse-error |