船票查询余票
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
to_station_name | String | 可选 | 古北水镇 | 到达港口名称 | |
from_city_code | String | 可选 | C001 | 出发城市编码 | |
ship_number_param_list | ShipNumber [] | 可选 |
|
班次信息 | |
|
|||||
from_city_name | String | 可选 | 北京 | 出发城市名称 | |
depart_date | String | 可选 | 2018-08-80 | 出发日期 | |
extAttr | String | 可选 | {"param":"param"} | 扩展属性 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ret_desc | String | 成功 | 错误描述 |
ship_seat_list | ShipSeat [] | 列表 | |
|
|||
ret_code | String | 0 | 错误码 |
success | Boolean | true | 成功状态 |
{"to_station_name":"古北水镇","from_city_name":"北京","ship_number_param_list":[{"depart_time":"2018-08-80 08:00:00","goods_id":"99988800","ship_number":"b001","schedule_id":"123456789"}],"from_city_code":"C001","depart_date":"2018-08-80","extAttr":"{\"param\":\"param\"}"}
{ "ret_desc":"成功", "ship_seat_list":[ { "distance":380, "depart_time":"2014-12-02 16:23:23", "goods_id":"001", "number":"1111", "to_station_name":"石家庄", "from_city_code":"001", "service_price":100, "from_city_name":"北京", "run_time":"130", "schedule_id":"22104DC8D66FE5B6C97F508154CD8F20", "to_station_code":"1111", "price_types":[ { "price_type_rule":"1.1.2-1.5米(不含1.5米)之间的儿童可至港口购买儿童票,超过1.5米请购买全价票;14周岁以上请购成人票。", "price_type":3, "price":40, "support_age_min":2, "support_age_max":14, "stock":10, "origin_price":40, "price_type_id":"10001" } ], "stock":100 } ], "ret_code":"0", "success":true }
{"success":"false","ret_desc":"Illegal request","ret_code":"sign-check-failure"}
错误码 | 错误描述 | 解决方案 |
---|