发票查验
 
调用地址:https://open.cs.zbj.com/oapi/invoice/query
 
请求方式:GET
 
返回类型:JSON
 
 
调试工具: 去调试
 
计费规则:HTTP状态码为200则计费,1充值点/次
 
请求参数(Query)
 
名称 类型 是否必须 描述
fpdm STRING 必选 发票代码
fphm STRING 必选 发票号码
kprq STRING 必选 开票日期
checkCode STRING 必选 校验码后6位
noTaxAmount STRING 必选 不含税金额
isCover STRING 可选 是否覆盖查询,只有true时表示覆盖
 
请求参数示例
 
GET /oapi/invoice/query?fpdm=051001600111&fphm=18700265&isCover=isCover&kprq=20170620&checkCode=868116&noTaxAmount=2289 HTTP/1.1
Host: open.cs.zbj.com
Authorization: Bearer 3F2504E04F8911D39A0C0666E82C3301
 
返回参数
 
名称 类型 是否必须 描述
success BOOLEAN true: 查询到发票信息,false: 没有查询到发票信息
 
正常返回示例
 
1、电子增值税普通发票(10),增值税普通发票(04),增值税专票(01)
{
  "success": true,
  "fpdm": "发票代码",
  "fplx": "发票类型",
  "fphm": "发票号码",
  "kprq": "开票日期",
  "xfMc": "销售方名称",
  "xfNsrsbh": "销售方纳税人识别号",
  "xfContact": "销售方联系方式",
  "xfBank": "销售方开户行",
  "gfMc": "购方名称",
  "gfNsrsbh": "购方纳税人识别号",
  "gfContact": "购方联系方式",
  "gfBank": "购方开户行",
  "code": "发票校验码",
  "num": "发票机器码",
  "del": "是否作废",
  "taxamount": "税额合计",
  "goodsamount": "价格合计",
  "sumamount": "价税合计",
  "quantityAmount": "数量合计",
  "updateTime": "更新时间",
  "queryCount": "税局查验次数",
  "remark": "备注",
  "goodsData": [
    {
      "name": "名称",
      "spec": "规格",
      "unit": "单位",
      "amount": "数量",
      "priceUnit": "单价",
      "priceSum": "金额",
      "taxRate": "税率",
      "taxSum": "税额"
    }
  ]
}
 
2、机动车(统一)发票(03)
{
  "success": true,
  "fpdm": "发票代码",
  "fplx": "发票类型",
  "fphm": "发票号码",
  "kprq": "开票日期",
  "xfMc": "销售方名称",
  "xfNsrsbh": "销售方纳税人识别号",
  "xfContact": "销售方联系方式",
  "xfBank": "销售方开户行",
  "gfMc": "购方名称",
  "gfNsrsbh": "购方纳税人识别号",
  "gfContact": "购方联系方式",
  "gfBank": "购方开户行",
  "code": "发票校验码",
  "num": "发票机器码",
  "del": "是否作废",
  "taxamount": "税额合计",
  "goodsamount": "价格合计",
  "sumamount": "价税合计",
  "quantityAmount": "数量合计",
  "updateTime": "更新时间",
  "queryCount": "税局查验次数",
  "remark": "备注",
  "goodsData": [
    {
      "name": "名称",
      "spec": "规格",
      "unit": "单位",
      "amount": "数量",
      "priceUnit": "单价",
      "priceSum": "金额",
      "taxRate": "税率",
      "taxSum": "税额",
      "buyerId": "身份证或组织机构代码",
      "origin":  "产地",
      "ccCode": "合格证",
      "importCode":  "进口证明书号",
      "inspectionCode": "商检单号",
      "engineCode": "发动机号",
      "vinCode": "车架号",
      "taxesCode": "完税凭证",
      "tonnage": "吨位",
      "limitNum": "限乘人数",
      "taxOrg": "税务机关",
      "taxOrgCode": "税务机关代码",
      "auctionTel": "销货方电话"
    }
  ]
}
 
