---
title: "Download a file in the specified file format"
method: GET
path: "/v1/invoices/{invoiceKey}/e-invoice/download"
tags: ["E-Invoicing"]
---

# Download a file in the specified file format

`GET /v1/invoices/{invoiceKey}/e-invoice/download`

Downloads the e-invoice based on the selected file format. 
The system supports XML, UBL, PNG, or QR codes formats that each country requires or supports.

## Path parameters

- `invoiceKey` string, required

## Query parameters

- `fileFormat` 'XML' | 'PDF' | 'ZIP' | 'OASIS_Universal_Business_Language_XML'

## Headers

- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Track-Id` string
- `Zuora-Entity-Ids` string
- `Zuora-Org-Ids` string
- `Zuora-Version` string

## Response `200`

OK

- EinvoiceDownload
  - `success` unknown
  - `error` GETEinvoiceDownload[] — Container for downloading e-invoice.
    - `success` boolean — Returns `false` if the request was not processed successfully.
    - `processId` string — Process Id of the validation error.
    - `reasons` GETEinvoiceDownloadErrors[] — Container for error reasons.
      - `code` string — Code for the validation error.
      - `message` string — Validation error message.
    - `requestId` string — Request Id for the validation error.

## Other responses

- `500` — Internal Server Error
- `4XX` — Request Errors

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zuora/api-reference/revisions/d11e237f3e54/schema)
