alitrip.btrip.apply.get (获取单个审批单)

获取单个审批单的详情数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
thirdpart_apply_id String 可选 abc 外部审批单id
apply_id Number 可选 123 阿里商旅审批单id
corp_id String 必须 corp_1 企业id
apply_show_id String 可选 201710111505000464651 审批单展示id

响应参数

名称 类型 示例值 描述
result BtriphomeResultSupport result result
  • apply
  • OpenApplyRs
  • apply
  • 审批单详情
  • └ status
  • Number
  • 0
  • 审批单状态:0申请 1同意 2拒绝 3转交 4取消 5修改已同意 6撤销已同意 7修改审批中 8已同意(修改被拒绝) 9撤销审批中 10已同意(撤销被拒绝) 11已同意(修改被取消) 12已同意(撤销被取消)
  • └ trip_title
  • String
  • 出差测试
  • 出差标题
  • └ trip_cause
  • String
  • 出差测试
  • 出差理由
  • └ trip_day
  • Number
  • 2
  • 出差天数
  • └ depart_name
  • String
  • 测试部门
  • 部门名称
  • └ depart_id
  • String
  • depart_1
  • 部门id
  • └ user_name
  • String
  • 测试用户
  • 用户名称
  • └ user_id
  • String
  • user_1
  • 用户id
  • └ corp_name
  • String
  • 测试企业
  • 企业名称
  • └ corp_id
  • String
  • corp_1
  • 企业id
  • └ thirdpart_id
  • String
  • abc
  • 第三方审批单id, 非第三方审批单则为空
  • └ gmt_modified
  • Date
  • 2017-05-01 00:00:00
  • 更新时间
  • └ gmt_create
  • Date
  • 2017-05-01 00:00:00
  • 创建时间
  • └ id
  • Number
  • 123
  • 审批单id
  • itinerary_list
  • OpenItineraryInfo []
  • intnerary_list
  • 行程单列表
  • └ arr_date
  • Date
  • 2017-05-01 00:00:00
  • 到达日期
  • └ dep_date
  • Date
  • 2017-05-01 00:00:00
  • 出发日期
  • └ invoice_name
  • String
  • 阿里商旅
  • 发票抬头
  • └ cost_center_name
  • String
  • 测试成本中心
  • 成本中心名称
  • └ arr_city
  • String
  • 北京
  • 到达城市
  • └ dep_city
  • String
  • 上海
  • 出发城市
  • └ traffic_type
  • Number
  • 3
  • 交通方式 0飞机, 1,火车, 2汽车, 3其他
  • └ trip_way
  • Number
  • 0
  • 行程方式:0单程,1往返
  • └ itinerary_id
  • String
  • abc
  • 行程id
  • traveler_list
  • OpenUserInfo []
  • traveler_list
  • 出行人列表
  • └ user_name
  • String
  • 测试用户
  • 出行人名称
  • └ user_id
  • String
  • user_1
  • 出行人id
  • approver_list
  • OpenApproverInfo []
  • approver_list
  • 审批人列表
  • └ operate_time
  • Date
  • 2017-05-01 00:00:00
  • 操作时间
  • └ note
  • String
  • 同意
  • 审批意见
  • └ status
  • Number
  • 0
  • 审批人状态:0审批中 1已同意 2已拒绝 3已转交,4已取消 5已终止 6发起审批 7评论
  • └ user_name
  • String
  • 测试用户
  • 审批人名称
  • └ user_id
  • String
  • user_1
  • 审批人id
  • └ order
  • Number
  • 1
  • 审批人顺序
  • └ status_desc
  • String
  • 同意
  • 审批人状态描述
  • └ status_desc
  • String
  • 同意
  • 审批单状态描述
  • └ apply_show_id
  • String
  • 201710111505000464651
  • 审批单展示id
  • └ success
  • String
  • true
  • 成功标识
  • └ result_msg
  • String
  • 成功
  • 错误信息
  • └ result_code
  • String
  • 0
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripBtripApplyGetRequest req = new AlitripBtripApplyGetRequest();
req.setThirdpartApplyId("abc");
req.setApplyId(123L);
req.setCorpId("corp_1");
req.setApplyShowId("201710111505000464651");
AlitripBtripApplyGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_btrip_apply_get_response>
    <result>
        <apply>
            <status>0</status>
            <trip_title>出差测试</trip_title>
            <trip_cause>出差测试</trip_cause>
            <trip_day>2</trip_day>
            <depart_name>测试部门</depart_name>
            <depart_id>depart_1</depart_id>
            <user_name>测试用户</user_name>
            <user_id>user_1</user_id>
            <corp_name>测试企业</corp_name>
            <corp_id>corp_1</corp_id>
            <thirdpart_id>abc</thirdpart_id>
            <gmt_modified>2017-05-01 00:00:00</gmt_modified>
            <gmt_create>2017-05-01 00:00:00</gmt_create>
            <id>123</id>
            <itinerary_list>
                <open_itinerary_info>
                    <arr_date>2017-05-01 00:00:00</arr_date>
                    <dep_date>2017-05-01 00:00:00</dep_date>
                    <invoice_name>阿里商旅</invoice_name>
                    <cost_center_name>测试成本中心</cost_center_name>
                    <arr_city>北京</arr_city>
                    <dep_city>上海</dep_city>
                    <traffic_type>3</traffic_type>
                    <trip_way>0</trip_way>
                    <itinerary_id>abc</itinerary_id>
                </open_itinerary_info>
            </itinerary_list>
            <traveler_list>
                <open_user_info>
                    <user_name>测试用户</user_name>
                    <user_id>user_1</user_id>
                </open_user_info>
            </traveler_list>
            <approver_list>
                <open_approver_info>
                    <operate_time>2017-05-01 00:00:00</operate_time>
                    <note>同意</note>
                    <status>0</status>
                    <user_name>测试用户</user_name>
                    <user_id>user_1</user_id>
                    <order>1</order>
                    <status_desc>同意</status_desc>
                </open_approver_info>
            </approver_list>
            <status_desc>同意</status_desc>
            <apply_show_id>201710111505000464651</apply_show_id>
        </apply>
        <success>true</success>
        <result_msg>成功</result_msg>
        <result_code>0</result_code>
    </result>
</alitrip_btrip_apply_get_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

返回
顶部