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

# Reject Quote

> Reject a quote.

# Reject Quote

Marks the quote as rejected. The RFQ returns to `pending` status, allowing the merchant to create a revised quote if needed.

## Path Parameters

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

## Response

<ResponseField name="status" type="string">
  `success` on successful rejection.
</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: `rejected`.
    </ResponseField>

    <ResponseField name="rejected_at" type="string">
      ISO 8601 timestamp.
    </ResponseField>
  </Expandable>
</ResponseField>

## What Happens

1. Quote status changes to `rejected`
2. RFQ status returns to `pending` (ready for a new quote)
3. **Merchant receives** an email notification about the rejection

<Note>
  After rejection, use [Revise Quote](/api-reference/b2b/revise-quote) on the rejected quote to create a new version with adjusted pricing, or [Create Quote](/api-reference/b2b/create-quote) to start fresh.
</Note>

## Error Codes

| Status | Error                    | Fix                                       |
| ------ | ------------------------ | ----------------------------------------- |
| `400`  | Quote cannot be rejected | Quote may already be rejected or accepted |
| `401`  | Invalid API key          | Verify your `X-API-Key` header            |
| `404`  | Quote not found          | Check that the quote ID exists            |

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

<ResponseExample>
  ```json Success theme={null}
  {
    "status": "success",
    "message": "Quote rejected successfully",
    "data": {
      "id": 101,
      "quote_number": "Q-2024-0001",
      "status": "rejected",
      "rejected_at": "2024-01-18T16:45:00Z"
    }
  }
  ```
</ResponseExample>
