请求行程
正式环境
https://api.xiaojukeji.com/
正式环境
https://api.xiaojukeji.com/
POST
/v1/orders
{
"error":"code(62003)",
"error_detail":"请进行录音授权"
}
{
"error":"code(62004)",
"error_detail":"请进行录音、录像授权"
}
{
"error":"code(62005)",
"error_detail":"封禁拦截"
}
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.xiaojukeji.com//v1/orders' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{"oid":"1234567890",product":{"product_type":"private-car","ride_type":"compact"},"origin":{"lng":116.312615,"lat":40.058922,"name":"西二旗地铁站","address":"上地十街"},"destination":{"lng":116.344434,"lat":39.998568,"name":"五道口购物中心","address":"成府路"},"passenger":{"phone":"13900000000","name":"Will","lng":116.312615,"lat":40.058922},"device":{"time":"2016-03-01T10:00:00+0800","imei":"123aswdwe1235","suuid":"123juuiuiausd"},"departure_time":"2016-03-01T10:00:00+0800","create_time":"2016-03-01T10:00:00+0800","estimate_id":"asdasdasdad","map_type":"wgs","risk_info":{"pay_type":"baidu","time":"2016-03-01T10:00:00+0800","lng":116.344434,"lat":39.998568,"deviceid":"asdfkwhfmd","ip":"127.0.0.1","wifi_mac":"asdqweert"},"card_info":{"card_id":"1234567890","people_id":"123asdqwe","ip":"127.0.0.1","wifi_mac":"asdqweert","imei":"qweasdrt123","deviceid":"qweasdrt123","status":"1","channel":"baidu","source":"webapp","time":"2016-03-01T10:00:00+0800","lng":116.344434,"lat":39.998568},"login_info":{"ip":"127.0.0.1","imei":"qweasdrt123","deviceid":"qweasdrt123","wifi_mac":"asdqweert","time":"2016-03-01T10:00:00+0800","lng":116.344434,"lat":39.998568}}}'
响应示例响应示例
{
"oid": "string",
"didi_oid": "string",
"status": "string",
"product_type": "string",
"ride_type": "string"
}
请求参数
Header 参数
Authorization
string
必需
默认值:
Bearer domain|{{access_token}}
Body 参数application/json