文档中心 > API类目 > 电子发票

alibaba.einvoice.prod.result.fileurl.get (发票中台-发票文件下载地址查询)

发票文件下载地址查询,外部ISV通过该接口可以查对应发票文件

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
platform_user_id String 必须 123456 业务平台商户ID/卖家用户ID
invoice_no String 必须 11110000 发票号码
invoice_code String 必须 011111000111 发票代码
file_type String 必须 pdf 发票文件类型,小写,pdf/ofd/jpg
platform_code String 必须 ABC 业务平台code, 由发票中台分配

响应参数

名称 类型 示例值 描述
file_download_url String https://xxxxx 发票版式文件下载地址。下载链接是一次性链接,有效期1天。请发票文件下载后本地保存, 若异常导致需要再次下载文件,请再次请求接口获取。

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaEinvoiceProdResultFileurlGetRequest req = new AlibabaEinvoiceProdResultFileurlGetRequest();
req.setPlatformUserId("123456");
req.setInvoiceNo("11110000");
req.setInvoiceCode("011111000111");
req.setFileType("pdf");
req.setPlatformCode("ABC");
AlibabaEinvoiceProdResultFileurlGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_einvoice_prod_result_fileurl_get_response>
    <file_download_url>https://xxxxx</file_download_url>
</alibaba_einvoice_prod_result_fileurl_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部