发票明细查询
接口说明
- url: /common/invoice/findDetail
- method: get
- 参数类型: query parameter
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
bizId | String | Y | |
expense_id | Integer | Y | 消费记录ID |
need_document_info | Boolean | Y | 是否查询对应单据号 |
public_order | String | N | 为Y时查询TMC订单 |
返回参数
参数名 | 类型 | 说明 |
---|---|---|
resCode | Integer | |
resMsg | String | |
bizId | String | |
data | Object |
data对象参数说明
参数名 | 类型 | 说明 |
---|---|---|
document_num | String | 单据号 |
expense_id | Integer | 消费记录ID |
company_id | Integer | 公司ID |
type_id | Integer | 费用类型(根据公司配置) |
flight_class | String | 舱位 头等舱/公务舱/经济舱/超级经济舱 |
discount | String | 优惠 |
train_class | String | 火车舱位 |
ship_class | String | 船舱位 |
train_type | String | 往返程类型 |
passenger_list | String | 同行人列表 |
price | BigDecimal | 价格 |
quantity | BigDecimal | 数量 |
total_count | Long | 票据数量 |
original_amount | BigDecimal | 发票原金额 |
receipt_date | Long | 日期 |
receipt_amount | BigDecimal | 金额 |
receipt_currency | String | 币种 |
claim_amount | BigDecimal | 报销金额 |
claim_currency | String | 报销币种 |
exchange_rate | BigDecimal | 汇率 |
comments | String | 备注 |
receipt_location | String | 发票地点 |
location_from | String | 出发地 |
location_to | String | 目的地 |
shop_name | String | 销售方名 |
shop_location | String | 销售方地址 |
start_datetime | Long | 开始时 |
end_datetime | Long | 结束时 |
destination_city | String | 出发地 |
destination_city_to | String | 到达地 |
from_cities | String | 出发地 |
to_cities | String | 到达地 |
attendee_list | String | 参与人列表 |
route | String | 路径 |
pay_method_id | Integer | 支付方式id |
accumulation_type_id | Integer | 费用计算方式 |
flight_number | String | 飞机编号 |
train_number | String | 火车编号 |
mileage | Integer | 里程 |
mileage_decimal | BigDecimal | 里程(BigDecimal类型) |
mileage_rate | BigDecimal | 速率 |
attendee_number | Integer | 参与人数 |
business_purpose | String | 业务目的 |
mobile_number | String | 手机号 |
duration | String | 持续时间 |
telephone_number | String | 电话号码 |
tax_code_id | Integer | 税码 |
pay_amount | BigDecimal | 支付金额 |
tax_amount | BigDecimal | 税额 |
finance_comments | String | 财务备注 |
attachment_count | Integer | 发票张数 |
product_name | String | 产品 |
project_name | String | 项目 |
customer_name | String | 客户名称 |
supplier_name | String | 供应商名称 |
recharge | String | 再收费 |
buyer_name | String | 购买方名称 |
tax_code | String | 税号 |
invoice_serial | String | 校验码 |
invoice_num | String | 发票号码 |
invoice_code | String | 发票代码 |
invoice_type | String | 发票类型 |
invoice_true | String | 查验状态 |
invoice_input | String | 查验状态说明 |
invoice_message | String | 发票查验信息 |
items | String | 发票明细 |
trips | String | 滴滴导入的发票的行程信息 |
attachments | String | 文件 |
created_by | String | 创建者 |
charge_user | String | 持有者 |
submit_user | String | 提交者 |
status | Byte | 状态 |
review_flag | String | 预览 |
purchase_invoice | String | 采购发票 |
creation_date | Long | 创建时间 |
last_update_date | Long | 最后更新时间 |
exp_receipt_list | Object |
exp_receipt_list对象参数说明
参数名 | 类型 | 说明 |
---|---|---|
receipt_id | Integer | 票据ID |
source | String | 来源 |
source_type | String | 发票来源类型 |
source_file | String | 发票附件是否是源文件 (Y: 附件是源文件,N: 非源文件,该字段为null时不具有任何意义) |
invalid_invoice | String | 无效发票标记 (Y: 无效发票) |
invoice_input | String | 发票查验四要素以及位置信息 |
invoice_type | String | 发票类型 |
invoice_status | String | 查验状态 |
comments | String | 备注 |
invoice_message | String | 查验状态说明 |
invoice_attachments | String | 附件 |
company_id | Integer | 公司ID |
log_id | Long | 导入批次ID |
expense_id | Integer | 消费记录ID |
invoice_code | String | 发票代码 |
invoice_num | String | 发票号码 |
invoice_serial | String | 校验码 |
amount | BigDecimal | 金额 |
currency | String | 币种 |
flight_detail | String | 航班明细 |
trips | String | 滴滴导入的发票的行程信息 |
accumulation_type_id | Integer | 费用计算方式 |
exchange_rate | BigDecimal | 汇率 |
original_tax_amount | BigDecimal | 税额 |
pay_amount | BigDecimal | 支付金额 |
tax_code_id | Integer | 税码ID |
tax_amount | BigDecimal | 税额 |
subtotal_amount | BigDecimal | 小计 |
receipt_date | Long | 发票日期 |
buyer_name | String | 购买方名称 |
fare | BigDecimal | 费用 |
fuel_surcharge | BigDecimal | 燃油附加费 |
buyer_tax_code | String | 购买方税号 |
seller_name | String | 销售方名称 |
seller_tax_code | String | 销售方税号 |
type_id | Integer | 发票费用类型ID |
passenger_name | String | 乘客姓名 |
name | String | 发票标题 |
flight_class | String | 飞机舱位 |
train_class | String | 火车座位 |
ship_class | String | 船舱位 |
train_number | String | 火车号 |
receipt_location | String | 开票地点 |
location_from | String | 出发地 |
location_to | String | 到达地 |
mobile_number | String | 手机号 |
shop_name | String | 销售方名称 |
shop_location | String | 销售方地址 |
start_datetime | Long | 开始时 |
end_datetime | Long | 结束时 |
destination_city | String | 出发地 |
destination_city_to | String | 目的地 |
flight_number | String | 航班 |
mileage | BigDecimal | 里程 |
duration | String | 耗时 |
submit_user | String | 提交者 |
created_by | String | 创建者 |
status | Byte | 状态 |
review_flag | String | 预览 |
purchase_invoice | String | 采购发票 |
val_rule_result | String | 校验后得到的非法信息 |
abnormal_status | String | 异常状态 |
explain_message | String | 说明信息 |
deal_status | String | 处理状态 |
abnormal_update_date | Long | 异常状态更新日期 |
creation_date | Long | 创建时间 |
last_update_date | Long | 最后更新时间 |
sales_list_flag | String | 销货清单标志 |
remark | String | 发票备注 |
station_from | String | 出发站点 |
station_to | String | 到达站点 |
other_info | String | 其他信息 |
id_number | String | 身份证号 |
buyer_account_bank | String | 购方开户行及账号 |
buyer_address_phone | String | 购方地址与电话 |
seller_account_bank | String | 销方开户行及账号 |
seller_address_phone | String | 销方地址与电话 |
blacklist_flag | String | 税号黑名单标记位 |
blacklist_reason | String | 税号黑名单原因 |
receipt_detail_list | List | |
document_num | String | 单据号 |
digital_attachments_status | String | 版式文件下载状态 |
digital_attachments_message | String | 版式文件信息 |
digital_attachments | String | 版式文件 |
receipt_Detail_list对象参数说明
参数名 | 类型 | 说明 |
---|---|---|
detail_id | Integer | 明细ID |
receipt_id | Integer | 票据ID |
expense_id | Integer | 消费记录ID |
name | String | 名称 |
unit | String | 单位 |
net_price | BigDecimal | 不含税单价 |
price | BigDecimal | 单价 |
receipt_amount | BigDecimal | 金额 |
net_amount | BigDecimal | 不含税金额 |
tax_amount | BigDecimal | 税额 |
tax_code_id | Integer | 税码ID |
unit_id | Integer | 单位ID |
material_id | Integer | 名称ID |
tax_rate | Integer | 税率 |
quantity | BigDecimal | 数量 |
specification | String | 规格 |
type_id | Integer | 明细费用类型ID |
company_id | Integer | 公司ID |
discount | String | 折扣 |
discount_amount | BigDecimal | 折扣金额 |
original_amount | BigDecimal | 原始金额 |
passage_start_date | Long | 通行时间起 |
passage_end_date | Long | 通行时间止 |
license_plate | String | 车牌号 |
car_type | String | 车辆类型 |
submit_user | String | 提交人 |
created_by | String | 创建人 |
请求示例
请求参数
/common/invoice/findDetail?bizId=12345678-12345678&expense_id=12345678&need_document_info=false
返回参数
{
"resCode": 200000,
"resMsg": "查询成功",
"bizId": "12345678",
"data": {
"document_num": "REQ0000020140",
"expense_id": 41982277,
"company_id": 3809,
"type_id": 70848,
"total_count": 2,
"original_amount": 2120,
"receipt_amount": 2120,
"receipt_currency": "CNY",
"pay_method_id": 1,
"tax_amount": 3.5,
"invoice_type": "99",
"invoice_true": "Y",
"created_by": "李永磊",
"charge_user": "李永磊",
"submit_user": "李永磊",
"status": 2,
"review_flag": "N",
"exp_receipt_list": [
{
"receipt_id": 221332,
"source": "ocr",
"invoice_input": "{\"No\": \"65079788\", \"Code\": \"033002000811\", \"Date\": \"20210412\", \"VCode\": \"089851\"}",
"invoice_type": "10",
"invoice_status": "Y",
"invoice_attachments": "[{\"location\": {\"direction\": \"0\"}, \"direction\": \"0\", \"file_name\": \"gallery pages (3).pdf\", \"created_by\": 223556, \"attachment_url\": \"3809/2022/09-01/receipt/1341e4e8-9c08-4b36-ae40-8c62443d6b1f.pdf\"}]",
"company_id": 3809,
"expense_id": 41982277,
"invoice_code": "033002000811",
"invoice_num": "65079788",
"invoice_serial": "81229199911616089851",
"amount": 2000,
"currency": "CNY",
"exchange_rate": 1,
"receipt_date": 1618156800000,
"buyer_name": "振德医疗用品股份有限公司",
"buyer_tax_code": "91330600609661634M",
"seller_name": "绍兴市稽山石化有限公司",
"seller_tax_code": "91330602145894148C",
"blacklist_flag": "Y",
"blacklist_reason": "{\"tax_code\":\"91330602145894148C\",\"available\":\"Y\",\"blacklist_flag\":\"Y\",\"national_tax_id\":14,\"abnormal_households\":\"Y\",\"serious_illegal_risk\":[{\"in_date\":\"2021-06-02\",\"out_date\":null,\"in_reason\":\"不知道\",\"out_reason\":null,\"in_department\":\"不知道\",\"out_department\":null,\"national_tax_id\":14,\"serious_illegal_id\":2},{\"in_date\":\"2021-06-02\",\"out_date\":\"2023-07-27\",\"in_reason\":\"不知道\",\"out_reason\":\"不知道\",\"in_department\":\"不知道\",\"out_department\":\"test\",\"national_tax_id\":14,\"serious_illegal_id\":3}],\"major_tax_illegal_risk\":[{\"agent\":null,\"result\":null,\"address\":null,\"org_code\":null,\"property\":null,\"tax_code\":\"123\",\"created_time\":null,\"illegal_fact\":null,\"updated_time\":null,\"original_link\":null,\"corporate_name\":\"无敌公司\",\"finance_officer\":null,\"national_tax_id\":14,\"occurrence_time\":\"2022-09-14\",\"responsible_person\":null,\"major_tax_illegal_id\":1},{\"agent\":null,\"result\":null,\"address\":null,\"org_code\":null,\"property\":null,\"tax_code\":\"456\",\"created_time\":null,\"illegal_fact\":null,\"updated_time\":null,\"original_link\":null,\"corporate_name\":\"丢丢怪\",\"finance_officer\":null,\"national_tax_id\":14,\"occurrence_time\":\"2022-09-12\",\"responsible_person\":null,\"major_tax_illegal_id\":2}],\"customized_tax_blacklist\":null,\"operational_anomaly_risk\":[{\"in_date\":\"2021-06-02\",\"out_date\":\"2023-07-27\",\"province\":\"湖北\",\"in_reason\":\"没有交钱\",\"department\":\"武汉动力\",\"out_reason\":\"交钱了\",\"description\":\"暂无\",\"national_tax_id\":14,\"registration_no\":\"123456789\",\"operational_anomaly_id\":3},{\"in_date\":\"2021-06-02\",\"out_date\":null,\"province\":\"广东\",\"in_reason\":\"没有交税\",\"department\":\"广东移动\",\"out_reason\":null,\"description\":\"暂无\",\"national_tax_id\":14,\"registration_no\":\"789456123\",\"operational_anomaly_id\":4},{\"in_date\":\"2021-06-02\",\"out_date\":\"2023-07-27\",\"province\":\"湖北\",\"in_reason\":\"没有交钱\",\"department\":\"武汉动力\",\"out_reason\":\"交钱了\",\"description\":\"暂无\",\"national_tax_id\":14,\"registration_no\":\"123456789\",\"operational_anomaly_id\":5},{\"in_date\":\"2021-06-02\",\"out_date\":null,\"province\":\"广东\",\"in_reason\":\"没有交税\",\"department\":\"广东移动\",\"out_reason\":null,\"description\":\"暂无\",\"national_tax_id\":14,\"registration_no\":\"789456123\",\"operational_anomaly_id\":6}]}",
"type_id": 70848,
"shop_name": "绍兴市稽山石化有限公司",
"submit_user": "李永磊",
"created_by": "李永磊",
"status": 2,
"abnormal_status": "0",
"receipt_Detail_list": [
{
"detail_id": 14691,
"receipt_id": 221332,
"name": "*汽油*92号车用汽油(VIA)",
"unit": "升",
"net_price": 4.84,
"receipt_amount": 2000,
"net_amount": 1769.91,
"material_id": 126,
"tax_rate": 13,
"quantity": 365.63071298,
"specification": "",
"type_id": 70848,
"company_id": 3809,
"discount": "N",
"original_amount": 2000,
"submit_user": "李永磊",
"created_by": "李永磊"
}
],
"document_num": "REQ0000020140"
},
{
"receipt_id": 472260,
"source": "ocr",
"invoice_type": "62",
"invoice_status": "I",
"invoice_attachments": "[{\"location\": {\"direction\": \"3\"}, \"direction\": \"3\", \"file_name\": \"__-__ (1).jpg\", \"created_by\": 223556, \"attachment_url\": \"3809/2022/10-11/receipt/a29978b9-9695-4f05-9be9-502649813002.jpg\"}]",
"company_id": 3809,
"expense_id": 41982277,
"invoice_code": "143002035620",
"invoice_num": "01577610",
"amount": 120,
"currency": "CNY",
"exchange_rate": 1,
"tax_code_id": 429,
"tax_amount": 3.5,
"receipt_date": 1615737600000,
"type_id": 70848,
"location_from": "吉首北",
"location_to": "长沙",
"submit_user": "李永磊",
"created_by": "李永磊",
"status": 2,
"abnormal_status": "0",
"receipt_Detail_list": [],
"document_num": "REQ0000020140"
}
]
}
}