12.4获取电票列表

优质
小牛编辑
132浏览
2023-12-01

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称invoice_get_liststring
getGET参数组,本组参数需要参与签名object
└date开票日期20200318number

请求示例

{
	"action": {
		"action": "invoice_get_list"
	},
	"get": {
		"date": "20200318"
	}
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
info错误时会返回相应的错误信息okstring
listlist
└msid开票门店6786number
└id开票id922number
└biz_id线下业务单号1020121number
└type开票类型普通增值电子发票string
└sellerTaxName开票方名称果盘网string
└sellerTaxCode开票方税号91320594MA1MDDstring
└amt开票方金额30.00number
└time开票时间2020-03-18 15:57:15number
└state开票状态(0=未开票,1=开票失败,2=开票中,3=开票成功,4=冲红,5=取消开票)3number
└statueName开票状态描述开票成功string
└num发票号码98527986number
└code发票代码032001700311number
└buyerTaxName消费者公司名称个人string
└buyerTaxCode消费者公司税号string
└otherInfo其他开票信息object
└└drawer开票人西瓜string
└└payer收款人雪碧string
└└reviewer复核人雪碧string
└└remark发票备注西瓜测试string
└└items商品明细list
└└└code商品编码(19位数字)3070401000000000000number
└└└name商品名称青椒土豆丝string
└└└price商品单价8.88number
└└└quantity商品数量1number
└└└uom商品单位string
└└└taxRate商品税率(免税时传0)0.06number
└└└amount合计金额8.88number
└└└catalogCode商品分类编码(19位数字)3070401000000000000number
└statueTime状态时间2019-12-15 11:43:15string
msid6786number
└└viewUrl发票查看地址https://www.chinaeinv.com:943/p.jspa?c=2B01DCBFCA9F5C356A57string
└└downloadUrl发票下载地址https://hz-beta.dc78.cn/proxy?source=https%3A%2F%2Fwww.chinaeinv.com%3A943%2Fpdf.jspa%3Fc%3D2B01DCBFCA9F5C356A57string

响应示例

{
  "status": "1",
  "info": "ok",
  "list": [
    {
      "msid": 6786,
      "id": 922,
      "biz_id": "1020121",
      "type": "普通增值电子发票",
      "sellerTaxName": "果盘网",
      "sellerTaxCode": "91320594MA1MDD",
      "amt": "30.00",
      "time": 1584518235,
      "statueTime":"2019-12-15 11:43:15",
      "state": 3,
      "statueName": "开票成功",
      "num": "98527986",
      "code": "032001700311",
      "buyerTaxName": "个人",
      "buyerTaxCode": "",
      "otherInfo":{
        "drawer":"西瓜",
        "payer":"雪碧",
        "reviewer":"雪碧",
        "remark":"西瓜测试",
        "items":[{
           "code":"3070401000000000000",
           "name":"青椒土豆丝",
           "price":"8.88",
           "quantity":"1",
           "uom":"份",
           "taxRate":"0.06",
           "amount":"8.88",
           "catalogCode":"3070401000000000000"
        }],
     "viewUrl": "https:\/\/www.chinaeinv.com:943\/p.jspa?c=2B01DCBFCA9F5C356A57",
      "downloadUrl": "https:\/\/hz-beta.dc78.cn\/proxy?source=https%3A%2F%2Fwww.chinaeinv.com%3A943%2Fpdf.jspa%3Fc%3D2B01DCBFCA9F5C356A57"
       }
    }
  ],
  "server_timestamp": 1588989671,
  "server_time": "2020-05-09 10:01:11",
  "server_name": "api-133.hz",
  "msid": "6786"
}