Data Models
The objects, enums and location handling used in the Public Lead API.
Vehicle object
Elements of the vehicles array:
| Field | Type | Required | Description |
|---|---|---|---|
year | Integer | ✅ | Model year |
make | String | ✅ | Make (Toyota, Tesla…) |
model | String | ✅ | Model (Camry, Model S…) |
type | String (enum) | ✅ | Vehicle type — table below |
vehicle_run | Boolean | Optional | Whether the vehicle is operable. Defaults to true |
tariff and deposit are not part of this API. Navigo never stores a
provider's price — an agent prices the lead. Sending those keys is harmless: they
are ignored, and the vehicle is stored unpriced.
vehicle_run accepts booleans and words, in any case: "Yes" / "No",
"Running" / "Not Running", "Operable" / "Inop". Omitted, null or empty
means operable (true).
Vehicle type enum
vehicle.type must name one of these eleven types:
| Value | Meaning |
|---|---|
ATV | ATV / quad bike |
BOAT | Boat |
CAR | Passenger car |
HEAVY-EQUIPMENT | Heavy equipment |
LARGE-YACHT | Large yacht |
MOTORCYCLE | Motorcycle |
PICKUP | Pickup truck |
RV | Recreational vehicle |
SUV | SUV / crossover |
VAN | Van |
OTHER | Anything else |
The comparison is not case-sensitive and the label is accepted:
"Car", "car", "Large Yacht" and "heavy_equipment" all resolve to their
value. A word that names no type (for example "Sedan") returns 400.
Shipping enums
overseas_type and ship_via are set on the lead itself (not per vehicle).
overseas_type
| Value | Meaning |
|---|---|
DOMESTIC | Domestic (US) shipping — the default when omitted |
FOREIGN | Includes an overseas leg (container / vessel) |
Send FOREIGN for a shipment that crosses the sea. Omitted, the lead is treated
as domestic ground freight. Spelling is not case-sensitive ("Domestic",
"foreign" are accepted).
ship_via
ship_via is required and accepts exactly three values — the same set
whatever overseas_type is:
| Value | Meaning |
|---|---|
OPEN | Open carrier (standard) |
ENCLOSED | Enclosed carrier |
DRIVE_AWAY | Driven to destination (drive-away) |
Values are not case-sensitive, and the label works as well as the value:
"Open", "enclosed", "Drive Away", "Driveaway". A word that names no choice
(for example "Truck") returns 400.
Auto-quoting runs for OPEN and ENCLOSED only. A DRIVE_AWAY lead is not priced
by Central Dispatch and stays with an agent (ship_via_not_priceable).
Location fields
A US ZIP that Navigo recognises supplies the city and state. Anything else needs the city — and, for the origin, the state — in the payload.
| Field | Required | Notes |
|---|---|---|
origin_city | Required* | May be omitted when a recognised origin_zip supplies it |
origin_state | Optional* | Navigo id, two-letter code ("CA") or full name ("California") |
origin_zip | Optional* | US ZIP; ZIP+4 and a leading-zero-less ZIP are accepted |
destination_city | Required* | May be omitted when a recognised destination_zip supplies it |
destination_state | Optional* | Same formats as origin_state |
destination_zip | Optional* | Same handling as origin_zip |
The rules behind the asterisks:
- Send city, state and ZIP on each side when you have them. That is always enough.
- A recognised US ZIP alone is enough — the city and state come from it, and the ZIP wins over text you also send.
- Origin needs at least two of
origin_city,origin_state,origin_zipfor the state to be resolved.origin_city+origin_statealso fills in the ZIP when that city/state pair maps to exactly one ZIP. - ZIP+4 (
"02134-1234") and a ZIP that lost its leading zero (2134, e.g. sent as a number) are read as02134. - A non-US postal code (for example Canadian) is not recognised — send the city and state instead.
- Both cities are always needed, from the payload or from a recognised ZIP.
Refusals carry these messages:
Could not determine the origin state — provide at least two of origin_state, origin_city, or origin_zip.
This field is required.
on origin_city or destination_city when neither a city nor a recognised ZIP
was sent. The response's message names the field in a sentence
(Origin city is required.); extra.fields carries the per-field text.
You do not need the internal /api/v1/common/states/ endpoint (it is not served
on the leads host). A state can be sent as an id, a two-letter code or a full
name — or left to a recognised ZIP.
state — lead status enum
The state field in the lead response:
| Value | Meaning |
|---|---|
LEAD | Newly created, not yet processed |
QUOTE | Turned into a price quote |
ORDER | Turned into an order |