Create Lead
POST /api/v1/leads
This endpoint allows to you to create a new lead into Dealer Studio.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
object
Customer Full Name
Customer Email
Customer Phone Number
Customer Message
Dealership ID (Identifier from Dealer Studio)
Dealership Slug (Identifier from Dealer Studio)
Lead category, must be from the list of categories below
ID of the page where the lead was submitted from
If supplied, will match the lead against a vehicle with matching stocknum (if exists)
Lead supplier name eg. “Carsales”
Mark the lead cluster as golden (high priority lead)
If supplied, will match the lead against the relevant car. Car ID as supplied by Dealer Studio
ID of the model (only relevent for new vehicle enquiries)
Only for Team Member Enquiry leads
Email of User if existed in DS used to associate the Lead
Mark the contact as sms verified
ID of the model variant (only relevent for new vehicle enquiries)
ID of the colour (only relevent for new vehicle enquiries)
If sent as true, then it skips emails AND phone validation
Time in seconds the customer spent on site before submitting
Time in seconds from form load to form submit
Object of attached files with their types for the lead
object
The attached file for the lead
object
object
Additional custom fields for the lead. For Document Request leads, include document_type (car_analysis, ppsr, equifax)
object
Example
{ "document_type": "ppsr", "custom_field": "value"}Charge breakdown hash containing charge details. Must include either total, charges, or both.
object
Total charge amount
object
The total charge amount
Array of individual charge items
object
The name of the charge
The charge amount
Example
{ "total": { "amount": 50 }, "charges": [ { "name": "Luxury Car Tax", "amount": 1234 }, { "name": "Delivery Fee", "amount": 500 } ]}Example
{ "lead": { "name": "Test Lead", "last_name": "Test", "email": "test@test.com", "phone": "041000000", "message": "some notes", "dealership_slug": "test-dealer", "category": "New Vehicle Enquiry", "source": "Website", "website_slug": "example-website", "page_id": 123, "location_id": 12345, "user_email": "test@example.com", "lead_state": "new", "send_customer_email": false, "customer_address": "123 Fake Street", "stocknum": "3210", "provider": "Provider A", "provider_id": "1234", "dob": "01/01/1980", "tags": [ "tag1" ], "address_attributes": { "street": "123 Fake Street", "city": "Melbourne", "state": "VIC", "state_long": "Victoria", "postcode": 3000, "country": "Australia" } }}Responses
Section titled “ Responses ”Create new lead
Unauthorised with correct bearer and dealership but invalid permissions