Skip to content
简要描述
  • 获取发票版式文件内容
请求 URL
  • <prefix>/rest/center/bill/invoice/<format>
请求方式

-GET

参数
参数名类型说明
formatString发票格式,可选值:pdf、xml、ofd,具体值请参考查询发票所有版式文件格式接口
tradeNoString发票交易号(请求流水号)
请求样例
GET <prefix>/rest/center/bill/invoice/xml
        ?tradeNo=2026070147492032001
content-type:{{contentType}}
hid:{{hid}}
返回示例
HTTP/1.1 200 
Server: nginx
Date: Tue, 07 Jul 2026 14:21:18 GMT
Content-Type: application/json
Content-Length: 6464
Connection: close

{
  "result": "xxxxxxxxxx",
  "retCode": 10000,
  "retMessage": "",
  "success": true
}

返回参数说明

参数名类型说明
resultString发票文件内容,base64编码

Released under the MIT License.