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

alibaba.tae.expense.biz.detect.query (报销单异常检测)

执行报销单合规检测并返回业务异常列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tp_request ReportDetectOpenRequestDto 可选 报销单异常检测请求
  • └ report_no
  • String
  • 必须
  • 212186004
  • 报销单号
  • └ apply_type
  • String
  • 必须
  • ER
  • 单据类型,如ER
  • └ tenant_key
  • String
  • 必须
  • ant
  • 租户身份标识;开放API调用必填,Agent调用由上下文识别
  • └ app_key
  • String
  • 必须
  • ant_group
  • 调用方应用身份;开放API调用必填,Agent调用由上下文识别
  • └ employee_no
  • String
  • 必须
  • 091103
  • 企业员工工号;开放API调用必填,Agent调用由登录态注入

响应参数

名称 类型 示例值 描述
platform_result_dto PlatformResultDTO platformResultDTO
  • └ result_code
  • String
  • 0
  • 错误码
  • └ result_message
  • String
  • success
  • 错误消息
  • biz_detect_dto_list
  • BizDetectDto []
  • 结果内容
  • └ line_ids
  • Number []
  • 77560937
  • 异常关联的费用明细行ID列表,dimension为LINE时返回
  • └ text
  • String
  • 合餐人[XXXXXX张三]不存在合餐日期的差旅行程,请确认真实性,若无差旅行程不可分摊。
  • 异常提示文案
  • └ type
  • String
  • MEAL_SHARER_ITINERARY_MISSING
  • 异常检测项类型编码,例如CREDIT_WARNING、BASE_LOCATION_ACCOMMODATION
  • └ summary
  • String
  • xxxxx
  • 异常检测项说明
  • └ forward_url
  • String
  • xxxxx
  • 异常类型为ERROR时返回的跳转链接
  • └ popup_flag
  • Boolean
  • false
  • 是否需要弹窗卡控
  • └ detect_type
  • String
  • MEAL_SHARER_ITINERARY_MISSING
  • 检测类型编码,例如PRE_PAY、MEAL_SHARER_ITINERARY_MISSING
  • └ input_title
  • String
  • 合餐人无关联差旅行程
  • 原因输入框标题
  • └ reason_input
  • Boolean
  • false
  • 是否需要输入原因
  • └ dimension
  • String
  • LINE
  • 异常维度,REPORT为单据级,LINE为费用明细行级
  • └ is_success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTaeExpenseBizDetectQueryRequest req = new AlibabaTaeExpenseBizDetectQueryRequest();
AlibabaTaeExpenseBizDetectQueryRequest.ReportDetectOpenRequestDto obj1 = new AlibabaTaeExpenseBizDetectQueryRequest.ReportDetectOpenRequestDto();
obj1.setReportNo("212186004");
obj1.setApplyType("ER");
obj1.setTenantKey("ant");
obj1.setAppKey("ant_group");
obj1.setEmployeeNo("091103");
req.setTpRequest(obj1);
AlibabaTaeExpenseBizDetectQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tae_expense_biz_detect_query_response>
    <platform_result_dto>
        <result_code>0</result_code>
        <result_message>success</result_message>
        <biz_detect_dto_list>
            <biz_detect_dto>
                <line_ids>
                    <number>77560937</number>
                </line_ids>
                <text>合餐人[XXXXXX张三]不存在合餐日期的差旅行程,请确认真实性,若无差旅行程不可分摊。</text>
                <type>MEAL_SHARER_ITINERARY_MISSING</type>
                <summary>xxxxx</summary>
                <forward_url>xxxxx</forward_url>
                <popup_flag>false</popup_flag>
                <detect_type>MEAL_SHARER_ITINERARY_MISSING</detect_type>
                <input_title>合餐人无关联差旅行程</input_title>
                <reason_input>false</reason_input>
                <dimension>LINE</dimension>
            </biz_detect_dto>
        </biz_detect_dto_list>
        <is_success>true</is_success>
    </platform_result_dto>
</alibaba_tae_expense_biz_detect_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

返回
顶部