# Convert a quote to a load

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

Source: https://techvia.software/docs/tms/reference/quotes/convert-a-quote-to-a-load/

`POST /api/public/v1/quotes/{id}/convert`

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

## Parameters

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

## Responses

| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicQuoteConvertResult` |
| `201` | Created | `PublicQuoteConvertResult` |
| `404` | Not Found | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |

### `200` body

| Field | Type | Notes |
|---|---|---|
| `outcome` | string |  |
| `load` | PublicLoad |  |
| `load.id` | string (uuid) |  |
| `load.loadNumber` | string |  |
| `load.workOrderNumber` | string |  |
| `load.status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `load.type` | enum LoadType | One of `Spot`, `Dedicated`, `Contract` |
| `load.equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `load.customer` | PublicLoadCustomer |  |
| `load.customer.id` | string (uuid) |  |
| `load.customer.name` | string |  |
| `load.dispatcherName` | string |  |
| `load.assignment` | PublicLoadAssignment |  |
| `load.assignment.mode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `load.assignment.driverNames` | string[] |  |
| `load.assignment.truck` | string |  |
| `load.assignment.trailer` | string |  |
| `load.assignment.carrierName` | string |  |
| `load.rowVersion` | integer |  |
| `load.stops` | PublicLoadStop[] |  |
| `load.stops[].id` | string (uuid) |  |
| `load.stops[].order` | integer |  |
| `load.stops[].type` | enum StopType | One of `Shipper`, `Consignee` |
| `load.stops[].facilityName` | string |  |
| `load.stops[].scheduledDate` | string (date-time) |  |
| `load.stops[].scheduledLocal` | string |  |
| `load.stops[].timeZoneId` | string |  |
| `load.stops[].appointmentConfirmed` | boolean |  |
| `load.stops[].commodity` | string |  |
| `load.stops[].quantity` | integer |  |
| `load.stops[].weightLbs` | number |  |
| `load.stops[].referenceNumber` | string |  |
| `load.stops[].notes` | string |  |
| `load.stops[].arrivedAt` | string (date-time) |  |
| `load.stops[].departedAt` | string (date-time) |  |
| `load.createdAt` | string (date-time) |  |
| `load.updatedAt` | string (date-time) |  |
| `load.isSample` | boolean |  |
| `load.notes` | PublicLoadNote[] |  |
| `load.notes[].id` | string (uuid) |  |
| `load.notes[].createdAt` | string (date-time) |  |
| `load.notes[].by` | string |  |
| `load.notes[].text` | string |  |
| `load.rate` | number |  |
| `load.finalRate` | number |  |
| `load.otherCharges` | PublicLoadCharge[] |  |
| `load.otherCharges[].id` | string (uuid) |  |
| `load.otherCharges[].type` | string |  |
| `load.otherCharges[].description` | string |  |
| `load.otherCharges[].amount` | number |  |
| `load.autoCharges` | PublicLoadCharge[] |  |
| `load.autoCharges[].id` | string (uuid) |  |
| `load.autoCharges[].type` | string |  |
| `load.autoCharges[].description` | string |  |
| `load.autoCharges[].amount` | number |  |

### `201` body

