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
tariffInteger✅Shipping price
depositInteger✅Down payment
vehicle_runBooleanOptionalWhether the vehicle is operational / can be driven

Vehicle type enum​

vehicle.type must be one of the following values:

ValueMeaning
ATVATV / quad bike
BOATBoat
CARPassenger car
MOTORCYCLEMotorcycle
PICKUPPickup truck
SUVSUV / crossover
VANVan

:::note Enum completeness The values above come from the source docs. The complete, up-to-date list must stay in sync with the backend enum — if a new type is added, get it from the backend team. :::

Shipping enums​

overseas_type and ship_via are set on the lead itself (not per vehicle). All values are exact, case-sensitive strings — send them exactly as shown.

overseas_type​

ValueMeaning
DOMESTICDomestic (US) shipping
FOREIGNIncludes an overseas leg (container / vessel)

ship_via​

The allowed ship_via values depend on overseas_type:

overseas_typeAllowed ship_viaMeaning
DOMESTICOPENOpen carrier (standard)
DOMESTICENCLOSEDEnclosed carrier
DOMESTICDRIVE_AWAYDriven to destination (drive-away)
FOREIGNCONTAINER_20FT20 ft container
FOREIGNCONTAINER_40FT40 ft container
FOREIGNSHAREDShared container
FOREIGNROLLON_ROLLOFFRoll-on / roll-off (RoRo) vessel

Sending a ship_via value from the wrong set (e.g. DRIVE_AWAY with overseas_type: "FOREIGN") is invalid. See usage on the Create Lead page.

Location fields — ZIP-based auto-detection​

The backend automatically detects state and city from the ZIP codes you send. You only provide ZIP codes; there is no state-ID lookup to perform.

FieldRequiredNotes
origin_zip✅ RequiredValid US ZIP. Pickup state and city are derived from this.
destination_zipOptional (recommended)Valid US ZIP. Delivery state and city are derived from this.
origin_city / destination_cityOptionalAuto-filled from the ZIP if omitted.
origin_state / destination_stateDeprecatedOmit them. If sent, they are ignored — the ZIP mapping takes priority.

So the minimal location payload is just:

{
"origin_zip": "90210",
"destination_zip": "10001"
}

:::info The states endpoint is internal-only /api/v1/common/states/ is strictly for internal use and requires a JWT token. External lead providers using an API key will receive 401 Unauthorized if they call it. Use ZIP codes instead — you never need to fetch state IDs. :::

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