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

# Get Quotes

> Get list of quotes with optional filtering, or get specific quote details by ID

Retrieve quotes list with optional filtering, or get specific quote details by ID.

<ParamField status="200" type="object">
  <ParamField name="quotes" type="array">
    List of quotes (when no ID provided)

    <ParamField name="quoteId" type="string">
      Unique quote identifier
    </ParamField>

    <ParamField name="status" type="string">
      Quote status (pending, priced, expired)
    </ParamField>

    <ParamField name="origin" type="string">
      Origin airport
    </ParamField>

    <ParamField name="destination" type="string">
      Destination airport
    </ParamField>

    <ParamField name="pieces" type="integer">
      Number of pieces
    </ParamField>

    <ParamField name="weight" type="number">
      Total weight
    </ParamField>

    <ParamField name="createdAt" type="string" format="date-time">
      Creation timestamp
    </ParamField>

    <ParamField name="expiresAt" type="string" format="date-time">
      Expiration timestamp
    </ParamField>
  </ParamField>

  <ParamField name="quoteId" type="string">
    Unique quote identifier (when ID provided)
  </ParamField>

  <ParamField name="status" type="string">
    Quote status (pending, priced, expired)
  </ParamField>

  <ParamField name="origin" type="string">
    Origin airport
  </ParamField>

  <ParamField name="destination" type="string">
    Destination airport
  </ParamField>

  <ParamField name="pieces" type="integer">
    Number of pieces
  </ParamField>

  <ParamField name="weight" type="number">
    Total weight
  </ParamField>

  <ParamField name="createdAt" type="string" format="date-time">
    Creation timestamp
  </ParamField>

  <ParamField name="expiresAt" type="string" format="date-time">
    Expiration timestamp
  </ParamField>

  <ParamField name="priceOptions" type="array">
    Array of price options (when available)

    <ParamField name="flightNumber" type="string">
      Flight number
    </ParamField>

    <ParamField name="departureDate" type="string" format="date">
      Departure date
    </ParamField>

    <ParamField name="pricePerKg" type="number">
      Price per kilogram
    </ParamField>

    <ParamField name="totalAmount" type="number">
      Total amount
    </ParamField>

    <ParamField name="currency" type="string">
      Currency code
    </ParamField>

    <ParamField name="validityHours" type="integer">
      Price validity in hours
    </ParamField>
  </ParamField>
</ParamField>

<ParamField status="404" type="NotFoundErrorResponse">
  <ParamField name="error" type="string">
    Error code indicating no quotes found
  </ParamField>

  <ParamField name="errorDescription" type="string">
    No quotes found matching the specified criteria
  </ParamField>

  <ParamField name="errorUri" type="string">
    Link to error documentation
  </ParamField>
</ParamField>

### Reference Documentation

<Info>
  For more information on quote preparation and response, please refer to:

  * Pages 14-19 of "Functional\_Requirements\_V18 FINAL": [https://belli.sg/4nxxCDR](https://belli.sg/4nxxCDR)
</Info>


## OpenAPI

````yaml GET /api/quotes
openapi: 3.0.3
info:
  title: Mock API
  version: 1.0.0
  description: >-
    Mock OpenAPI spec for QR API Service. All endpoints require API key
    authentication via 'Authorization: Bearer <token>' or 'x-api-key: <token>'
    headers.
servers:
  - url: https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io
    description: Production server
security:
  - ApiKeyAuth: []
  - ApiKeyHeader: []
tags:
  - name: auth-v1
    description: Authentication and user management
  - name: reference-data-v1
    description: Reference data and master data
  - name: flights-v1
    description: Flight schedules and capacity
  - name: quotes-v1
    description: Quotation and pricing
  - name: awb-stock-v1
    description: AWB Stock Management
  - name: bookings-v1
    description: Booking management
  - name: shipments-v1
    description: Shipment documents and tracking
  - name: compliance-v1
    description: Compliance and safety declarations
  - name: operations-v1
    description: Operational events and manifests
  - name: webhooks-v1
    description: Webhook management
  - name: admin-v1
    description: Administrative and audit functions
  - name: qr-exp-cgo-ext-availability-v1
    description: Legacy availability service
  - name: qr-exp-cgo-ext-booking-v1
    description: Legacy booking service
  - name: qr-exp-cgo-ext-flight-schedules-v1
    description: Legacy flight schedules service
  - name: qr-exp-cgo-shipments-v1
    description: Legacy shipments service
  - name: qr-exp-cgo-stock-v1
    description: Legacy stock service
  - name: qr-exp-cgo-tables-v1
    description: Legacy table data service
paths:
  /api/quotes:
    get:
      tags:
        - quotes-v1
      summary: List quotes or get quote details
      description: >-
        Get list of quotes with optional filtering, or get specific quote
        details by ID
      parameters:
        - name: id
          in: query
          schema:
            type: string
          description: Quote ID to get specific quote details
        - name: status
          in: query
          schema:
            type: string
          description: Filter by status
        - name: origin
          in: query
          schema:
            type: string
          description: Filter by origin
        - name: destination
          in: query
          schema:
            type: string
          description: Filter by destination
      responses:
        '200':
          description: Quotes list or single quote details
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/QuotesListResponse'
                  - $ref: '#/components/schemas/QuoteResponse'
        '404':
          description: No quotes found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundErrorResponse'
components:
  schemas:
    QuotesListResponse:
      type: object
      properties:
        quotes:
          type: array
          items:
            $ref: '#/components/schemas/QuoteResponse'
        pagination:
          $ref: '#/components/schemas/Pagination'
    QuoteResponse:
      type: object
      properties:
        id:
          type: string
          example: quote-123
        status:
          type: string
          enum:
            - pending
            - priced
            - accepted
            - rejected
          example: pending
        origin:
          type: string
          example: DOH
        destination:
          type: string
          example: LHR
        pieces:
          type: integer
          example: 10
        weight:
          type: number
          example: 500
        volume:
          type: number
          example: 2.5
        commodity:
          type: string
          example: GEN
        shc:
          type: array
          items:
            type: string
          example:
            - PER
        createdAt:
          type: string
          format: date-time
          example: '2024-01-01T10:00:00Z'
        priceOptions:
          type: array
          items:
            $ref: '#/components/schemas/PricingOption'
    NotFoundErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: not_found
        errorDescription:
          type: string
          example: No quotes found matching the specified criteria
        errorUri:
          type: string
          example: https://docs.example.com/cargo/errors
    Pagination:
      type: object
      properties:
        page:
          type: integer
          example: 1
        limit:
          type: integer
          example: 10
        total:
          type: integer
          example: 100
        totalPages:
          type: integer
          example: 10
    PricingOption:
      type: object
      properties:
        flightNumber:
          type: string
          example: QR123
        departureDate:
          type: string
          format: date
          example: '2024-01-15'
        pricePerKg:
          type: number
          example: 2.5
        totalAmount:
          type: number
          example: 2450
        currency:
          type: string
          example: USD
        validityHours:
          type: integer
          example: 24
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````