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

# Send Quote

> Send a quote to the customer via email.

# Send Quote

Sends the quote to the customer via email. Changes the quote status from `draft` to `sent`. The customer receives an email with a link to view and respond to the quote.

<Note>
  Only quotes in `draft` status can be sent. If you need to modify a sent quote, use [Revise Quote](/api-reference/b2b/revise-quote) to create a new version.
</Note>

## Path Parameters

<ParamField path="id" type="integer" required>
  The quote ID.
</ParamField>

## Response

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

<ResponseField name="data" type="object">
  <Expandable title="Quote fields">
    <ResponseField name="id" type="integer">
      Quote ID.
    </ResponseField>

    <ResponseField name="status" type="string">
      Updated status: `sent`.
    </ResponseField>

    <ResponseField name="sent_at" type="string">
      ISO 8601 timestamp when the quote was sent.
    </ResponseField>
  </Expandable>
</ResponseField>

## What Happens

1. Quote status changes from `draft` to `sent`
2. RFQ status changes to `quoted`
3. Customer receives an email with:
   * Quote summary and pricing
   * Link to view full quote details
   * Options to accept or request changes

## Error Codes

| Status | Error                        | Fix                            |
| ------ | ---------------------------- | ------------------------------ |
| `400`  | Quote is not in draft status | Only draft quotes can be sent  |
| `401`  | Invalid API key              | Verify your `X-API-Key` header |
| `404`  | Quote not found              | Check that the quote ID exists |

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

<ResponseExample>
  ```json Success theme={null}
  {
    "status": "success",
    "message": "Quote sent successfully",
    "data": {
      "id": 101,
      "quote_number": "Q-2024-0001",
      "status": "sent",
      "sent_at": "2024-01-16T14:30:00Z"
    }
  }
  ```
</ResponseExample>
