> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hyperline.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Download electronic invoice file

> Download a file of the electronic invoice of an invoice for one e-invoicing system, as issued: the PDF with embedded XML (Factur-X, ZUGFeRD) or the XML. An invoice can have one electronic invoice per system, listed in its `electronic_invoices`.



## OpenAPI

````yaml get /v1/invoices/{id}/electronic-invoices/{system}/download
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/invoices/{id}/electronic-invoices/{system}/download:
    get:
      tags:
        - Invoices
      summary: Download electronic invoice file
      description: >-
        Download a file of the electronic invoice of an invoice for one
        e-invoicing system, as issued: the PDF with embedded XML (Factur-X,
        ZUGFeRD) or the XML. An invoice can have one electronic invoice per
        system, listed in its `electronic_invoices`.
      operationId: downloadInvoiceElectronicInvoiceFile
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
        - schema:
            type: string
          required: true
          name: system
          in: path
        - schema:
            type: string
            enum:
              - pdf
              - xml
            description: >-
              File to download, as issued. `pdf` is the PDF with its embedded
              XML, produced by Factur-X and ZUGFeRD only. `xml` is the
              electronic invoice XML, produced by every system.
            example: xml
          required: true
          description: >-
            File to download, as issued. `pdf` is the PDF with its embedded XML,
            produced by Factur-X and ZUGFeRD only. `xml` is the electronic
            invoice XML, produced by every system.
          name: file
          in: query
      responses:
        '200':
          description: Electronic invoice file
          content:
            application/pdf:
              schema:
                format: binary
            application/xml:
              schema:
                format: binary
        '404':
          description: >-
            Invoice not found, no electronic invoice for this system, or the
            system produces no such file
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '409':
          description: >-
            Electronic invoice not generated yet, failed, or its file was not
            returned by the provider
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.