基本信息
| Item |
Info |
| URL |
/nsc/v1/orders |
| Method |
GET |
接口输入参数
| 参数名 |
必选 |
类型 |
说明 |
| channel |
是 |
string |
渠道,系统会对 channel 和 app_id 做相关性校验 |
| user_id |
否 |
string |
用户名,nio 用户传入 |
| channel_user_id |
否 |
string |
渠道用户名,企业对接必传 |
| start_time |
是 |
timestamp |
查询订单创建的最早时间 |
| end_time |
是 |
timestamp |
查询订单创建的最晚时间 |
| offset |
否 |
integer |
查询开始位置偏移量 |
| limit |
否 |
integer |
查询数据限制量 |
注意:user_id和channel_user_id必传且只传其一
返回示例
{
"result_code":"success",
"debug_msg":"success",
"display_msg":"success",
"server_time":1511914500,
"data":{
"total_count:":100,
"orders":[
{
"order_id":"",
"user_id":"",
"owner_id":"",
"vehicle_id":"",
"business":"",
"service":"",
"sub_service": "",
"service_mode":0,
"is_requirement_frozen":true,
"schedule_mode":0,
"original_start_time":1511914500,
"original_end_time":1511927100,
"estimate_start_time":1511914500,
"estimate_end_time":1511927100,
"actual_serve_start_time":1511914500,
"actual_serve_end_time":1511928800,
"remark":"",
"city_code":"",
"region_id":"",
"cost":14.5,
"bonus":12,
"status":"",
"order_flow_status":"",
"pay_in_arrears":true,
"payment_status":1,
"source":"",
"schedule_timing":0,
"type":"INSTANT",
"resource_types":"",
"creation_time":"",
"update_time":""
}
]
}
}
返回参数说明
| 参数名 |
类型 |
说明 |
| total_count |
int |
总数 |
| order_id |
string |
订单 Id |
| user_id |
string |
用户 Id |
| owner_id |
string |
主用车人 Id |
| vehicle_id |
string |
车辆 Id |
| business |
string |
业务类型 |
| service |
string |
服务类型 |
| sub_service |
String |
子服务类型, 参见 枚举值定义-Sub-Service |
| service_mode |
byte |
0: normal, 1: offline |
| is_requirement_frozen |
boolean |
需求是否已冻结 |
| schedule_mode |
byte |
0: system, 1: manual |
| original_start_time |
timestamp |
下单时刻,系统计算的预计开始时间,通常为承诺给用户的取车时间 |
| original_end_time |
timestamp |
下单时刻,系统计算的预计完成时间,通常为承诺给用户的还车时间 |
| estimate_start_time |
timestamp |
当前时刻,系统计算的预计开始时间,通常为取车时间 |
| estimate_end_time |
timestamp |
当前时刻,系统计算的预计完成时间,通常为还车时间 |
| actual_serve_start_time |
timestamp |
订单实际的服务开始时间,取值为第一个 task 小哥接单时间 |
| actual_serve_end_time |
timestamp |
订单的实际服务完成时间,取值为最后一个 task 的完成时间,通常为还车时间 |
| remark |
string |
备注 |
| city_code |
string |
城市编号 |
| delivery_type |
string |
交车方式:STAFF, SELF, DRIVE_IN |
| region_id |
string |
服务区域编号 |
| cost |
double |
订单价格 |
| bonus |
double |
订单积分 |
| status |
int |
订单状态,参见 枚举值定义-一键加电订单状态 |
| order_flow_status |
string |
订单流状态 |
| pay_in_arrears |
boolean |
是否欠费 |
| payment_status |
int |
支付状态,1:未支付,2:已支付 |
| source |
int |
下单来源 。0:用户,1:系统,默认来源为用户 |
| schedule_timing |
int |
资源分配时间 0:立即 1:延迟分配 |
| type |
string |
订单类型 |
| resource_types |
string |
订单指定的资源类型,PM, PS, CS 多个用逗号分隔 |
| creation_time |
timestamp |
创建时间 |
| update_time |
timestamp |
更新时间 |