| 接口名称:/open/invoice/queryInvoice |
|---|
请求参数:
| 字段 | 类型 | 必填项 | 描述 |
| merchantCode | text | 是 | 机构商户号 |
| outTransNo | text | 是 | 商户外部流水号 |
| invoiceReqSerialNo | text | 是 | 发票请求流水号,外部流水号与发票请求流水号,以外部流水号为准;若是二维码开票,只能以发票请求流水号查询 |
响应:
| tradeNo | text | 订单号,发票状态为成功时必传 |
| status | number | 开票状态:0-未开票, 1-开票中, 2-开票成功, 3-开票失败 |
| invoiceCode | text | 发票代码,发票状态为成功时必传 |
| invoiceNo | text | 发票号码,发票状态为成功时必传 |
| invoiceDate | text | 开票日期,发票状态为成功时必传,yyyy-MM-dd HH:mm:ss |
| downloadUrl | text | 电子发票PDF下载地址 |
| securityCode | text | 效验码,开票成功时必传,失败时不传 |
| invoiceReqSerialNo | text | 发票请求流水号 |
| buyerName | text | 购买方名称 |
| buyerTaxpayerNum | text | 购买方纳税人识别号 |
| buyerAddress | text | 购买方地址 |
| buyerTel | text | 购买方电话 |
| buyerBankName | text | 购买方开户行 |
| buyerBankAccount | text | 购买方银行账号 |