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

# Export invoice information

> This endpoint allows you to download any set of invoices (either sales or expenses) from your company

Additional filters (with same parameters as for listing invoices) may be applied to reduce the amount of documents requested.



## OpenAPI

````yaml /openapi/openapi.json get /export
openapi: 3.1.0
info:
  title: OpenAPI
  version: '1.0'
  summary: OpenApi
  contact:
    name: Altera Support
    url: https://altera.co
    email: wsparcie@altera.co
  description: ''
  license:
    url: https://altera.co/regulamin
    name: Terms of services for Altera.app
servers:
  - url: https://api.altera.co
    description: Production endpoint (proxied)
security:
  - Authorization: []
tags:
  - name: Configuration
  - name: Data export
  - name: Expenses
  - name: Sales
paths:
  /export:
    parameters: []
    get:
      tags:
        - Data export
      summary: Export invoice information
      description: >-
        This endpoint allows you to download any set of invoices (either sales
        or expenses) from your company


        Additional filters (with same parameters as for listing invoices) may be
        applied to reduce the amount of documents requested.
      operationId: get-export
      parameters:
        - schema:
            type: string
            enum:
              - Excel
              - JPK_FA
              - PDF
            example: Excel
          in: query
          name: exportFileType
          description: >-
            Defines the output file type of export; JPK_FA is only available for
            SALES
          required: true
        - schema:
            type: string
            enum:
              - SALES
              - PROCESSED_EXPENSES
            example: SALES
          in: query
          description: Defines the dataset for our export
          name: exportType
          required: true
      responses:
        '200':
          description: Returns a pre-signed URL with requested data file
          content:
            application/json:
              schema:
                type: object
                x-examples:
                  Example 1:
                    result: OK
                    data: >-
                      https://dev-altera-stack-support-tempdocsbucketd3373e14-oeryktk9o7gb.s3.eu-central-1.amazonaws.com/temporary/xlsx_mcuzbNcrwLYuRDwcm0WCMTJsO9viG6Bj?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAX3I6YW7PCNYSG7JM%2F20230316%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20230316T072716Z&X-Amz-Expires=300&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEEgaDGV1LWNlbnRyYWwtMSJHMEUCIH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ders=host&response-content-disposition=attachment%3B%20filename%3D%22Exported_Invoices_1678951636693.xlsx%22&response-content-type=application%2Foctet-stream
                properties:
                  result:
                    type: string
                    example: OK
                  data:
                    type: string
                    description: >-
                      Pre-signed URL that allows us to download the file
                      requested
              examples:
                Example 1:
                  value:
                    result: OK
                    data: >-
                      https://dev-altera-stack-support-tempdocsbucketd3373e14-oeryktk9o7gb.s3.eu-central-1.amazonaws.com/temporary/xlsx_mcuzbNcrwLYuRDwcm0WCMTJsO9viG6Bj?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAX3I6YW7PCNYSG7JM%2F20230316%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20230316T072716Z&X-Amz-Expires=300&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEEgaDGV1LWNlbnRyYWwtMSJHMEUCIHkqs6J0qIIVUjqbAO3WEHz8HHeDb8wvETRwgYQR65H9AiEAvRNEOKR4Rw%2BkQAfbvF2s3BwDfEyP91z%2F%2Bif1CcGsnvsqyAMIERACGgw1Mzk2MTk4MDEwNTQiDBs091tyAz3XSjWaFyqlA9E1HnxQmcbPEfmhl5O%2F5PkIBxKDazHkNnX2ZT58pGhH5iacYWo%2BilLvMBqYqLi%2F4%2FBDTR2HMyCCT1OHlkeaCMBewIc5SRjkBrHQUK0NZnan5ZeaYoCgOT7i1wbPfkBPHy4eVQWvWO%2FQ8fiMZWm3pfIj4%2Bug8mM5ngDjCJye8y8%2Fok5UKgpkmDa8sPKK5meEEtanFkH8meqP%2F30qedFeXHv5MKr947Yn8ZEr%2F86HTVXJo%2Fa%2FdHN8WhflvYMkGxUyqOV%2B0oNxSa%2FVg7b4XTcU3DpkHqBQvw%2FzmgpZvFp7a6cvZ8bFl5V6gqjWC5pvnvc0TTjwEtdZoxYSyqXJUcu1hQZnQoOGC9se632GGnueojyDn4JKPyRCsniOAM1PA7Ar7WzGuMgwfsQiA5vehV%2BHjA9ABvzN2WfRT1a0LZ8xdSAjlCQSb%2FPSjsZJgqQ%2FT2EROyME%2BEL9J0h4Exq1pCq%2Fnr0PSDKad4hTi9%2B65I6yooEcsqiAbw0KY%2Fs%2FnUB5On5F7IX575HIUhD8SxUC%2B%2BHSoT4GSIK568TExytKHIDgELBvd47cE7Aw0YnLoAY6ngHgq%2BqAOo3UjDPIrh5a5RQ%2BYWppNdzp%2BtffWesIVJTJQLNyJosoZN8t8dcU9IH9oS0t96JMnDLVA7CZa%2B0SdiHdURLFHrYqd6VECDgseRAGQXES2n2VIS9Z8ydWmsksPg%2FgNe0Gz3QkiPNI7ovOmdAAVn%2FC98fwsPQdD2sCGIPiFM%2Bbw74sJdY6IbCu%2Bz8OdRKjGWPUMQZ82QOo%2BKxUEQ%3D%3D&X-Amz-Signature=4aac18b700959c65d17198e2708db279273af00df4249b474cac1e3386227508&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3D%22Exported_Invoices_1678951636693.xlsx%22&response-content-type=application%2Foctet-stream
components:
  securitySchemes:
    Authorization:
      name: Authorization
      type: apiKey
      in: header
      description: OpenApi Key created within Altera.app for a certain company

````