3、二手车销售统一发票(15)
{
  "success": true,
  "fpdm": "发票代码",
  "fplx": "发票类型",
  "fphm": "发票号码",
  "kprq": "开票日期",
  "xfMc": "销售方名称",
  "xfNsrsbh": "销售方纳税人识别号",
  "xfContact": "销售方联系方式",
  "xfBank": "销售方开户行",
  "gfMc": "购方名称",
  "gfNsrsbh": "购方纳税人识别号",
  "gfContact": "购方联系方式",
  "gfBank": "购方开户行",
  "code": "发票校验码",
  "num": "发票机器码",
  "del": "是否作废",
  "taxamount": "税额合计",
  "goodsamount": "价格合计",
  "sumamount": "价税合计",
  "quantityAmount": "数量合计",
  "updateTime": "更新时间",
  "queryCount": "税局查验次数",
  "remark": "备注",
  "goodsData": [
    {
      "name": "名称",
      "spec": "规格",
      "unit": "单位",
      "amount": "数量",
      "priceUnit": "单价",
      "priceSum": "金额",
      "taxRate": "税率",
      "taxSum": "税额",
      "plateCode": "牌照",
      "registerCode": "登记证号",
      "vinCode": "车架号",
      "vehicleOrg": "转入地车管所",
      "auctionName": "经营、拍卖单位",
      "auctionAdd": "经营、拍卖单位地址",
      "auctionCode": "经营、拍卖单位纳税人识别号",
      "auctionBank": "经营、拍卖单位开户银行账号",
      "auctionTel": "经营、拍卖单位电话",
      "marketName": "二手车市场",
      "marketCode": "二手车市场纳税人识别号",
      "marketAdd": "二手车市场地址",
      "marketBank": "二手车行开户银行账号",
      "marketTel": "二手车行电话"
    }
  ]
}
 
4、货物运输业增值税专用发票(02)
{
  "success": true,
  "fpdm": "发票代码",
  "fplx": "发票类型",
  "fphm": "发票号码",
  "kprq": "开票日期",
  "xfMc": "销售方名称",
  "xfNsrsbh": "销售方纳税人识别号",
  "xfContact": "销售方联系方式",
  "xfBank": "销售方开户行",
  "gfMc": "购方名称",
  "gfNsrsbh": "购方纳税人识别号",
  "gfContact": "购方联系方式",
  "gfBank": "购方开户行",
  "code": "发票校验码",
  "num": "发票机器码",
  "del": "是否作废",
  "taxamount": "税额合计",
  "goodsamount": "价格合计",
  "sumamount": "价税合计",
  "quantityAmount": "数量合计",
  "updateTime": "更新时间",
  "queryCount": "税局查验次数",
  "remark": "备注",
  "goodsData": [
    {
      "name": "名称",
      "spec": "",
      "unit": "",
      "amount": "",
      "priceUnit": "",
      "priceSum": "金额",
      "taxRate": "",
      "taxSum": ""
    }
  ]
}
 
5、卷式普通发票(11)
{
  "success": true,
  "fpdm": "发票代码",
  "fplx": "发票类型",
  "fphm": "发票号码",
  "kprq": "开票日期",
  "xfMc": "销售方名称",
  "xfNsrsbh": "销售方纳税人识别号",
  "xfContact": "销售方联系方式",
  "xfBank": "销售方开户行",
  "gfMc": "购方名称",
  "gfNsrsbh": "购方纳税人识别号",
  "gfContact": "购方联系方式",
  "gfBank": "购方开户行",
  "code": "发票校验码",
  "num": "发票机器码",
  "del": "是否作废",
  "taxamount": "税额合计",
  "goodsamount": "价格合计",
  "sumamount": "价税合计",
  "quantityAmount": "数量合计",
  "updateTime": "更新时间",
  "queryCount": "税局查验次数",
  "remark": "备注",
  "goodsData": [
    {
      "name": "名称",
      "spec": "",
      "unit": "",
      "amount": "数量",
      "priceUnit": "单价",
      "priceSum": "金额",
      "taxRate": "",
      "taxSum": ""
    }
  ]
}
 
6、电子普通[通行费]发票(14)
{
  "success": true,
  "fpdm": "发票代码",
  "fplx": "发票类型",
  "fphm": "发票号码",
  "kprq": "开票日期",
  "xfMc": "销售方名称",
  "xfNsrsbh": "销售方纳税人识别号",
  "xfContact": "销售方联系方式",
  "xfBank": "销售方开户行",
  "gfMc": "购方名称",
  "gfNsrsbh": "购方纳税人识别号",
  "gfContact": "购方联系方式",
  "gfBank": "购方开户行",
  "code": "发票校验码",
  "num": "发票机器码",
  "del": "是否作废",
  "taxamount": "税额合计",
  "goodsamount": "价格合计",
  "sumamount": "价税合计",
  "quantityAmount": "数量合计",
  "updateTime": "更新时间",
  "queryCount": "税局查验次数",
  "remark": "备注",
  "goodsData": [
    {
      "name": "名称",
      "spec": "规格",
      "unit": "单位",
      "amount": "数量",
      "priceUnit": "",
      "priceSum": "",
      "taxRate": "税率",
      "taxSum": "税额",
      "dateBegin": "开始日期",
      "dateEnd": "结束日期"
    }
  ]
}