Leads - Admin

Get won lead for a vehicle

Find the won lead associated with a vehicle.

Pass contract_id when the caller is looking at one specific contract: the recorded Contratos.lead_id then answers instead of the by-vehicle guess, which cannot tell two sales of the same car apart.

get/api/leads/by-viatura/{id_viatura}

Path parameters

id_viaturainteger required

Query parameters

contract_idinteger nullable

Prefer the lead explicitly linked to this contract

Prefer the lead explicitly linked to this contract

Headers

x-api-tokenstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/leads/by-viatura/{id_viatura}:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 4 revisions of this API.