微报账API文档
  1. 发票
微报账API文档
  • 介绍
  • 鉴权
  • 公司人员
    • 查询公司人员列表
      GET
  • 发票
    • 查询全票种列表
      GET
    • 查询全票种详情
      GET
    • 全票种状态批量修改
      PATCH
  • 单据
    • 查询员工报账单列表
      GET
    • 查询公司报账单列表
      GET
    • 查询付款单详情
      GET
    • 查询付款单列表
      GET
  • 公司配置信息
    • 查询公司的费用类型列表
      GET
  • 公共信息
    • 发票票种
    • 发票查验状态
    • 抬头校验状态
    • 发票使用状态
    • 发票推送状态
    • 发票录入方式
    • 手工记账类型
    • 付款单状态
    • 接口返回码
  1. 发票

查询全票种详情

GET
/ticket/{ticketId}/info
根据发票Id查询发票详情

请求参数

Path 参数

Query 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/ticket//info?appId&timestamp&sig'

返回响应

🟢200成功
application/json
Body

示例
{
	"code": 0,
	"data": {
		"id": "65f40aa949a307112f14012d",
		"createTime": "2024-03-15 16:45:29",
		"updateTime": "2024-03-15 16:47:25",
		"teamId": 12726,
		"vat": false,
		"sourceType": 8,
		"invoiceCategory": 110,
		"invoiceCode": "",
		"invoiceNo": "Z121L080354",
		"invoiceDate": "2019-06-02 00:00:00",
		"invoiceSummaryAmount": 202.5,
		"uploadFileName": "火车票.jpg",
		"externalData": null,
		"titleState": -1,
		"status": 13,
		"userInfo": {
			"id": 419752,
			"name": "磊",
			"workNumber": "82200121"
		},
		"ownerInfo": {
			"id": 0,
			"name": ""
		},
		"validInfo": {
			"state": -1,
			"time": null
		},
		"pushInfo": {
			"state": 0,
			"time": null
		},
		"dynamicFieldInfos": [
			{
				"title": "会计科目",
				"value": null,
				"version": 49,
				"subFieldInfos": []
			},
			{
				"title": "报销类型",
				"value": null,
				"version": 49,
				"subFieldInfos": []
			}
		],
		"briefInfo": {
			"type": 0,
			"currency": null,
			"currencyAmount": 0,
			"currencyExchangeRate": 0,
			"periodStartTime": null,
			"periodEndTime": null,
			"periodDayNumber": 0,
			"subsidizeAmount": 0,
			"subsidizeNumber": 0,
			"invoiceDate": "2019-06-02 00:00:00",
			"reimbursementAmount": 202.5,
			"costTagName": "其他",
			"remark": "",
			"attachments": [
				""
			]
		},
		"faceInfo": {
			//汽车票
			"departTime": "", //时间
			"end": "", //到达站               
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceCode": "", //发票代码                       
			"invoiceDate": "", //开票时间                      
			"invoiceNo": "", //发票号码                     
			"invoiceSummaryAmount": 0, //票价                               
			"passenger": "", //乘坐人                     
			"picUrl": "", //影像文件                  
			"start": "", //出发站                 
			"taxAmount": "", //税额                     
			//财政票据
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceCode": "", //发票代码                       
			"invoiceDate": "", //开票时间                       
			"invoiceNo": "", //发票号码                     
			"picUrl": "", //影像文件                  
			"sourceUrl": "", //源文件                     
			"title": "", //标题                 
			//定额发票
			"city": "", //城市                
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceCode": "", //发票代码                       
			"invoiceDate": "", //开票时间                       
			"invoiceNo": "", //发票号码                     
			"picUrl": "", //影像文件                  
			//通用机打票
			"buyerName": "", //购买方名称                     
			"buyerTaxCode": "", //购买方纳税人识别号                        
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceCode": "", //发票代码                       
			"invoiceDate": "", //开票时间                       
			"invoiceNo": "", //发票号码                     
			"picUrl": "", //影像文件                  
			"sourceUrl": "", //源文件                     
			//火车票/高铁/动车
			"end": "", //到达站               
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceDate": "", //开票时间                       
			"invoiceNo": "", //发票号码                     
			"invoiceSummaryAmount": 0, //票价                               
			"passenger": "", //乘坐人                     
			"picUrl": "", //影像文件                  
			"start": "", //出发站                 
			"taxAmount": "", //税额                     
			"trainNo": "", //车次                   
			//小票
			"company": "", //公司                   
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceDate": "", //开票时间                       
			"picUrl": "", //影像文件                  
			//海关缴款书
			"account": "", //交款单位账户                   
			"accountBank": "", //交款单位开户银行                       
			"company": "", //交款单位名称                   
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceCode": "", //发票代码                       
			"invoiceDate": "", //开票时间                       
			"invoiceNo": "", //发票号码                     
			"picUrl": "", //影像文件                  
			"storeName": "", //口岸名称                     
			//机票
			"airlineNo": "", //航班号                     
			"end": "", //到达站               
			"fuelExtraFee": "", //燃油附加费                        
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceDate": "", //开票时间                       
			"invoiceNo": "", //电子客票号码                     
			"invoiceSummaryAmount": 0, //合计                               
			"money": 0, //票价                
			"passenger": "", //乘坐人                     
			"picUrl": "", //影像文件                  
			"seatClass": "", //座位等级                     
			"start": "", //出发站                 
			"taxAmount": "", //税额                     
			//过路费
			"end": "", //到达站               
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceCode": "", //发票代码                       
			"invoiceDate": "", //开票时间                       
			"invoiceNo": "", //发票号码                     
			"picUrl": "", //影像文件                  
			"start": "", //出发站                 
			//船票
			"area": "", //省份                
			"city": "", //城市                
			"currencyCode": "", //币种                        
			"departTime": "", //时间                      
			"end": "", //到达站               
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceCode": "", //发票代码                       
			"invoiceDate": "", //开票时间                       
			"invoiceNo": "", //发票号码                     
			"invoiceSummaryAmount": 0, //票价                               
			"passenger": "", //乘坐人                     
			"picUrl": "", //影像文件                  
			"start": "", //出发站                 
			"taxAmount": "", //税额                     
			//地铁
			"city": "", //城市                
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceCode": "", //发票代码                       
			"invoiceDate": "", //开票时间                       
			"invoiceNo": "", //发票号码                     
			"picUrl": "", //影像文件                  
			//出租车
			"arriveTime": "", //下车时间                      
			"city": "", //城市                
			"departTime": "", //上车时间                      
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceCode": "", //发票代码                       
			"invoiceDate": "", //开票时间                       
			"invoiceNo": "", //发票号码                     
			"picUrl": "", //影像文件                  
			"travelLength": "", //公里数                        
			//增值税
			"agentMark": true, //是否代开                       
			"area": "", //省                
			"buyerAccountBank": "", //购买方开户行、账号                            
			"buyerAddressPhone": "", //购买方地址、电话                             
			"buyerName": "", //购买方名称                     
			"buyerTaxCode": "", //购买方纳税人识别号                        
			"city": "", //城市                
			"companySeal": true, //是否有公司印章                         
			"formType": "", //发票联号                    
			"goodsInfos": [ //货物信息                    
				{
					"amount": 0, //金额                         
					"name": "", //货物或应税劳务名称                        
					"price": "", //单价                         
					"quantity": "", //数量                            
					"specification": "", //规格型号                                 
					"taxAmount": "", //税额                             
					"taxRate": "", //税率                           
					"unit": "" //单位                       
				}
			],
			"invoiceAmount": 0, //不含税金额                        
			"invoiceCategory": 0, //发票类型                          
			"invoiceCode": "", //发票代码                       
			"invoiceDate": "", //开票时间                       
			"invoiceNo": "", //发票号码                     
			"invoiceSummaryAmount": 0, //票面金额                               
			"issuer": "", //开票人                  
			"oilMark": true, //是否成品油标志                     
			"picUrl": "", //影像文件                  
			"receiptor": "", //收款人                     
			"remark": "", //发票票面备注                  
			"reviewer": "", //复核人                    
			"salerAccountBank": "", //销售方开户行、账号                            
			"salerAddressPhone": "", //销售方地址、电话                             
			"salerName": "", //销售方名称                     
			"salerTaxCode": "", //销售方纳税人识别号                        
			"sourceUrl": "", //源文件                     
			"taxAmount": 0, //税额                    
			"taxRate": "", //税率                   
			"transitMark": true, //是否通行费标志                         
			"tripUrl": "", //行程单地址                   
			"vcode": "", //校验码
			//数电票(航空行程单)
			"buyerName": null,//购买方名称
			"buyerTaxCode": null,//购买方纳税人识别号
			"salerName": null,//销售方名称
			"salerTaxCode": null,//销售方纳税人识别号
			"invoiceCategory": null,//发票类型
			"invoiceNo": null,//发票号码
			"invoiceDate": null,//开票日期
			"invoiceAmount": null,//不含税金额
			"taxAmount": null,//税额
			"taxRate": null,//税率
			"invoiceSummaryAmount": null,//税价合计
			"area": null,//省
			"city": null,//城市
			"remark": null,//票面备注
			"picUrl": null,//影像文件
			"sourceUrl": null,//源文件
			"eticketNumber": null,//电子客票号
			"vcode": null,//校验码
			"passengerName": null,//旅客姓名
			"validIdNumber": null,//有效身份证
			"endorsement": null,//签注
			"fare": null,//票价
			"fuelSurcharge": null,//燃油附加费
			"civilAviationDevelopmentFund": null,//民航发展基金
			"otherTaxes": null,//其他税费
			"promptInformation": null,//提示信息
			"insurance": null,//保险费
			"agentCode": null,//销售网点代号
			"issueParty": null,//填开单位
			"issueDate": null,//填开日期
			"issuingStatus": null,//开票状态
			"markingOfDomesticOrInternational": null,//国内国外标识
			"numberOfGpOrder": null,//GP订单号
			"items": [//行程信息
				{
					"flightSegment": null,//航段序号
					"departureStation": null,//出发地
					"destinationStation": null,//目的地
					"carrier": null,//承运人
					"flight": null,//航班号
					"level": null,//座位等级
					"carrierDate": null,//承运日期
					"departureTime": null,//起飞时间
					"fareBasis": null,//客票级别/客票类别
					"effectiveDate": null,//客票生效日期
					"expirationDate": null,//有效截止日期
					"freeBaggageAllowance": null//免费行李
				}
			],
			//数电票(铁路客票)
			"buyerName": null,//购买方名称
			"buyerTaxCode": null,//购买方纳税人识别号
			"invoiceCategory": null,//发票类型
			"invoiceNo": null,//发票号码
			"invoiceDate": null,//开票日期
			"invoiceAmount": null,//不含税金额
			"taxAmount": null,//税额
			"taxRate": null,//税率
			"invoiceSummaryAmount": null,//税价合计
			"area": null,//省
			"city": null,//城市
			"remark": null,//票面备注
			"picUrl": null,//影像文件
			"sourceUrl": null,//源文件
			"passengerName": null,//乘客姓名
			"validIdNumber": null,//有效身份证号
			"totalAmount": null,//票面金额
			"pickupDate": null,//乘车日期
			"pickupTime": null,//乘车时间
			"stationGetOn": null,//上车车站
			"stationGetOff": null,//下车车站
			"trainNumber": null,//车次
			"seat": null,//座位类型
			"seatNumber": null,//座位号
			"typeOfBusiness": null,//商务类型 退 售 改签 退差
			"numberOfOriginalInvoice": null,//原发票号码
			"phonicsOfDepartureStation": null,//起始站拼音
			"phonicsOfDestinationStation": null,//终点站拼音
			"eticketNumber": null//电子客票号
		}
	},
	"message": ""
}
修改于 2024-12-12 06:18:36
上一页
查询全票种列表
下一页
全票种状态批量修改
Built with