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

# Generate PDF url

> Requests a PDF copy of selected invoice
A pre-signed URL, valid for up to 10 minutes will be generated that allows the user to download the file



## OpenAPI

````yaml /openapi/openapi.json post /sales/pdfUrl
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:
  /sales/pdfUrl:
    parameters: []
    post:
      tags:
        - Sales
      summary: Generate PDF url
      description: >-
        Requests a PDF copy of selected invoice

        A pre-signed URL, valid for up to 10 minutes will be generated that
        allows the user to download the file
      operationId: postsales-pdfUrl
      requestBody:
        content:
          application/json:
            schema:
              type: object
              x-examples:
                Example 1:
                  invoiceIds:
                    - 12679
              properties:
                invoiceId:
                  type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                x-examples:
                  Example 1:
                    result: OK
                    data: >-
                      https://lktest-altera-stack-altera-alterabucket37643c33-axr9boaxgar9.s3.eu-central-1.amazonaws.com/invoices/1/2022/10/2_10_2022_2023-02-22_MnWik8jH.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIAX3I6YW7PAKM4ZRXF%2F20230309%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20230309T145540Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEKf%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDGV1LWNlbnRyYWwtMSJHMEUCID32SnOp8c%2BI4NMSYO1LA35rWmPMP%2BbYQFKkh%2FsB%2BbQCAiEAkGnjB2nnTDq%2FsFyUxQBCBVEBHHb6MueQDTsrIOxoecIqzAMIYBACGgw1Mzk2MTk4MDEwNTQiDJWRiVUudt3EHu82jiqpA055tr2WUzmbdUV3hLu8kzVdBgNNx9j8upu4hWFIpAFVpMnVPnV%2Fx8wz9Bqhxi8xs%2B5x5Vg9DhETz7lug%2FiXz08EA1FSW6hWsgJbOxAzkYa2qjKefqR4gtfAeapn2tK9NNSPlFUqflsMccVz6W60UG6zQRYvgiTf%2F73wuXXt%2FFG%2B1h3S7faNs7gJrf9t3T0yibkJIUG98q9UM9m%2FVd2huBAeFGj%2F%2BOfTs9YPRKnIWArHNQ7BLoMqJn9rWzytKooefvLZghJFnfjZEQnqFDSBX0O4%2BwHvamqEAG%2BdjBr97BEY78Ka2s1bjCcGBJFk3bDDyOys9WIvd1U5ainhZUw1kvdMe7RmOQhJSgbdBh%2FFCITRWLrWWYnDKAC%2BpvufUlhmhKOXgXr7ynrKo9A%2FM7%2BVFkMaSi9Lgg%2Fn9ciQbSbLA18U0f68u6xYorNDptbeKAGh3d5io1%2Fl5w9ZtFEXZiHaqaKCtbU%2FOvvM%2BOSTNqCpdFJ6Nf%2BZIJakqLjomyRpJ7dsOdi1bx9JmLGqSnLSohXW8SdY9ybmzpgSQCCz6ACjqAgLzYxMTC3eyPEWMOrmp6AGOp4B9J1z1YEjLTRWZitjoCkQfXZu3Z5IeMGJ8YgxY80X%2FD3QUcXANhrPbyifL7xJMKRguCv8WNpmMlWxtk0zYSs9UAeCNp%2BnqwGi6%2BdgpnT2Pcob%2BQs2ZUqG0OINMMopNo7qB60YV2UGDW4VQTsp%2FQY6Qvi%2B26hGmGmnK2mcImgu%2FWKPXQJ35gdsiOLclIYOLXvDw1%2BM%2FoCTebeVPs0hi84%3D&X-Amz-Signature=0239d7c52e906edf2140684e2092e7adeadb1b8ca2c2daf4217ccfade00fc2ae&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%272%252F10%252F2022.pdf&response-content-type=application%2Fpdf&x-amz-user-agent=aws-sdk-js%2F3.197.0&x-id=GetObject
                properties:
                  result:
                    type: string
                    enum:
                      - OK
                    default: OK
                    example: OK
                  data:
                    type: string
                    description: Pre-signed url to download invoice PDF copy
components:
  securitySchemes:
    Authorization:
      name: Authorization
      type: apiKey
      in: header
      description: OpenApi Key created within Altera.app for a certain company

````