携程租车API查询
1) 请求地址
https://m.ctrip.com/restapi/soa2/13617/searchVehicleList
2) 调用方式:HTTP POST
3) 接口描述:
4) 请求参数:
{
"heads": {
"serviceFrom": "c_online",
"channel": "2",
"alliance": {
"id": "4897",
"sid": "2643841"
},
"union": {
"allianceid": "4897",
"sid": "2643841",
"ouid": "",
"click_time": "1598493806049",
"click_url": "https%3A%2F%2Fflights.ctrip.com%2Finternational%2Fsearch%2Fdomestic%3Fallianceid%3D4897%26sid%3D2643841%26utm_medium%3Dbaidu%26utm_campaign%3Dty%26utm_source%3Dbaiduppc%26bd_vid%3D11865632912535253552%26keywordid%3D2377220099",
"ext_value": "{\"pc_vid\":\"1598422883590.ap2t\"}"
}
},
"carhead": {
"serviceFrom": "c_online",
"channel": "2",
"alliance": {
"id": "4897",
"sid": "2643841"
},
"union": {
"allianceid": "4897",
"sid": "2643841",
"ouid": "",
"click_time": "1598493806049",
"click_url": "https%3A%2F%2Fflights.ctrip.com%2Finternational%2Fsearch%2Fdomestic%3Fallianceid%3D4897%26sid%3D2643841%26utm_medium%3Dbaidu%26utm_campaign%3Dty%26utm_source%3Dbaiduppc%26bd_vid%3D11865632912535253552%26keywordid%3D2377220099",
"ext_value": "{\"pc_vid\":\"1598422883590.ap2t\"}"
}
},
"head": {
"cid": "",
"ctok": "",
"cver": "",
"lang": "",
"sauth": "",
"sid": "2643841",
"syscode": ""
},
"cVer": "19.07.22",
"ptime": "2020/08/28 10:00:00",
"rtime": "2020/08/30 10:00:00",
"pinfo": {
"addr": "虹桥机场T2航站楼",
"lat": 31.193274,
"lng": 121.326276,
"cid": 2,
"cname": "上海"
},
"rinfo": {
"addr": "虹桥机场T2航站楼",
"lat": 31.193274,
"lng": 121.326276,
"cid": 2,
"cname": "上海"
},
"userGrade": 0,
"channel": 0,
"areatype": 1,
"sf": "c_pc",
"pickupondoor": 0,
"pickoffondoor": 0,
"vid": "",
"wlver": ""
}
POST参数:
字段名称 | 字段说明 | 类型 | 必填 | 备注 |
---|
0 | | string | Y | - |
1 | | string | Y | - |
2 | | string | Y | - |
3 | | string | Y | - |
4 | | string | Y | - |
5 | | string | Y | - |
6 | | string | Y | - |
7 | | string | Y | - |
8 | | string | Y | - |
9 | | string | Y | - |
10 | | string | Y | - |
11 | | string | Y | - |
12 | | string | Y | - |
13 | | string | Y | - |
14 | | string | Y | - |
15 | | string | Y | - |
16 | | string | Y | - |
17 | | string | Y | - |
18 | | string | Y | - |
19 | | string | Y | - |
20 | | string | Y | - |
21 | | string | Y | - |
22 | | string | Y | - |
23 | | string | Y | - |
24 | | string | Y | - |
25 | | string | Y | - |
26 | | string | Y | - |
27 | | string | Y | - |
28 | | string | Y | - |
29 | | string | Y | - |
30 | | string | Y | - |
31 | | string | Y | - |
32 | | string | Y | - |
33 | | string | Y | - |
34 | | string | Y | - |
35 | | string | Y | - |
5) 请求返回结果:
{
"code": "-1",
"msg": "取还车位置错误",
"rfexpend": null,
"spexpend": null,
"hitcache": null,
"pinfo": null,
"rinfo": null,
"filter": null,
"vfilter": null,
"lfilter": null,
"vendor": null,
"store": null,
"plist": null,
"labelmapping": null,
"recommend": null,
"encourage": null,
"bargainDesc": null,
"bvehicles": null,
"simpleList": null,
"rentcenter": null,
"activityTips": null,
"responseStatus": {
"Timestamp": "/Date(1598494884022+0800)/",
"Ack": "Success",
"Errors": [],
"Build": null,
"Version": null,
"Extension": [
{
"Id": "CLOGGING_TRACE_ID",
"Version": null,
"ContentType": null,
"Value": "2332591638362534800"
},
{
"Id": "RootMessageId",
"Version": null,
"ContentType": null,
"Value": "100025527-0a3c0a57-444026-4454258"
}
]
}
}
6) 请求返回结果参数说明:
字段名称 | 字段说明 | 类型 | 必填 | 备注 |
---|
code | | string | Y | - |
msg | | string | Y | - |
rfexpend | | string | Y | - |
spexpend | | string | Y | - |
hitcache | | string | Y | - |
pinfo | | string | Y | - |
rinfo | | string | Y | - |
filter | | string | Y | - |
vfilter | | string | Y | - |
lfilter | | string | Y | - |
vendor | | string | Y | - |
store | | string | Y | - |
plist | | string | Y | - |
labelmapping | | string | Y | - |
recommend | | string | Y | - |
encourage | | string | Y | - |
bargainDesc | | string | Y | - |
bvehicles | | string | Y | - |
simpleList | | string | Y | - |
rentcenter | | string | Y | - |
activityTips | | string | Y | - |
responseStatus | | string | Y | - |
Timestamp | | string | Y | - |
Ack | | string | Y | - |
Errors | | string | Y | - |
Build | | string | Y | - |
Version | | string | Y | - |
Extension | | string | Y | - |
Id | | string | Y | - |
ContentType | | string | Y | - |
Value | | string | Y | - |