2.7.1 火车订单列表
接口说明
- 1.最新接口
- 2.查询火车订单列表接口 通过该接口可以查询企业使用分贝通APP下的火车订单信息
- 3.该接口一次最多可查询1000条数据,如订单数超过1000,则需要分页查询
请求方式 | 请求地址 |
---|---|
POST | /open/api/train/order/list |
字段 | 名称 | 类型 | 必填 | 描述 |
---|---|---|---|---|
timestamp | 时间戳 | long | Y | 13位时间戳 |
sign | 签名 | string | Y | |
access_token | token | string | Y | 登录 token |
employee_id | 操作人id | string | Y | 操作人id,调用接口人 id |
employee_type | 用户类型 | string | Y | 类型,0为分贝用户,1为第三方用户 |
data | 请求数据 | jsonobject | Y | |
data.state | 查询状态 | integer | Y | 0全部,1正处理,2已完成 |
data.name_or_phone | 乘客/下单人姓名/手机号 | string | N | 17080151667 |
data.name_or_phone_type | 乘客/下单人姓名/手机号类型 | string | N | 张三 |
data.search_category | 搜索维度 | integer | N | 1:企业 2:个人 |
data.order_date_begin | 下单开始日期 | string | N | yyyy-MM-dd |
data.order_date_end | 下单结束日期 | string | N | yyyy-MM-dd |
data.page_index | 页码 | integer | N | 1(默认值) |
data.page_size | 每页显示条数 | integer | N | 10(默认值) |
请求示例:
"access_token":"5747fbc10f0e60e0709d8d722",
"sign":"oihfnlyeofdh98",
"timestamp":124124325,
"employee_id":"59b74c1323445f2d54dd07922",
"employee_type":"1",
"data":{
"state":0
}
响应数据:
字段 | 名称 | 类型 | 必填 | 描述 |
---|---|---|---|---|
order_id | 订单ID | string | Y | 订单ID |
is_grab_order | 是否抢票订单 | boolean | Y | false,true |
passenger_names | 乘客信息 | jsonarray | Y | 所有乘客姓名数组 |
from_station_name | 出发站名称 | string | Y | |
to_station_name | 到达站名称 | string | Y | 张三 |
total_price | 总价 | double | Y | 3.0 |
can_process | 是否可以查看订单详情 | boolean | Y | true |
is_external_order | 是否外采订单 | integer | Y | 1:是,0:否 |
total_price_str | 订单金额字符串 | string | Y | 订单金额字符串 |
status | 订单状态 | jsonobject | Y | 订单状态信息 |
status.key | 状态码 | integer | Y | 3101 |
status.value | 订单状态名称 | string | Y | 已取消 |
departure_time | 出发时间 | integer | Y | 1509686700000 |
arrival_time | 到达时间 | integer | Y | 1509691260000 |
train_code | 火车车次 | String | Y | 6026 |
is_external_order | 是否外采订单 | integer | Y | 1:是,0:否 |
total_price_str | 订单金额字符串 | string | Y | 订单金额字符串 |
employee_name | 下单人姓名 | string | Y | 张三 |
employee_id | 下单人id | string | Y | uejk8489u78078993u7848 |
seat_type | 席座类型 | string | Y | 一等座,二等座 |
create_time | 下单时间 | integer | Y |
{
"request_id": "WvhdVHK5vl4PbWtje0wW",
"code": 0,
"msg": "success",
"data": {
"results": [
{
"order_id": "5aab90ac279863130a86296f",
"is_grab_order": false,
"status": {
"key": 3101,
"value": "已取消"
},
"departure_time": 1523227380000,
"arrival_time": 1523248740000,
"train_code": "G101",
"passenger_names": [
"李四"
],
"from_station_name": "北京南",
"to_station_name": "上海虹桥",
"total_price": 563,
"can_process": true,
"employee_name":"张三",
"employee_id":"56768798765645",
"seat_type":"一等座",
"create_time":1523533736260,
"is_external_order": 0,
"total_price_str": "¥563.00"
},
{
"order_id": "5aab7b852798637d05ff3695",
"is_grab_order": false,
"status": {
"key": 3102,
"value": "已关闭"
},
"departure_time": 1522191180000,
"arrival_time": 1522207440000,
"train_code": "G89",
"passenger_names": [
"韩梅梅"
],
"from_station_name": "北京西",
"to_station_name": "西安北",
"total_price": 515.5,
"can_process": true,
"employee_name":"张三",
"employee_id":"56768798765645",
"seat_type":"一等座",
"create_time":1523533736260,
"is_external_order": 0,
"total_price_str": "¥515.50"
},
{
"order_id": "5aa88e332798634316002512",
"is_grab_order": false,
"status": {
"key": 3102,
"value": "已关闭"
},
"departure_time": 1522128300000,
"arrival_time": 1522132860000,
"train_code": "6026",
"passenger_names": [
"韩梅梅"
],
"from_station_name": "九江",
"to_station_name": "武穴",
"total_price": 3,
"can_process": true,
"employee_name":"张三",
"employee_id":"56768798765645",
"seat_type":"一等座",
"create_time":1523533736260,
"is_external_order": 0,
"total_price_str": "¥3.00"
},
{
"order_id": "5aa37c1927986357fd851324",
"is_grab_order": false,
"status": {
"key": 3102,
"value": "已关闭"
},
"departure_time": 1521619200000,
"arrival_time": 1521640200000,
"train_code": "G665",
"passenger_names": [
"韩梅梅"
],
"from_station_name": "北京西",
"to_station_name": "西安北",
"total_price": 1627.5,
"can_process": true,
"employee_name":"张三",
"employee_id":"56768798765645",
"seat_type":"一等座",
"create_time":1523533736260,
"is_external_order": 0,
"total_price_str": "¥1627.50"
}
],
"total_count": 47
}
}