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

# Generate quote PDFs

> Preview: Generates temporary signed PDF download links for customer-visible quotes on a quote request.



## OpenAPI

````yaml /openapi.json post /v1/quote-requests/{id}/quotes/pdf
openapi: 3.1.0
info:
  description: >-
    Response objects may gain new fields and enum fields may gain new values
    over time without a breaking change. Clients should ignore unknown fields
    and handle unknown enum values gracefully rather than rejecting them.
  title: OVRSEA API
  version: 1.3.2
servers:
  - url: https://api.cf.ovrsea.com
security: []
paths:
  /v1/quote-requests/{id}/quotes/pdf:
    post:
      tags:
        - Quote requests
      summary: Generate quote PDFs
      description: >-
        Preview: Generates temporary signed PDF download links for
        customer-visible quotes on a quote request.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: 'Preview: Customer-facing id of the quote request.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              additionalProperties: false
              description: >-
                Preview: Optional quote selection and PDF language override.
                Omit the body or send `{}` to render all customer-visible
                quotes.
              properties:
                language:
                  description: >-
                    Preview: Localization language for standard quote PDFs. NRA
                    PDFs are always generated in English.
                  enum:
                    - en
                    - es
                    - fr
                    - it
                  type: string
                quote_ids:
                  description: >-
                    Preview: Subset of customer-visible quote ids belonging to
                    this quote request to render.
                  items:
                    description: 'Preview: Public identifier of a quote.'
                    minLength: 1
                    type: string
                  minItems: 1
                  type: array
                  uniqueItems: true
              type: object
        description: >-
          Preview: Optional quote selection and PDF language override. Omit the
          body or send `{}` to render all customer-visible quotes.
      responses:
        '200':
          description: 'Preview: Generated quote PDF download links.'
          content:
            application/json:
              schema:
                description: 'Preview: Generated quote PDF download links.'
                properties:
                  items:
                    description: 'Preview: Generated PDF links matching the rendered quotes.'
                    items:
                      $ref: '#/components/schemas/QuotePdf'
                    type: array
                required:
                  - items
                type: object
        '400':
          description: >-
            Preview: The quote selection or language is invalid. The code is
            `invalid_request`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: 'Preview: The Bearer token is missing or invalid (`unauthorized`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: >-
            Preview: The caller is not allowed to perform this action. The code
            is `forbidden`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: >-
            Preview: The quote request (`quote_request_not_found`) or one or
            more requested quotes (`quote_not_found`) are absent or not visible.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: >-
            Preview: No customer-visible quotes are available to render for this
            quote request. The code is `no_quotes_available`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: 'Preview: An unexpected server error occurred (`internal_error`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    QuotePdf:
      modelName: QuotePdf
      type: object
      description: 'Preview: Generated quote PDF download link.'
      properties:
        quote_id:
          description: 'Preview: Public identifier of the quote rendered in the PDF.'
          type: string
        quote_number:
          description: 'Preview: Quote number within the quote request.'
          type: integer
        document_type:
          description: >-
            Preview: Kind of rendered quote document (`nra` for US Negotiated
            Rate Arrangement PDFs, `quote` for standard quote PDFs).
          enum:
            - nra
            - quote
          type: string
        file_name:
          description: 'Preview: Suggested file name for the generated PDF.'
          type: string
        download_url:
          description: 'Preview: Temporary signed URL to download the generated PDF.'
          format: uri
          type: string
      required:
        - quote_id
        - quote_number
        - document_type
        - file_name
        - download_url
    ApiError:
      modelName: ApiError
      type: object
      description: 'Preview: Error returned by a preview route.'
      properties:
        code:
          description: 'Preview: Stable code describing what went wrong.'
          type: string
        field:
          description: >-
            Preview: Request input that needs correction. For a query or path
            parameter, this is the parameter name. For one body input, this is
            its root-relative dot-separated path, with array indexes in
            brackets, such as `cargo.loads[0].count`. For a refusal concerning
            several inputs on one body object, this is that object's path. For a
            refusal concerning the request as a whole, this field is omitted.
          type: string
        message:
          description: 'Preview: One-sentence explanation and next step.'
          type: string
        retry_after_seconds:
          description: >-
            Preview: Number of seconds to wait before retrying, when the
            response is rate limited.
          type: integer
      required:
        - code
        - message

````

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