文档中心 > API类目 > 欢行开发平台API

alibaba.tae.expense.reimburse.info.query (提交报销单前置信息查询)

报销单创建前置基础信息查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
reimburse_prepare_open_request_dto ReimbursePrepareOpenRequestDTO 必须 报销单创建前置基础信息查询,返回实际报销人的默认费用归属组织、提交人信息等。workNo不传时查询当前登录员工,传入时可查询代他人提交报销单所需的初始化信息。
  • └ apply_type
  • String
  • 必须
  • ER
  • 单据类型,ER为费用报销单
  • └ work_no
  • String
  • 可选
  • 091103
  • 实际报销人员工号;代他人提交时传入,不传则使用当前员工
  • └ apply_id
  • Number
  • 可选
  • 3020621243872
  • 预申请单ID
  • └ tenant_key
  • String
  • 必须
  • ant
  • 租户身份标识;开放API调用必填,Agent调用由上下文识别
  • └ app_key
  • String
  • 必须
  • ant_group
  • 调用方应用身份;开放API调用必填,Agent调用由上下文识别
  • └ employee_no
  • String
  • 必须
  • 091103
  • 企业员工工号;开放API调用必填,Agent调用由登录态注入
  • └ report_no
  • String
  • 可选
  • 212212904
  • 报销单号

响应参数

名称 类型 示例值 描述
result_code String A00001 错误码
result_message String 系统异常 错误信息
content ReimburseInitInfo 员工报销初始化信息
  • └ form_type
  • String
  • ER
  • 报销单类型
  • └ form_no
  • String
  • 212212904
  • 报销单号
  • └ currency
  • String
  • CNY
  • 币种
  • ou_org
  • HtOrg
  • 欢行组织
  • └ code
  • String
  • A50
  • 欢行组织Code
  • └ name
  • String
  • 阿里巴巴(中国)有限公司
  • 欢行组织名称
  • └ type
  • String
  • ou
  • 欢行组织类型
  • └ select_currencys
  • String []
  • 支持的可修改的币种
  • submit_user
  • HtUserProfile
  • 申请人的概要信息
  • └ user_id
  • Number
  • 12386219
  • 欢行用户ID
  • └ corp_id
  • Number
  • 2
  • 租户ID
  • └ emp_no
  • String
  • 091103
  • 工号
  • └ name_en
  • String
  • zhangxiaolei
  • 英文名
  • itinerary_list
  • Itinerary []
  • 差旅行程列表
  • └ ta_head_id
  • Number
  • 123
  • 差旅申请单ID
  • └ line_id
  • Number
  • 456
  • 来源系统差旅单行程ID
  • └ begin_date
  • String
  • 2026-01-01
  • 行程开始时间
  • └ end_date
  • String
  • 2026-01-03
  • 行程结束时间
  • └ begin_date_locale
  • String
  • 2026-01-01 00:00:00
  • 开始时间文本(前端展示)
  • └ end_date_locale
  • String
  • 2026-01-03 23:59:59
  • 结束时间文本(前端展示)
  • └ itinerary_type
  • String
  • ROUND_TRIP
  • 行程类型
  • └ from_site
  • String
  • 杭州
  • 出发地
  • └ from_site_id
  • Number
  • 330100
  • 出发地城市ID
  • └ to_site
  • String
  • 北京
  • 目的地
  • └ to_site_id
  • Number
  • 110100
  • 目的地城市ID
  • └ travel_region
  • String
  • INTERNAL
  • 差旅区域
  • └ transport_type
  • String
  • AIR
  • 交通方式,其他(OTHER)、飞机(PLANE)、火车(TRAIN)、汽车(AUTOMOTIVE)、轮船(STEAMSHIP
  • └ remark
  • String
  • 示例备注
  • 行程备注
is_success Boolean true 系统调用是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTaeExpenseReimburseInfoQueryRequest req = new AlibabaTaeExpenseReimburseInfoQueryRequest();
AlibabaTaeExpenseReimburseInfoQueryRequest.ReimbursePrepareOpenRequestDTO obj1 = new AlibabaTaeExpenseReimburseInfoQueryRequest.ReimbursePrepareOpenRequestDTO();
obj1.setApplyType("ER");
obj1.setWorkNo("091103");
obj1.setApplyId(3020621243872L);
obj1.setTenantKey("ant");
obj1.setAppKey("ant_group");
obj1.setEmployeeNo("091103");
obj1.setReportNo("212212904");
req.setReimbursePrepareOpenRequestDto(obj1);
AlibabaTaeExpenseReimburseInfoQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tae_expense_reimburse_info_query_response>
    <result_code>A00001</result_code>
    <result_message>系统异常</result_message>
    <content>
        <form_type>ER</form_type>
        <form_no>212212904</form_no>
        <currency>CNY</currency>
        <ou_org>
            <code>A50</code>
            <name>阿里巴巴(中国)有限公司</name>
            <type>ou</type>
        </ou_org>
        <submit_user>
            <user_id>12386219</user_id>
            <corp_id>2</corp_id>
            <emp_no>091103</emp_no>
            <name_en>zhangxiaolei</name_en>
        </submit_user>
        <itinerary_list>
            <itinerary>
                <ta_head_id>123</ta_head_id>
                <line_id>456</line_id>
                <begin_date>2026-01-01</begin_date>
                <end_date>2026-01-03</end_date>
                <begin_date_locale>2026-01-01 00:00:00</begin_date_locale>
                <end_date_locale>2026-01-03 23:59:59</end_date_locale>
                <itinerary_type>ROUND_TRIP</itinerary_type>
                <from_site>杭州</from_site>
                <from_site_id>330100</from_site_id>
                <to_site>北京</to_site>
                <to_site_id>110100</to_site_id>
                <travel_region>INTERNAL</travel_region>
                <transport_type>AIR</transport_type>
                <remark>示例备注</remark>
            </itinerary>
        </itinerary_list>
    </content>
    <is_success>true</is_success>
</alibaba_tae_expense_reimburse_info_query_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部