# 接口说明

  • 1.用车消息推送接口,现有接口推送消息只包含叫车成功及已取消状态
# 订单信息order_info:
字段 名称 类型 必填 描述
order_id 订单编号 string Y OMS202004291108520124863
origin_order_id 原单号 string Y OMS202004291108520176549
supplier_order_id 三方订单Id string Y 三方订单Id
status 状态码 integer Y 700
status_name 状态名称 string Y 已完成
supplier_name 供应商名称 string Y 曹操
departure_time 出发时间 string N 2020-04-29 11:08:52
departure_name 用车离开地的名称 string Y 用车离开地的名称
departure_address 用车离开地址 string Y 用车离开地址
arrival_time 到达时间 string N 2020-04-29 11:08:52
arrival_name 用车到达的名称 string Y 用车到达的名称
arrival_address 用车到达的地址 string Y 用车到达的地址
create_time 创建时间 string Y 2020-04-29 11:08:52
order_category_type 场景类型 integer Y 3:用车
order_category_name 场景类型名称 string Y 用车
order_op_type 订单方向 integer Y 10:正向单;20:逆向单
order_op_type_name 订单方向名称 string Y 正向单/逆向单
payment_time 支付时间 string N 2020-04-29 11:08:52
type_name 用车类型 string N 实时 预约
sensitive 敏感订单 boolean N true
is_exceed 是否超规 string N false
exceed_remark_reason 超规理由 string N 地点有变动
exceed_remark_detail 超规补充说明 string N 地点有变动
actual_distance 实际行驶公里数 double N 2.3
price_detail_info 订单金额明细 jsonArray N 订单金额明细
price_detail_info.name 名称 String N 套餐费
price_detail_info.amount 金额 Double N 12.50
price_detail_info.type 类型 String N basePrice
departure_city_name 出发城市名称 String N 出发城市名称
departure_city_id 出发城市id String N 出发城市id
arrival_city_id 到达城市名称 String N 到达城市名称
arrival_city_name 到达城市id String N 到达城市id
# 下单人信息user_info:
字段 名称 类型 必填 描述
id 下单人id string Y 5d70ba9b23445f04bc031156
name 下单人姓名 string Y 强仔
phone 下单人手机号 integer Y 18310480640
unit_id 下单人部门ID string Y 59a80dd92798630fd780babf
unit_name 下单人部门名称 string Y 嘟嘟搞测试
# 订单金额信息price_info:
字段 名称 类型 必填 描述
total_price 订单总金额 double Y 1
personal_total_pay 个人支付金额 double N 0
red_envelope 红包券支付金额 double N 0
coupon_amount 优惠券支付金额 double N 0
# 乘客信息passenger_info:
字段 名称 类型 必填 描述
name 乘客的名称 string Y 乘客的名称
phone 乘客的电话 string Y 乘客的电话
unit_id 下单人部门id string Y 59a80dd92798630fd780babf
unit_name 乘客部门名称 string Y 嘟嘟搞测试
full_unit_name 乘客部门全名称 string Y 嘟嘟搞测试
# 管控信息saas_info:
字段 名称 类型 必填 描述
is_exceed 是否超规 string N false
remark 下单事由 string N
cost_category 费用类别 string N 市场活动费
cost_attribution_list 管控费用信息 jsonArray Y 管控费用信息
cost_attribution_list.cost_attribution_category 费用归属类型1:部门;2:项目 integer N 1
cost_attribution_list.cost_attribution_id 费用归属id string N 59a80dd92798630fd780babf
cost_attribution_list.cost_attribution_name 费用归属名称 string N 嘟嘟搞测试
cost_attribution_list.cost_attribution_custom_ext 费用归属自定义字段 jsonArray N 费用归属自定义字段
cost_attribution_list.cost_attribution_custom_ext.custom_field_title 自定义字段名 string N 自定义字段名
cost_attribution_list.cost_attribution_custom_ext.custom_field_content 自定义字段值 string N 自定义字段值
cost_attribution 费用归属 jsonArray N 费用归属
cost_attribution.type 费用归属类型 integer N 费用归属类型枚举值:1,部门2,项目3,自定义档案
cost_attribution.archive_id 分贝通自定义档案ID string N 分贝通自定义档案ID
cost_attribution.third_archive_id 三方系统自定义档案ID string N 三方系统自定义档案ID
cost_attribution.archive_name 自定义档案名称 string N 自定义档案名称
cost_attribution.details 费用归属详情 jsonArray N 费用归属详情
cost_attribution.details.id 分贝通费用归属id string N 分贝通费用归属id
cost_attribution.details.third_id 三方系统费用归属id string N 当费用归属类(cost_attribution_type)为1时,需使用三方系统部门ID,为2时,为三方系统项目ID;为3时,为三方系统自定义档案项目ID。
cost_attribution.details.name 费用归属名称 string N 当费用归属类型(cost_attribution_type)为1时,需使用部门名称;为2时,为项目名称;为3时,为自定义档案项目名称。
cost_attribution.details.weight 费用归属权重 double N 费用归属的百分比
cost_attribution.details.amount 费用归属分摊金额 bigDecimal N 费用归属的分摊金额
notifier_info 订单通知人 jsonArray N 通知人信息
notifier_info.notifier_id 订单通知人id string N 通知人id
notifier_info.notifier_name 订单通知人名称 string N 通知人name
notifier_info.notifier_phone 订单通知人电话 string N 通知人notifier_phone
notifier_info.notifier_org_unit_id 通知人直属部门id string N 通知人直属部门id
notifier_info.notifier_org_unit_name 通知人直属部门名称 string N 通知人直属部门名称
notifier_info.notifier_org_unit_full_name 通知人层级部门 string N 通知人层级部门
cost_info 费用类别 jsonArray N
cost_info.amount 金额 Double N 1.00
cost_info.costCategoryCode 费用类别编码 String N 10013
cost_info.costCategory 费用类别名称 String N 服务费
cost_info.costAttributionGroupList 费用归属 jsonArray N
cost_info.costAttributionGroupList.category 审批流费用归属类型 1.部门 2.项目 3.自定义 String N 1
cost_info.costAttributionGroupList.categoryName 类型名称 String N 部门
cost_info.costAttributionGroupList.costAttributionRange 费用归属等级 int 1
cost_info.costAttributionGroupList.costAttributionList 新版费用归属列表 jsonArray
cost_info.costAttributionGroupList.costAttributionList.id 新版费用归属id String N xxx
cost_info.costAttributionGroupList.costAttributionList.name 新版费用归属name String N
cost_info.costAttributionGroupList.costAttributionList.weight 新版费用归属分摊比例 | String N 100
cost_info.costAttributionGroupList.costAttributionList.price 新版费用归属金额 Double 10.00
# 第三方信息third_info:
字段 名称 类型 必填 描述
user_id 下单人三方人员id string Y 213464191737612274
unit_id 下单人三方部门id string Y dinge78ced08591e110bf5bf40eda33b7ba0
cost_dept_id 三方费用归属部门id string N dinge78ced08591e110bf5bf40eda33b7ba0
cost_project_id 三方费用归属项目id string N dinge78ced08591e110bf5bf40eda33b7ba2
apply_id 三方用车审批单id string N a04d2547-9f9f-49f2-895f-124f5171b31d
passenger_user_id 乘客三方人员id string N dinge78ced08591e110bf5bf40eda33b7ba0
passenger_unit_id 乘客三方部门id string N 213464191737612274

