5.1.02回调接口-按票回调(一次回调一张发票信息)
POST
/:忽略该接口前缀,此为对接发票云方提供的回调地址(对接方必须按照成功响应示例报文返回 json )默认开票回调方式。每开一张发票就回调一次一个开票申请单如果拆分开具了N张发票,在发票开具成功后,根据发票张数,会回调N次。
请求参数
业务编码,开票回调是INVOICE.OPEN,作废回调是INVOICE.CANCEL,红冲回调是INVOICE.RED
0-成功 9999-失败
开票失败原因,成功返回 success
需要把data里面的base64字符串解密
购买方地址和电话,GBK编码100字节,开专票时若未传入则用名称匹配系统维护的地址电话【长度:100】
购买方银行和账号,GBK编码100字节,开专票时若未传入则用名称匹配系统维护的银行和账号【长度:100】
购买方性质,0-企业,1-个人
差额征税差额【长度:(14,2)】
开票人【长度:10】
收款人【长度:10】
复核人【长度:10】
含税标识,0-不含税,1-含税【长度:1】
清单标志,0-非清单发票,1-清单发票【长度:1】
发票状态 0-正常 2-待开 3-红冲 6-作废
板式文件下载地址,航信百旺税盘开普通电票为PDF文件,开电子专票为ofd文件,ukey开电票都是ofd文件,数电票为ofd文件
PDF转图片预览地址
数电票pdf地址,星瀚版本5.0.022支持
数电票xml地址,星瀚版本5.0.022支持
开票类型,0蓝票,1红票 【长度:1】
原蓝票发票代码,开红票必传【长度:12】
原蓝票发票号码,开红票必传【长度:8】
原蓝票状态,红冲、回调时存在,红冲回调为3、作废回调为6
原蓝票开票时间,红冲、回调时存在,格式为"yyyyMMdd"
纸票打印标识,0-未打印 1-已打印
红字信息表编号,专用发票红冲必传【长度:16】
备注,GBK编码230字节【长度:230】
序列号 【拆分合并后重新生成的编号】
征税方式,0-普通 2-差额
开票业务管控额度预警
是否已超过月预警阈值
{
"interfaceCode": "string",
"returnCode": "string",
"returnMsg": "string",
"data": {
"abolishReason": "string",
"batch": "string",
"billNo": "string",
"buyerAddressAndTel": "string",
"buyerBankAndAccount": "string",
"buyerName": "string",
"buyerProperty": 0,
"buyerRecipientMail": "string",
"buyerRecipientPhone": "string",
"buyerTaxpayerId": "string",
"canceler": "string",
"deduction": 0,
"deviceNo": "string",
"drawer": "string",
"payee": "string",
"reviewer": "string",
"includeTaxAmount": 0,
"totalAmount": 0,
"totalTaxAmount": 0,
"includeTaxFlag": 0,
"inventoryMark": "string",
"invoiceCode": "string",
"invoiceNum": "string",
"invoiceStatus": "string",
"invoiceDate": "string",
"invoiceDetail": [
{
"amount": 0,
"billSourceId": "string",
"goodsName": "string",
"includeTaxAmount": 0,
"includeTaxPrice": "string",
"lineProperty": 0,
"price": "string",
"privilegeContent": "string",
"privilegeFlag": 0,
"quantity": "string",
"revenueCode": "string",
"revenueName": "string",
"seq": 0,
"specification": "string",
"taxAmount": 0,
"taxRate": "string",
"units": "string",
"zeroTaxRateFlag": "string"
}
],
"invoiceFileUrl": "string",
"invoiceImageUrl": "string",
"invoicePdfFileUrl": "string",
"invoiceXmlFileUrl": "string",
"invoiceProperty": 0,
"invoiceType": "028",
"orderNo": "string",
"originalInvoiceCode": "string",
"originalInvoiceNumber": "string",
"originalInvoiceStatus": "string",
"originalIssueTime": "string",
"printFlag": "string",
"redInfoBillNo": "string",
"remark": "string",
"sellerAddressAndTel": "string",
"sellerBankAndAccount": "string",
"sellerName": "string",
"sellerTaxpayerId": "string",
"serialNo": "string",
"systemSource": "string",
"taxedType": 0,
"terminalNo": "string",
"checkCode": "string",
"skm": "string"
},
"bizControl": {
"issueBizType": "string",
"bizType": "string",
"monthSurplusLimit": 0,
"daySurplusLimit": 0,
"isWarning": true
}
}