Developer OpenAPI
首页Apifox官网钉钉openAPI
企业微信openAPI
  • openAPI文档
  • 官方文档
首页Apifox官网钉钉openAPI
企业微信openAPI
  • openAPI文档
  • 官方文档
生态伙伴API
  • 历史文档(不推荐)
  • 开发钉钉应用
  • 服务端API
  • 新版服务端API(DingTalk OpenAPI)
  • 生态伙伴API
e签宝金智CRM阿里商旅小蜜客服智能客服员工服务台
e签宝金智CRM阿里商旅小蜜客服智能客服员工服务台
  1. 出差申请
  • 城市基本数据
    • 机票城市搜索
      POST
    • 火车票城市搜索
      POST
  • 维护成本中心和发票抬头
    • 新建成本中心
      POST
    • 修改成本中心
      POST
    • 删除成本中心
      POST
    • 查询成本中心
      POST
    • 设置成本中心人员信息
      POST
    • 删除成本中心人员信息
      POST
    • 商旅成本中心转换为外部成本中心
      POST
  • 项目管理
    • 添加项目
      POST
    • 修改项目
      POST
    • 删除项目
      POST
  • 出差申请
    • 新建审批单
      POST
    • 获取申请单列表
      POST
    • 获取申请单详情
      POST
    • 修改申请单
      POST
    • 更新申请单状态
      POST
    • 搜索第三方酒店超标审批单
      GET
    • 搜索第三方火车票超标审批单
      GET
    • 回传第三方超标审批结果
      POST
    • 搜索第三方机票超标审批单
      GET
  • 订单管理
    • 获取企业机票订单数据
      POST
    • 获取企业商旅酒店订单数据
      POST
    • 获取企业火车票订单数据
      POST
    • 获取用车订单数据
      POST
    • 关联单号查询相关订单信息列表
      GET
  • 阿里商旅跳转链接
    • 获取商旅访问地址
  • 发票管理
    • 新增发票配置
    • 配置发票适用人群
    • 查询可用发票列表
    • 修改发票配置
    • 删除发票信息
  • 市内用车申请
    • 同步市内用车申请单
    • 审批市内用车申请单
    • 查询市内用车申请单
  • 获取月对账结算数据
    POST
  • 查询预估价
    POST
  1. 出差申请

新建审批单

POST
http://127.0.0.1/topapi/alitrip/btrip/approval/new
最后修改时间:2022-08-30 09:19:23
责任人:未设置

说明#

调用本接口新建审批单。
服务地址:https://oapi.dingtalk.com

权限#

服务端API是以应用维度授权的,在调用接口前,确保已经为应用添加了接口权限。详情请参考权限申请。
应用类型是否支持调用权限申请方式API Explorer调试
企业内部应用是开发者后台申请调试
第三方企业应用是开发者后台申请调试
第三方个人应用否——

请求参数

Query 参数

Body 参数application/json

示例
{
    "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": {
        "thirdpart_apply_id": "string",
        "apply_id": 0
    },
    "errmsg": "string",
    "errcode": 0,
    "success": true,
    "request_id": "string"
}
修改于 2022-08-30 09:19:23
上一页
删除项目
下一页
获取申请单列表
Built with