- 城市基本数据
- 维护成本中心和发票抬头
- 项目管理
- 出差申请
- 订单管理
- 阿里商旅跳转链接
- 发票管理
- 市内用车申请
- 获取月对账结算数据POST
- 查询预估价POST
新建审批单
POST
http://127.0.0.1/topapi/alitrip/btrip/approval/new
生态伙伴API/阿里商旅/出差申请
最后修改时间:2022-08-30 09:19:23
责任人:未设置
说明#
服务地址:https://oapi.dingtalk.com
权限#
应用类型 | 是否支持调用 | 权限申请方式 | API Explorer调试 |
---|---|---|---|
企业内部应用 | 是 | 开发者后台申请 | 调试 |
第三方企业应用 | 是 | 开发者后台申请 | 调试 |
第三方个人应用 | 否 | — | — |
请求参数
Query 参数
access_token
string
必需
示例值:
dc73axxxx
Body 参数application/json
rq
object
请求对象。
trip_day
number
出差天数。
thirdpart_apply_id
string
外部申请单id。
trip_title
string
申请单标题。
itinerary_list
array [object {14}]
行程列表。
dept_name
string
部门名称。
trip_cause
string
出差事由。
corp_name
string
企业名称。
userid
string
必需
user_name
string
可选
deptid
string
可选
traveler_list
array [object {2}]
出行人列表。
corpid
string
必需
status
number
可选
thirdpart_business_id
string
可选
示例
{
"rq": {
"corpid": "ding14xxxx",
"user_name": "张xx",
"deptid": "1864154",
"dept_name": "淘宝",
"corp_name": "阿里巴巴",
"userid": "user1",
"trip_day": 1,
"traveler_list": {
"user_name": "张xx",
"userid": "user1"
},
"thirdpart_apply_id": "12345",
"trip_title": "北京出差",
"itinerary_list": {
"arr_city_code": "BJS",
"thirdpart_cost_center_id": "12345",
"arr_city": "北京",
"cost_center_id": "123",
"arr_date": "2017-01-01 00:00:00",
"trip_way": 0,
"itinerary_id": "59363496",
"traffic_type": 0,
"dep_city": "杭州",
"project_title": "项目1",
"project_code": "xm1",
"dep_city_code": "HGH",
"dep_date": "2017-01-01 00:00:00",
"invoice_id": "3891xxxx"
},
"thirdpart_business_id": "34234521",
"trip_cause": "北京出差",
"status": "0"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1/topapi/alitrip/btrip/approval/new?access_token=dc73axxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"rq": {
"corpid": "ding14xxxx",
"user_name": "张xx",
"deptid": "1864154",
"dept_name": "淘宝",
"corp_name": "阿里巴巴",
"userid": "user1",
"trip_day": 1,
"traveler_list": {
"user_name": "张xx",
"userid": "user1"
},
"thirdpart_apply_id": "12345",
"trip_title": "北京出差",
"itinerary_list": {
"arr_city_code": "BJS",
"thirdpart_cost_center_id": "12345",
"arr_city": "北京",
"cost_center_id": "123",
"arr_date": "2017-01-01 00:00:00",
"trip_way": 0,
"itinerary_id": "59363496",
"traffic_type": 0,
"dep_city": "杭州",
"project_title": "项目1",
"project_code": "xm1",
"dep_city_code": "HGH",
"dep_date": "2017-01-01 00:00:00",
"invoice_id": "3891xxxx"
},
"thirdpart_business_id": "34234521",
"trip_cause": "北京出差",
"status": "0"
}
}'
返回响应
🟢200成功
application/json
Body
module
object
结果对象。
thirdpart_apply_id
string
外部申请单id。
apply_id
number
商旅申请单id。
errmsg
string
返回码描述。
errcode
number
返回码。
success
boolean
成功标识。
request_id
string
请求ID。
示例
{
"module": {
"thirdpart_apply_id": "string",
"apply_id": 0
},
"errmsg": "string",
"errcode": 0,
"success": true,
"request_id": "string"
}

修改于 2022-08-30 09:19:23