Leads
Get leads
Retrieve a list of all leads for a given dealer id.
Query Parameters
start_date*string
Specifies the earliest creation_date in UTC format to include in the query.
Format
date-timeend_date*string
Specifies the latest creation_date in UTC format to include in the query.
Format
date-timeconsumer_id?integer
The ID of the consumer.
sort_order?string
Determines the sorting order of the response data by creation_date.
Default
"desc"Value in
- "asc"
- "desc"
page?integer
The results page to retrieve, starts at 1.
Range
1 <= valueresult_count?integer
The number of results per page to return, default 1000.
Range
1 <= value <= 1000Header Parameters
partner-id*string
This parameter uniquely identifies an Impel partner and will be used for API authentication and authorization.
x-api-key*string
An API Key issued by Impel that will be used for API authentication and authorization.
client-key*string
The unique IDP Identifier assigned to the client by Impel during onboarding.
Response Body
application/json
curl -X GET "https://example.com/v2/leads?start_date=2023-05-25T06%3A35%3A34&end_date=2023-05-25T06%3A35%3A34" \ -H "partner-id: string" \ -H "x-api-key: string" \ -H "client-key: string"{ "results": [ { "consumer_id": 123512411, "crm_lead_id": "18dd2831-d72c-4a5b-9f41-98796bc2e79a", "lead_ts": "2023-10-16T20:44:12+00:00", "lead_status": "ACTIVE", "lead_substatus": "Appointment Set", "lead_comment": "Does this car have a sunroof?", "lead_origin": "INTERNET", "lead_source": "cars.com", "lead_source_detail": "Inventory Leads Website", "vehicles_of_interest": [ { "vin": "1HGBH41JXMN109186", "stock_number": "SN12345", "type": "SUV", "class": "Compact", "mileage": 50000, "year": 2023, "make": "Ford", "model": "F-150", "oem_name": "Ford", "trim": "GT", "body_style": "SUV", "transmission": "Manual", "interior_color": "Black", "exterior_color": "White", "price": 25000, "status": "Available", "condition": "Used", "odometer_units": "miles", "vehicle_comments": "Has a scratch", "crm_vehicle_id": "42041f00-88f7-46e8-a0a7-ddb11a6ee1aa", "metadata": {}, "creation_date": "2023-10-16T20:44:12.027184+00:00" } ], "trade_in_vehicles": [ { "vin": "1HGBH41JXMN109186", "stock_number": "SN12345", "type": "SUV", "class": "Compact", "mileage": 50000, "year": 2023, "make": "Ford", "model": "F-150", "oem_name": "Ford", "trim": "GT", "body_style": "SUV", "transmission": "Manual", "interior_color": "Black", "exterior_color": "White", "price": 25000, "status": "Available", "condition": "Used", "odometer_units": "miles", "vehicle_comments": "Has a scratch", "crm_vehicle_id": "42041f00-88f7-46e8-a0a7-ddb11a6ee1aa", "metadata": {}, "creation_date": "2023-10-16T20:44:12.027184+00:00" } ], "owned_vehicles": [ { "vin": "1HGBH41JXMN109186", "stock_number": "SN12345", "type": "SUV", "class": "Compact", "mileage": 50000, "year": 2023, "make": "Ford", "model": "F-150", "oem_name": "Ford", "trim": "GT", "body_style": "SUV", "transmission": "Manual", "interior_color": "Black", "exterior_color": "White", "price": 25000, "status": "Available", "condition": "Used", "odometer_units": "miles", "vehicle_comments": "Has a scratch", "crm_vehicle_id": "42041f00-88f7-46e8-a0a7-ddb11a6ee1aa", "metadata": {}, "creation_date": "2023-10-16T20:44:12.027184+00:00" } ], "lead_id": "123456", "creation_date": "2023-10-16T20:44:12.027184+00:00" } ], "pagination": { "results_on_page": 1, "total_results": 1, "total_pages": 1, "current_page": 1 }}