发票账单数据回写接口

接口: /invoice/specialSearch POST JSON

请求参数

参数 类型 必须 默认值 主键 描述
billCode string Y 子账单编码
invoiceType string N 发票类型
entCode string Y 企业号
offset int N 0 分页起始
limit int N 500 分页条数
注意
  • 接口最多返回500条记录;可通过offset, limit进行分页;
示例

根据签收发票时间查询发票

{
    "offset":0,
    "limit":10,
    "billCode":"123123123",
    "invoiceType":"PAPER",
    "entCode":"asdasda"
}

返回数据

参数 类型 描述
invoiceDataCode string 业务编码
invoiceCode string 发票代码
invoiceNumber string 发票号码
issueDate string 开票时间
checkCode string 校验码
totalPriceAmount bigDecimal 不含税金额
totalTaxAmount bigDecimal 合计税额
totalPriceAndTax bigDecimal 价税合计
type string 发票类型
remark string 备注
jsonProps string 额外信息。当类型为火车票时,consumeLocation:消费地,consumeDate:消费时间,departureLocation:出发地,destinationLocation:目的地,seat:座位类型,vehicleNumber:班次,passenger:乘客名,departureTime:出发时间,roundWay:是否往返,seatName:座位类型 ticketNo:电子客单号
lineItems List<InvoiceItemDto> 发票明细
attachmentFiles List<AttachmentFile> 附件
BillInfos List<BillInfo> 账单信息

AttachmentFile.class

参数 类型 描述
originalUrl string 源图片url
filename string 发票附件下载链接,有效期1个小时
type string 文件类型
size string 文件大小

BillInfo.class

参数 类型 描述
billlCode string 子账单编码
bussinessTypeName string 商旅平台名称
company string 账单所属公司
billTypeName string 账单分类名称
orderId string 订单ID
operationId string 操作人ID

返回数据(成功)

{
  "code":"ACK",
  "message":"",
  "data":[
    {
      "invoiceDataCode":"INV2009231AV99XQ8",
      "userCode":"UI1707201NIOCWLC",
      "invoiceCode":"asa",
      "invoiceNumber":"as",
      "issueDate":1600790400000,
      "totalPriceAmount":1,
      "totalTaxAmount":0,
      "totalPriceAndTax":1,
      "invoiceTypeDesc":"增值税普通发票(纸质)",
      "remark":"",
      "invoiceDateStr":null,
      "passenger" : "xiaoming",
      "seat": "一等座",
      "consumeDate": "2024-11-04 12:36:48",
      "lineItems": [
        {
          "name": "*医疗仪器器械*输尿管支架",
          "priceAmount": 7135.40,
          "taxRate": 0.13,
          "taxAmount": 927.60
        }
      ],
      "attachments":null,
      "attachmentFiles":null
    }
  ],
  "last": true
}

results matching ""

    No results matching ""