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

alibaba.happytrip.account.billing.taxi (欢行账单拉取开放接口-用车账单)

欢行账单拉取开放接口-用车账单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
open_bill_request OpenBillRequest 必须 账单拉取请求对象
  • └ app_key
  • String
  • 必须
  • 23286122923
  • TOP AppKey
  • └ corp_id
  • Number
  • 可选
  • 1
  • 租户Id
  • └ size
  • Number
  • 可选
  • 100
  • 分页查询-每页条数(默认10,最大不超过100)
  • └ page
  • Number
  • 可选
  • 1
  • 分页查询-页码(默认1)
  • └ account_no
  • String
  • 可选
  • 100000
  • 结算账户
  • └ period
  • String
  • 必须
  • 2026.02.21-2026.03.20
  • 账期

响应参数

名称 类型 示例值 描述
status_code String 200 状态码
is_success Boolean true 是否成功 成功-true / 失败-false
message String success 状态信息,主要是异常时的信息
content Content [] 数据主体
  • └ cost_center_code
  • String
  • huanxing
  • 成本中心编码
  • └ departure_time
  • String
  • 2026-03-31 19:50:44
  • 下单预约时间
  • └ tax_diff_amount
  • String
  • 1.41
  • 补税差费
  • └ user_confirm_time
  • String
  • 2026-03-31 19:50:44
  • 费用确认时间
  • └ ht_order_id
  • String
  • 03000010xxxxxxxxxxx6213868
  • 欢行订单号
  • └ ou_code
  • String
  • xx
  • 企业OU编码
  • └ time_type
  • String
  • 实时
  • 用车方式
  • └ memo
  • String
  • 乌海出差
  • 用车目的
  • └ work_no
  • String
  • 9527
  • 打车人工号
  • └ travel_type
  • String
  • 其他
  • 差旅性质
  • └ driver_receive_time
  • String
  • 2026-03-31 19:50:44
  • 接单时间
  • └ invoice_type
  • String
  • 专票
  • 发票类型
  • └ travel_distance
  • String
  • 17.7
  • 行驶公里数
  • └ ta_approved_time
  • String
  • 2026-03-31 19:50:44
  • 差旅单审批通过日期
  • └ supplier_name
  • String
  • 滴滴
  • 供应商名称
  • └ department_key
  • String
  • 10xxxxx62
  • 打车人部门编号
  • └ service_fee
  • String
  • 0.00
  • 服务费
  • └ department_name
  • String
  • 解决方案
  • 打车人部门
  • └ to_addr
  • String
  • 全季酒店(乌海万锦广场店)
  • 到达地
  • └ amount
  • String
  • 43.16
  • 用车费用(不含平台服务费)
  • └ bill_type
  • String
  • reserve
  • 账单类型
  • └ driver_finish_time
  • String
  • 2026-03-31 19:50:44
  • 行程结束时间
  • └ to_city
  • String
  • 乌海市
  • 到达地城市
  • └ corp_name
  • String
  • 欢行
  • 企业名称
  • └ driver_driving_time
  • String
  • 2026-03-31 19:50:44
  • 发车时间
  • └ tax_rate
  • String
  • 6%
  • 税率
  • └ scene_type
  • String
  • 差旅用车
  • 用车性质
  • └ ta_head_id
  • String
  • 302xxxxxxxx44
  • 差旅申请单号
  • └ name
  • String
  • 张三
  • 打车人姓名
  • └ settlement_amount
  • String
  • 46.07
  • 结算总金额
  • └ from_addr
  • String
  • 乌海机场(国内到达)乌海机场航站楼
  • 出发地
  • └ from_city
  • String
  • 乌海市
  • 出发地城市
  • └ currency_code
  • String
  • CNY
  • 币种类型
  • └ bill_period
  • String
  • 2026.03
  • 账期

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHappytripAccountBillingTaxiRequest req = new AlibabaHappytripAccountBillingTaxiRequest();
AlibabaHappytripAccountBillingTaxiRequest.OpenBillRequest obj1 = new AlibabaHappytripAccountBillingTaxiRequest.OpenBillRequest();
obj1.setAppKey("23286122923");
obj1.setCorpId(1L);
obj1.setSize(100L);
obj1.setPage(1L);
obj1.setAccountNo("100000");
obj1.setPeriod("2026.02.21-2026.03.20");
req.setOpenBillRequest(obj1);
AlibabaHappytripAccountBillingTaxiResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_happytrip_account_billing_taxi_response>
    <status_code>200</status_code>
    <is_success>true</is_success>
    <message>success</message>
    <content>
        <content>
            <cost_center_code>huanxing</cost_center_code>
            <departure_time>2026-03-31 19:50:44</departure_time>
            <tax_diff_amount>1.41</tax_diff_amount>
            <user_confirm_time>2026-03-31 19:50:44</user_confirm_time>
            <ht_order_id>03000010xxxxxxxxxxx6213868</ht_order_id>
            <ou_code>xx</ou_code>
            <time_type>实时</time_type>
            <memo>乌海出差</memo>
            <work_no>9527</work_no>
            <travel_type>其他</travel_type>
            <driver_receive_time>2026-03-31 19:50:44</driver_receive_time>
            <invoice_type>专票</invoice_type>
            <travel_distance>17.7</travel_distance>
            <ta_approved_time>2026-03-31 19:50:44</ta_approved_time>
            <supplier_name>滴滴</supplier_name>
            <department_key>10xxxxx62</department_key>
            <service_fee>0.00</service_fee>
            <department_name>解决方案</department_name>
            <to_addr>全季酒店(乌海万锦广场店)</to_addr>
            <amount>43.16</amount>
            <bill_type>reserve</bill_type>
            <driver_finish_time>2026-03-31 19:50:44</driver_finish_time>
            <to_city>乌海市</to_city>
            <corp_name>欢行</corp_name>
            <driver_driving_time>2026-03-31 19:50:44</driver_driving_time>
            <tax_rate>6%</tax_rate>
            <scene_type>差旅用车</scene_type>
            <ta_head_id>302xxxxxxxx44</ta_head_id>
            <name>张三</name>
            <settlement_amount>46.07</settlement_amount>
            <from_addr>乌海机场(国内到达)乌海机场航站楼</from_addr>
            <from_city>乌海市</from_city>
            <currency_code>CNY</currency_code>
            <bill_period>2026.03</bill_period>
        </content>
    </content>
</alibaba_happytrip_account_billing_taxi_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

返回
顶部