Skip to main content

Data Models

The objects, enums and location handling used in the Public Lead API.

Vehicle object​

Elements of the vehicles array:

FieldTypeRequiredDescription
yearInteger✅Model year
makeString✅Make (Toyota, Tesla…)
modelString✅Model (Camry, Model S…)
typeString (enum)✅Vehicle type — table below
vehicle_runBooleanOptionalWhether 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:

ValueMeaning
ATVATV / quad bike
BOATBoat
CARPassenger car
HEAVY-EQUIPMENTHeavy equipment
LARGE-YACHTLarge yacht
MOTORCYCLEMotorcycle
PICKUPPickup truck
RVRecreational vehicle
SUVSUV / crossover
VANVan
OTHERAnything 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​

ValueMeaning
DOMESTICDomestic (US) shipping — the default when omitted
FOREIGNIncludes 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:

ValueMeaning
OPENOpen carrier (standard)
ENCLOSEDEnclosed carrier
DRIVE_AWAYDriven 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.

Automatic pricing

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.

FieldRequiredNotes
origin_cityRequired*May be omitted when a recognised origin_zip supplies it
origin_stateOptional*Navigo id, two-letter code ("CA") or full name ("California")
origin_zipOptional*US ZIP; ZIP+4 and a leading-zero-less ZIP are accepted
destination_cityRequired*May be omitted when a recognised destination_zip supplies it
destination_stateOptional*Same formats as origin_state
destination_zipOptional*Same handling as origin_zip

The rules behind the asterisks:

  1. Send city, state and ZIP on each side when you have them. That is always enough.
  2. A recognised US ZIP alone is enough — the city and state come from it, and the ZIP wins over text you also send.
  3. Origin needs at least two of origin_city, origin_state, origin_zip for the state to be resolved. origin_city + origin_state also fills in the ZIP when that city/state pair maps to exactly one ZIP.
  4. ZIP+4 ("02134-1234") and a ZIP that lost its leading zero (2134, e.g. sent as a number) are read as 02134.
  5. A non-US postal code (for example Canadian) is not recognised — send the city and state instead.
  6. 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.

No state-ID lookup

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:

ValueMeaning
LEADNewly created, not yet processed
QUOTETurned into a price quote
ORDERTurned into an order