定制巴士创建订单接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
lineId | String | 可选 | xxxxxxxx | 路线id | |
scheduleId | String | 可选 | X0001 | 排班id | |
alitripOrderId | String | 可选 | 23334040404 | 飞猪平台订单号 | |
alipayTradeNo | String | 可选 | 1223939393993939399339 | 支付宝流水号 | |
goodsId | String | 可选 | 964455ALD | 商品id | |
fromDate | String | 可选 | 2018-11-01 | 出发日期 | |
fromTime | String | 可选 | 23:00:00 | 发车时间 | |
ticketAmount | Number | 可选 | 1000 | 票金额(单位分) | |
orderAmount | Number | 可选 | 10000 | 订单金额(单位分) | |
ticketCount | Number | 可选 | 2 | 票数 | |
fromCityName | String | 可选 | 成都 | 出发城市名称 | |
fromCityCode | String | 可选 | 001 | 出发城市编码 | |
toCityName | String | 可选 | 青城山 | 到达城市名称 | |
toCityCode | String | 可选 | 001 | 到达城市编码 | |
fromStationName | String | 可选 | 人民广场 | 出发车站名称 | |
fromStationCode | String | 可选 | 0224 | 出发车站code | |
toStationName | String | 可选 | 青城山凉亭 | 到达车站名称 | |
toStationCode | String | 可选 | 0245 | 到达车站cod | |
customDepartureAddress | String | 可选 | 成都第一中学 | 用户指定的上门接详细地址,当toStationCode提供上门接服务时必填 | |
customDepartureLongitude | String | 可选 | 31.267343 | customDepartureAddress的经度,当到达站提供送上?服务时必填 | |
customDepartureLatitude | String | 可选 | 31.267343 | customDepartureAddress的纬度,当到达站提供送上?服务时必填 | |
customDestinationAddress | String | 可选 | 成都第一小学 | 用户指定的送上门详细地址,当toStationCode提供送上门服务时必填 | |
customDestinationLongitude | String | 可选 | 31.267343 | customDestinationAddress的经度,当到达站提供送上?门服务时必填 | |
customDestinationLatitude | String | 可选 | 31.267343 | customDestinationAddress的纬度,当到达站提供送上?服务时必填 | |
contactName | String | 可选 | 罗大佑 | 联系电话 | |
contactCertificateType | String | 可选 | 1 | 联系人证件类型 | |
contactCertificateNo | String | 可选 | 212100198902171763 | 联系人证件号 | |
contactMobile | String | 可选 | 189113344343 | 联系人电话 | |
ticket | Ticket [] | 可选 |
|
票信息 | |
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
retCode | String | 0 | 业务结果编码(是必填) |
retDesc | String | 成功 | 业务结果描述(是必填) |
alitripOrderId | String | 1234567 | 飞猪平台订单id(是必填) |
agentOrderId | String | 3345678 | 商家订单id(必填) |
success | Boolean | true | 业务是否成功(是必填) |
startTime | String | 2022-05-11 11:00:00 | 发车时间,适用车次发车时间有变动 |
ticketPrice | String | 1000 | 车次票价,适用车次票价有变动(单位分) |
{"goodsId":"964455ALD","fromStationName":"人民广场","contactCertificateType":"1","toStationCode":"0245","contactCertificateNo":"212100198902171763","customDestinationLongitude":"31.267343","customDestinationLatitude":"31.267343","ticketAmount":1000,"orderAmount":10000,"fromTime":"23:00:00","fromCityName":"成都","toCityCode":"001","alitripOrderId":"23334040404","scheduleId":"X0001","toCityName":"青城山","contactMobile":"189113344343","ticketCount":2,"ticket":[{"passengerName":"罗大佑","price":2500,"certificate":"1","passengerId":"33499","commission":100,"priceTypeId":"123","certificateNo":"212100198902171763","specialCode":"child"}],"contactName":"罗大佑","alipayTradeNo":"1223939393993939399339","lineId":"xxxxxxxx","customDepartureLatitude":"31.267343","fromDate":"2018-11-01","toStationName":"青城山凉亭","fromCityCode":"001","customDepartureLongitude":"31.267343","customDepartureAddress":"成都第一中学","fromStationCode":"0224","customDestinationAddress":"成都第一小学"}
{ "retCode":"0", "retDesc":"成功", "alitripOrderId":"1234567", "agentOrderId":"3345678", "success":true, "startTime":"2022-05-11 11:00:00", "ticketPrice":"1000" }
{"retDesc":"Illegal request","success":"false","retCode":"sign-check-failure"}
错误码 | 错误描述 | 解决方案 |
---|