# Set the status of a quote

> PATCH /api/public/v1/quotes/{id}/status, scope loads.rates. Techvia TMS public API v1 reference.

Source: https://techvia.software/docs/tms/reference/quotes/set-the-status-of-a-quote/

`PATCH /api/public/v1/quotes/{id}/status`

**Scope:** `loads.rates`. **MCP tool:** `set_quote_status`. Rules and edge cases: [Quotes guide](/docs/tms/guides/quotes/).

## Parameters

| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes |  |

## Request body

Content type `application/json`. Limits and rules for each field are in the [Quotes guide](/docs/tms/guides/quotes/).

| Field | Type | Required | Notes |
|---|---|---|---|
| `status` | string | yes | One of `Draft`, `Sent`, `Won`, `Lost` |
| `rowVersion` | integer | yes |  |
| `lostReason` | string | no |  |
| `lostNotes` | string | no |  |

## Responses

| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicQuote` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |

### `200` body

| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) |  |
| `quoteNumber` | string |  |
| `status` | string |  |
| `customerId` | string (uuid) |  |
| `customerName` | string |  |
| `dispatcherName` | string |  |
| `originCity` | string |  |
| `originState` | string |  |
| `destCity` | string |  |
| `destState` | string |  |
| `originFacilityId` | string (uuid) |  |
| `originFacilityName` | string |  |
| `destFacilityId` | string (uuid) |  |
| `destFacilityName` | string |  |
| `equipment` | string |  |
| `commodity` | string |  |
| `weightLbs` | number |  |
| `pickupDate` | string (date) |  |
| `deliveryDate` | string (date) |  |
| `miles` | number |  |
| `quotedRate` | number |  |
| `suggestedRate` | number |  |
| `validUntil` | string (date) |  |
| `sentAt` | string (date-time) |  |
| `wonAt` | string (date-time) |  |
| `lostAt` | string (date-time) |  |
| `lostReason` | string |  |
| `lostNotes` | string |  |
| `convertedLoadId` | string (uuid) |  |
| `notes` | string |  |
| `rowVersion` | integer |  |
| `createdAt` | string (date-time) |  |
| `updatedAt` | string (date-time) |  |

Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).

**Example request**

**curl**

```bash
curl -X PATCH "https://tms-api.techvia.software/api/public/v1/quotes/$ID/status" \
  -H "Authorization: Bearer $TMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "Won",
    "rowVersion": 412
  }'
```

**JavaScript**

```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/quotes/${id}/status`, {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.TMS_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "status": "Won",
    "rowVersion": 412
  }),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```

**Python**

```python

id = "..."  # from a list or read call
res = requests.request(
    "PATCH",
    f"https://tms-api.techvia.software/api/public/v1/quotes/{id}/status",
    headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
    json={
      "status": "Won",
      "rowVersion": 412
    },
)
res.raise_for_status()
print(res.json())
```

**Example response** `200`

```json
{
  "id": "01a20943-7a10-7c11-8a2e-000000000060",
  "quoteNumber": "QT-000045",
  "status": "Won",
  "customerId": "01a20943-75ec-78ad-9764-7a1d1cc95684",
  "customerName": "Acme Foods",
  "dispatcherName": "Dana Ruiz",
  "originCity": "Dallas",
  "originState": "TX",
  "destCity": "Phoenix",
  "destState": "AZ",
  "originFacilityId": "01a20943-7600-7c11-8a2e-111111111111",
  "originFacilityName": "Acme DC Dallas",
  "destFacilityId": "01a20943-7a10-7c11-8a2e-000000000050",
  "destFacilityName": "FreshMart Phoenix",
  "equipment": "Reefer",
  "commodity": "Produce",
  "weightLbs": 38000,
  "pickupDate": "2026-12-08",
  "deliveryDate": null,
  "miles": null,
  "quotedRate": 2400,
  "suggestedRate": null,
  "validUntil": "2026-12-15",
  "sentAt": "2026-12-01T14:05:00+00:00",
  "wonAt": "2026-12-01T18:20:44.509112+00:00",
  "lostAt": null,
  "lostReason": null,
  "lostNotes": null,
  "convertedLoadId": null,
  "notes": null,
  "rowVersion": 413,
  "createdAt": "2026-12-01T14:02:31.118204+00:00",
  "updatedAt": "2026-12-01T18:20:44.509112+00:00"
}
```

<p class="ep-caption">Illustrative values.</p>
