> ## 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 invoice

> Download the PDF of an existing invoice, returned as a downloadable file. We recommend enabling redirect following in your HTTP client.



## OpenAPI

````yaml get /v2/invoices/{id}/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:
  /v2/invoices/{id}/download:
    get:
      tags:
        - Invoicing > Documents
      summary: Download invoice
      description: >-
        Download the PDF of an existing invoice, returned as a downloadable
        file. We recommend enabling redirect following in your HTTP client.
      operationId: downloadInvoice
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
        - schema:
            type: string
            enum:
              - fr
              - en
              - de
              - it
              - lt
              - nl
              - es
              - pt
              - pl
          required: false
          name: lang
          in: query
        - schema:
            type: string
            pattern: ^(fr|en|de|it|lt|nl|es|pt|pl)-[A-Z]{2}$
            description: >-
              Locale as a supported language code and an uppercase ISO 3166-1
              alpha-2 country code, separated by a hyphen.
            example: fr-FR
          required: false
          description: >-
            Locale as a supported language code and an uppercase ISO 3166-1
            alpha-2 country code, separated by a hyphen.
          name: locale
          in: query
      responses:
        '200':
          description: Download a draft or open invoice PDF file
          content:
            application/pdf:
              schema:
                format: binary
        '302':
          description: Redirect to a short-lived download URL
        '404':
          description: Invoice or file not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message

````

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