{
	"order_info": {
      "departure_city_name": "",
      "departure_city_id ":"",
      "arrival_city_id":"",
      "arrival_city_name":"",
		"order_id": "5eaab72f23445f46685f8cc8",
        "origin_order_id": "5eaab72f23445f4687vd8763",
		"status": "700",
		"status_name": "已完成",
		"supplier_order_id": "139949602000",
		"create_time": "2020-04-30 19:32:01",
		"supplier_name": "曹操",
		"departure_name": "润诚中心",
		"departure_address": "东大桥路12号",
		"arrival_name": "中国人民解放军第二六三医院",
		"arrival_address": "通州区永顺南街141号",
		"order_category_type": 3,
		"order_category_name": "用车",
		"order_op_type": 10,
		"order_op_type_name": "正向单",
        "type_name": "预约",
        "sensitive": false,
        "actual_distance": 2.3,
        "payment_time": "2020-04-30 19:32:01",
        "exceed_remark_reason": "地点有变动",
        "exceed_remark_detail": "详情",
        "price_detail_info": [
          {
            "name": "高速费",
            "amount": "10",
            "type": "highway_fee"
          },
         {
          "name": "起步价格",
          "amount": "14",
          "type": "start_price"
         }
         ]
	},
	"price_info": {
		"total_price": 14.16,
		"personal_total_pay": 0,
        "coupon_amount": 0,
        "red_envelope": 0
	},
	"user_info": {
		"id": "5ea12bf723445f17d650fcb9",
		"name": "张三",
		"phone": "18210376179",
		"unit_id": "5747fbc10f0e60e0709d8d7d",
		"unit_name": "北京分贝金服科技有限公司"
	},
	"passenger_info": {
		"name": "张三",
		"phone": "18501276179",
		"unit_id": "5747fbc10f0e60e0709d8d7d",
		"unit_name": "北京分贝金服科技有限公司",
		"full_unit_name": "北京分贝金服科技有限公司"
	},
	"saas_info": {
        "is_exceed": false,
        "cost_category": "市场活动费",
		"remark": {
			"remark": "加班",
            "remarkDetail": "图摸摸铁路局12399"
		},
		"cost_attribution_list": [{
			"cost_attribution_id": "5747fbc10f0e60e0709d8d7d",
			"cost_attribution_category": 1,
			"cost_attribution_name": "北京分贝金服科技有限公司",
            "cost_attribution_custom_ext": [{
                  "custom_field_title": "都发发发",
                  "custom_field_content": "呜呜呜呜呜呜"
              },
              {
                  "custom_field_title": "阿斯顿发",
                  "custom_field_content": "阿萨阿啊阿"
              }
          ]
		}],
      "cost_attribution":[
        {
          "type":1,
          "archive_id":"",
          "third_archive_id":"",
          "archive_name":"",
          "details":[
            {
              "name":"部门二",
              "weight":33.33,
              "amount":7,
              "third_id":"bumen2",
              "id":"5bfca57dbfd57c0523d83ce0"
            },
            {
              "name":"部门一",
              "weight":33.33,
              "amount":7,
              "third_id":"bumenyi",
              "id":"5bfb58a7bfd57c3d9d01c713"
            },
            {
              "name":"部门三",
              "weight":33.34,
              "amount":7,
              "third_id":"bumen3",
              "id":"5bfca584bfd57c0523d83ce1"
            }
          ]
        },
        {
          "type":2,
          "details":[
            {
              "name":"财务项目004",
              "weight":33.34,
              "amount":7,
              "third_id":"cwxm004",
              "id":"5f717ce3aa42278ee8a11c8e"
            },
            {
              "name":"财务项目003",
              "weight":33.33,
              "amount":7,
              "third_id":"cwxm003",
              "id":"5f717ce3aa42278ee8a11c8d"
            },
            {
              "name":"财务项目002",
              "weight":33.33,
              "amount":7,
              "third_id":"cwxm002",
              "id":"5f717ce3aa42278ee8a11c8c"
            }
          ]
        }
      ],
       "cost_info": {
          "amount": 0.0,
          "costCategoryCode": "10001",
          "costCategory": "广告费",
          "costAttributionGroupList": [
            {
             "category": 1,
             "categoryName": "部门",
             "costAttributionRange": 1,
             "costAttributionList": [
               {
                 "id": "5fec33e7aa42272efc98015e",
                 "name": "大分贝测试集团",
                 "fullName": "",
                 "weight": 100.0,
                 "price": 0.0
               }
             ]
           },
           {
            "category": 2,
            "categoryName": "项目",
            "costAttributionRange": 2,
            "costAttributionList": [
              {
                "id": "61834977e08457797fc54be4",
                "code": "23646533332564538244",
                "name": "三方测试批量创建项目-44",
                "weight": 30.0,
                "price": 0.0
              },
              {
                "id": "618346c5e08457797fc54bb1",
                "code": "23648978673434242564240",
                "name": "测试批量创建项目-88",
                "weight": 70.0,
                "price": 0.0
              }
            ]
          }
        ]
      },
      "notifier_info": [
        {
          "notifier_id": "612488f44156833d97b7d674",
          "notifier_name": "test哒哒",
          "notifier_phone": "12055924474",
          "notifier_org_unit_id": "5fec33e7aa42272efc98015e",
          "notifier_org_unit_name": "大分贝测试集团",
          "notifier_org_unit_full_name": "大分贝测试集团"
        }
      ]
	},
	"third_info": {
		"user_id": "213464191737612274",
		"unit_id": "dinge78ced08591e110bf5bf40eda33b7ba0",
		"cost_dept_id": "dinge78ced08591e110bf5bf40eda33b7ba0",
		"passenger_unit_id": "dinge78ced08591e110bf5bf40eda33b7ba0",
		"passenger_user_id": "213464191737612274",
		"apply_id": "a04d2547-9f9f-49f2-895f-124f5171b31d"
	}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
lastUpdate: 3/24/2023, 4:20:46 PM