5.下单
POST
https://openapi-pre.huolala.cn/api/e-order-request
服务入口
调用特别注意事项
编码
前端UI参考
公共请求参数
参数名
类型
描述
必填
app_key
string
开发者应用唯一标识.
必填
access_token
string
货拉拉用户授权给开发者应用的账户访问令牌码
必填
nonce_str
string
随机数,用户自定义,60s内不可重复使用,仅用于保证签名不可预测;示例:474
必填
timestamp
string
Unix时间戳(单位:秒),60s内有效,超过60s则超时;示例:1565225482
必填
应用级请求参数
参数名
类型
描述
必填
city_id
int
下单城市id; 示例:1002
必填
city_info_revision
int
当前最新的城市版本号; 值来源:调用“获取城市可选车型信息”接口返回值data.revision; 当版本号不是最新时会返回公共错误码21002,需要重新调用“获取城市可选车型信息”接口返回值revision;示例:777
必填
order_vehicle_id
int
下单车型id; 示例:17
必填
std_tag_arr
string
车型附加要求, 字符串数组;格式如:"[\"带尾板\"]";值可取“获取城市可选车型信息"接口返回值中data.vehicle_arr[0].vehicle_std_arr.name的值作为成员
可选
spec_req_arr
string
订单额外服务, 整型数组;格式如:"[2, 3, 5]";值可取“获取城市可选车型信息"接口返回值中data.spec_req_arr.type的值作为成员;1搬运 2小推车 3回单 4尾板 5返程 6回单拍照 7海外入仓 8代收货款;示例:2
可选
lat
double
发货地/收货地纬度;示例:22.573687282329747
必填
lon
double
发货地/收货地经度;示例:114.05621599118145
必填
name
string
地名; 示例:卓悦汇购物中心
必填
addr
string
地址详情; 示例:福田区梅康路
必填
city_id
int
所属城市id; 示例:1002
必填
district_name
string
所属区(县); 示例:福田区;
可选
house_number
string
楼层及门牌号
可选
contact_name
string
联系人
可选
contact_phone_no
string
联系人手机;示例:
可选
order_time
int
需用车时间(unix时间戳,单位(秒))
必填
total_price_fen
int
订单总金额(分);示例:1800; 值来源:"计价"接口返回值data.total_price_fen
必填
contact_name
string
下单联系人;示例:卡卡
必填
contact_phone_no
string
下单联系人手机;示例:18312581111
必填
pay_type
int
支付方式(3 余额支付,8 账期额度支付)
必填
order_reason
string
用车原因,限200字;
可选
remark
string
订单备注
可选