| Field | Type | Notes |
|---|---|---|
| `outcome` | string |  |
| `load` | PublicLoad |  |
| `load.id` | string (uuid) |  |
| `load.loadNumber` | string |  |
| `load.workOrderNumber` | string |  |
| `load.status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `load.type` | enum LoadType | One of `Spot`, `Dedicated`, `Contract` |
| `load.equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `load.customer` | PublicLoadCustomer |  |
| `load.customer.id` | string (uuid) |  |
| `load.customer.name` | string |  |
| `load.dispatcherName` | string |  |
| `load.assignment` | PublicLoadAssignment |  |
| `load.assignment.mode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `load.assignment.driverNames` | string[] |  |
| `load.assignment.truck` | string |  |
| `load.assignment.trailer` | string |  |
| `load.assignment.carrierName` | string |  |
| `load.rowVersion` | integer |  |
| `load.stops` | PublicLoadStop[] |  |
| `load.stops[].id` | string (uuid) |  |
| `load.stops[].order` | integer |  |
| `load.stops[].type` | enum StopType | One of `Shipper`, `Consignee` |
| `load.stops[].facilityName` | string |  |
| `load.stops[].scheduledDate` | string (date-time) |  |
| `load.stops[].scheduledLocal` | string |  |
| `load.stops[].timeZoneId` | string |  |
| `load.stops[].appointmentConfirmed` | boolean |  |
| `load.stops[].commodity` | string |  |
| `load.stops[].quantity` | integer |  |
| `load.stops[].weightLbs` | number |  |
| `load.stops[].referenceNumber` | string |  |
| `load.stops[].notes` | string |  |
| `load.stops[].arrivedAt` | string (date-time) |  |
| `load.stops[].departedAt` | string (date-time) |  |
| `load.createdAt` | string (date-time) |  |
| `load.updatedAt` | string (date-time) |  |
| `load.isSample` | boolean |  |
| `load.notes` | PublicLoadNote[] |  |
| `load.notes[].id` | string (uuid) |  |
| `load.notes[].createdAt` | string (date-time) |  |
| `load.notes[].by` | string |  |
| `load.notes[].text` | string |  |
| `load.rate` | number |  |
| `load.finalRate` | number |  |
| `load.otherCharges` | PublicLoadCharge[] |  |
| `load.otherCharges[].id` | string (uuid) |  |
| `load.otherCharges[].type` | string |  |
| `load.otherCharges[].description` | string |  |
| `load.otherCharges[].amount` | number |  |
| `load.autoCharges` | PublicLoadCharge[] |  |
| `load.autoCharges[].id` | string (uuid) |  |
| `load.autoCharges[].type` | string |  |
| `load.autoCharges[].description` | string |  |
| `load.autoCharges[].amount` | number |  |

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

**Example request**

**curl**

```bash
curl -X POST "https://tms-api.techvia.software/api/public/v1/quotes/$ID/convert" \
  -H "Authorization: Bearer $TMS_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

**JavaScript**

```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/quotes/${id}/convert`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TMS_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
  },
});
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(
    "POST",
    f"https://tms-api.techvia.software/api/public/v1/quotes/{id}/convert",
    headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
)
res.raise_for_status()
print(res.json())
```

**Example response** `201`

```json
{
  "outcome": "Created",
  "load": {
    "id": "01a20943-7a10-7c11-8a2e-000000000080",
    "loadNumber": "LD-2026-000124",
    "workOrderNumber": null,
    "status": "Open",
    "type": "Spot",
    "equipment": "Reefer",
    "customer": {
      "id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
      "name": "Acme Foods"
    },
    "dispatcherName": "Dana Ruiz",
    "assignment": {
      "mode": "None",
      "driverNames": [],
      "truck": null,
      "trailer": null,
      "carrierName": null
    },
    "rowVersion": 901,
    "stops": [
      {
        "id": "01a20943-7a10-7c11-8a2e-000000000081",
        "order": 1,
        "type": "Shipper",
        "facilityName": "Acme DC Dallas",
        "scheduledDate": "2026-12-08T06:00:00+00:00",
        "scheduledLocal": "2026-12-08T00:00:00-06:00",
        "timeZoneId": "America/Chicago",
        "appointmentConfirmed": false,
        "commodity": null,
        "quantity": null,
        "weightLbs": null,
        "referenceNumber": null,
        "notes": null,
        "arrivedAt": null,
        "departedAt": null
      },
      {
        "id": "01a20943-7a10-7c11-8a2e-000000000082",
        "order": 2,
        "type": "Consignee",
        "facilityName": "FreshMart Phoenix",
        "scheduledDate": "2026-12-08T07:00:00+00:00",
        "scheduledLocal": "2026-12-08T00:00:00-07:00",
        "timeZoneId": "America/Phoenix",
        "appointmentConfirmed": false,
        "commodity": null,
        "quantity": null,
        "weightLbs": null,
        "referenceNumber": null,
        "notes": null,
        "arrivedAt": null,
        "departedAt": null
      }
    ],
    "createdAt": "2026-12-01T18:22:03.774512+00:00",
    "updatedAt": "2026-12-01T18:22:03.774512+00:00",
    "isSample": false,
    "notes": []
  }
}
```

<p class="ep-caption">Illustrative values. The first call is <code>201</code> <code>Created</code>; every later call <code>200</code> <code>AlreadyConverted</code> with the same load. The load is <code>Open</code>, <code>Spot</code>, and never shows <code>rate</code>, <code>finalRate</code> or <code>otherCharges</code>.</p>
