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

# List Quotes

> Get all quotes for your business.

# List Quotes

Retrieves a paginated list of quotes for the authenticated business.

## Query Parameters

<ParamField query="page" type="integer" default="1">
  Page number for pagination.
</ParamField>

<ParamField query="limit" type="integer" default="10">
  Number of items per page. Maximum 100.
</ParamField>

<ParamField query="status" type="string">
  Filter by quote status. One of: `draft`, `sent`, `viewed`, `accepted`, `rejected`, `expired`, `superseded`.
</ParamField>

<ParamField query="order_id" type="integer">
  Filter by RFQ ID to get all quotes for a specific RFQ.
</ParamField>

## Response

<ResponseField name="status" type="string">
  `success` on successful retrieval.
</ResponseField>

<ResponseField name="data" type="object">
  <Expandable title="Data fields">
    <ResponseField name="total" type="integer">
      Total number of quotes matching the filter.
    </ResponseField>

    <ResponseField name="page" type="integer">
      Current page number.
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Items per page.
    </ResponseField>

    <ResponseField name="data" type="array">
      Array of quote objects.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Get all quotes theme={null}
  curl https://api.khaime.com/api/v1/partner/quote \
    -H "X-API-Key: pk_sandbox_your_key"
  ```

  ```bash Filter by status theme={null}
  curl "https://api.khaime.com/api/v1/partner/quote?status=sent" \
    -H "X-API-Key: pk_sandbox_your_key"
  ```

  ```bash Get quotes for a specific RFQ theme={null}
  curl "https://api.khaime.com/api/v1/partner/quote?order_id=789" \
    -H "X-API-Key: pk_sandbox_your_key"
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "status": "success",
    "data": {
      "total": 15,
      "page": 1,
      "limit": 10,
      "data": [
        {
          "id": 101,
          "quote_number": "Q-2024-0001",
          "order_id": 789,
          "status": "sent",
          "iteration": 1,
          "total_amount": 510000,
          "currency": "USD",
          "valid_until": "2024-02-28T23:59:59Z",
          "created_at": "2024-01-16T10:00:00Z"
        }
      ]
    }
  }
  ```
</ResponseExample>
