1.05.电子发票信息查询 (根据代码、号码)
POST
/m7/bill/invoice/code/query请求参数
Path 参数
access_token
string
必需
Query 参数
access_token
string
必需
reqid
string
必需
当前13位毫秒级时间戳加3位随机数字(总共16位)
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
invoiceCode
string
可选
发票代码,查询全电发票时,可为空
invoiceNo
string
发票号码
示例
{
"invoiceCode": "string",
"invoiceNo": "string"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
errcode
string
0000
description
string
成功
data
object
必需
serialNo
string
必需
开票请求唯一流水号 流水号
type
number
0蓝票,1红票
invoiceCode
string
可选
发票代码,全电发票时,可为空
invoiceNo
string
发票号码
invoiceDate
string
开票日期
taxFlag
number
含税标记
invoiceAmount
number
不含税金额
totalTaxAmount
number
税额
totalAmount
number
价税合计金额
totalAmountCn
string
价税合计金额繁体
drawer
string
开票员
payee
string
收款员
reviewer
string
复核人
originalInvoiceCode
string
原发票代码
originalInvoiceNo
string
原发票号码
remark
string
备注
salerTaxNo
string
销货方方识别号
salerName
string
销货方名称
salerAddressPhone
string
必需
销货方地址、固定电话
salerAccount
string
销货方银行账号
buyerTaxNo
string
购货方方识别号
buyerName
string
购货方名称
buyerAddressPhone
string
必需
购货方地址、固定电话
buyerAccount
string
购货方银行账号
buyerMobilePhone
string
购货方手机
checkCode
string
必需
wxCardBagUrl
string
必需
pdfUrl
string
发票pdf下载地址
invoiceType
string
必需
发票种类:1、普通电子发票;2、电子发票专票;3、普通纸质发票;4、专用纸质发票;5、普通纸质卷票;26:全电发票(普通电票);27:全电发票(电子专票)
invoiceStatus
string
必需
发票状态0:正常、1:失控、2:作废、3:红冲、4:异常
items
array [object {17}]
必需
kdorgpdfurl
string
金蝶云盘发票地址
buyerEmail
string
购方邮箱
qsbz
string
清单标志
itemName
string
清单名称
hxbw
string
开票方类型,
invoiceChannel
number
可忽略
machineNo
string
机器编号
orderNo
string
订单号
sgfp
string
收购票标志
pdfurl
string
发票PDF地址
invalidDate
string
作废时间
snapshotUrl
string
必需
发票PDF文件快照地址(图片,不可下载)
invalid
string
是否作废
cipherArea
string
密码区
fwm
string
可忽略
示例
{
"errcode": "0000",
"data": {
"salerName": "航信培训企业",
"buyerEmail": "13732158159@163.com",
"invoiceAmount": 0.92,
"remark": "",
"type": 0,
"qsbz": "0",
"payee": "",
"itemName": "交通",
"hxbw": "1",
"salerTaxNo": "440301999999980",
"invoiceChannel": 1,
"invoiceType": "1",
"machineNo": "",
"invoiceNo": "20364963",
"buyerAddressPhone": "",
"salerAccount": "深圳高新园招行897456236845456",
"taxFlag": 1,
"orderNo": "",
"buyerTaxNo": "",
"drawer": "测试1",
"reviewer": "",
"sgfp": "",
"invoiceDate": "2021-06-23 17:37:09",
"originalInvoiceNo": "20345628",
"buyerName": "yufan",
"invoiceCode": "044032000111",
"pdfurl": "https://down.szhtxx.cn/downPdf/440301999999980/2021/06/23/17485420210623172623.pdf",
"invalidDate": "",
"serialNo": "17485420210623172623",
"checkCode": "52095958481006558393",
"totalAmount": 1,
"wxCardBagUrl": "https://api.kingdee.com/kdrive/user/file/public?client_id=200242&file_id=208196173&scode=YTNzZ2FTRUlMaU56TDhMR3lySm95&sign=6d91c24fd38aeb7c6f55cac796f0816913645165",
"salerAddressPhone": "深圳金蝶软件园南八路0688-8956413",
"buyerAccount": "",
"snapshotUrl": "https://api.kingdee.com/kdrive/user/file/snapshot?client_id=200242&file_id=208196173&quality=100&scode=aDJaPUoyWlc0SD1ES3VKcXZmWEpk&sign=aee7522696694d2f36241c16a43d49a6804b61b4&width=800",
"invalid": "",
"buyerMobilePhone": "13732158159",
"cipherArea": "",
"totalTaxAmount": 0.08,
"totalAmountCn": "壹元整",
"invoiceStatus": "3",
"fwm": "68f7463cda4a4948a59c64bedd450afc",
"items": [
{
"unitPrice": 1,
"taxFlag": 1,
"num": 1,
"preferentialPolicy": "0",
"zeroTaxRateFlag": "",
"zxbm": "",
"taxRate": 0.09,
"unit": "",
"deduction": null,
"vatException": "",
"versionNo": "",
"specModel": "",
"detailAmount": 1,
"discountType": 0,
"goodsCode": "3040203000000000000",
"taxAmount": 0.08,
"goodsName": "交通"
}
],
"originalInvoiceCode": "044032000111"
},
"description": "查询成功"
}
最后修改时间: 10 个月前