单个账单查询
- 接口:common/bill/findByCode
- Method:GET
- 接口说明:根据账单编码查询账单信息
参数
请求参数
字段名称 |
字段类型 |
字段描述 |
是否必填 |
长度限制(字节) |
source |
String |
渠道 |
TRUE |
无 |
bill_code |
String |
账单编码 |
TRUE |
无 |
返回参数
字段名称 |
字段类型 |
字段描述 |
resCode |
Integer |
响应状态码(见附录) |
resMsg |
String |
返回信息描述 |
data |
BillInfoVo |
账单信息 |
BillInfoVo
字段名称 |
字段类型 |
字段描述 |
source |
String |
渠道 |
bill_code |
String |
账单编码 |
bill_name |
String |
账单名称 |
start_date |
Date |
账单起始时间 |
end_date |
Date |
账单结束时间 |
source_type |
String |
账单类型 |
check_batch_no |
String |
账单批次号 |
total_amount |
BigDecimal |
总金额 |
total_company_pay |
BigDecimal |
总支付金额 |
branch_code |
String |
公司编码 |
branch_name |
String |
公司名称 |
remarks |
String |
备注 |
total_service_price |
BigDecimal |
总服务费 |
enabled_flag |
String |
启用标识 |
bill_line_list |
BillLineVo |
账单行信息 |
BillLineVo
字段名称 |
字段类型 |
字段描述 |
order_id |
String |
订单号 |
bill_line_no |
String |
账单行号 |
start_date_time |
Date |
开始时间 |
end_date_time |
Date |
结束时间 |
order_date |
Date |
订单时间 |
branch_code |
String |
公司编码 |
branch_name |
String |
公司名称 |
department_code |
String |
部门编码 |
department_name |
String |
部门名称 |
cost_center_code |
String |
成本中心编码 |
cost_center_name |
String |
成本中心名称 |
amount |
BigDecimal |
总金额 |
company_pay |
BigDecimal |
公司支付金额 |
person_pay |
BigDecimal |
个人支付金额 |
service_price |
BigDecimal |
服务费 |
passenger_name |
String |
出行人 |
employee_number |
String |
员工号 |
journey_id |
String |
第三方申请单id |
document_num |
String |
申请单号 |
description |
String |
描述 |
remarks |
String |
备注 |
price |
BigDecimal |
单价 |
unit_price |
BigDecimal |
最低价 |
quantity |
Integer |
数量 |
price 1~20 |
BigDecimal |
扩展金额字段 |
column 1~50 |
String |
扩展字段 |
示例:
请求数据
common/bill/findByCode?source=dttrip&bill_code=CA2407231533152675_flight
返回数据
{
"resCode": 200000,
"resMsg": "success",
"data": {
"source": "dttrip",
"bill_code": "CA2407231533152675_flight",
"bill_name": "同程机票账单",
"start_date": 1721548800000,
"end_date": 1721635200000,
"source_type": "flight",
"check_batch_no": "dttrip-flight-CA2407231533152675",
"total_amount": 1780.00,
"total_service_price": 0.00,
"enabled_flag": "Y",
"bill_line_list": [
{
"amount": 800.00,
"remarks": "",
"price": 700.00,
"quantity": 1,
"order_id": "DF240723545938124",
"bill_line_no": "IN2407231429223414FF",
"start_date_time": 1721749800000,
"end_date_time": 1721758500000,
"service_price": 0.00,
"passenger_name": "技术支持",
"employee_number": "17812_213145",
"journey_id": "REQ0000374258",
"unit_price": 570.00
},
{
"amount": 700.00,
"remarks": "",
"price": 600.00,
"quantity": 1,
"order_id": "DF240723546019340",
"bill_line_no": "IN2407231453100158DD",
"start_date_time": 1722441600000,
"end_date_time": 1722451200000,
"service_price": 0.00,
"passenger_name": "技术支持",
"employee_number": "17812_213145",
"journey_id": "REQ0000374260",
"unit_price": 600.00
},
{
"amount": 280.00,
"remarks": "",
"price": 0.00,
"quantity": 1,
"order_id": "DFC240723546034057",
"bill_line_no": "IN240723150755527FBE",
"start_date_time": 1722528000000,
"end_date_time": 1722537600000,
"service_price": 0.00,
"passenger_name": "技术支持",
"employee_number": "17812_213145",
"journey_id": "REQ0000374260",
"unit_price": 0.00
}
]
}
}