cURL
curl --request DELETE \ --url https://commerce.driv.ly/api/leadEvents/{id} \ --header 'Authorization: <api-key>'
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "lead": 123, "type": "Cancel", "status": "Provide Customer With Three Options", "nextSteps": "<string>", "createdBy": 123, "currentStatusFor": 123 }, "message": "<string>" }
Deletes an existing Lead Event
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { leadEvents } from '@drivly/commerce' const sdk = new SDK(...) const leadEvents = await sdk.leadEvents.delete(leadEventsId: string): Promise<void>
id of the Lead Event
number of levels to automatically populate relationships and uploads
retrieves document(s) in a specific locale
specifies a fallback locale if no locale value exists
ok
Show child attributes
Cancel
Customer Answered
Customer Call
Customer DNC Request
Customer Email
Customer Needs More Options
Customer Search Provided
Customer Selects Vehicle
Customer Text
Lead Created
Loan Service Redirect
Outbound Email
Outbound Phone Call
Outbound Phone Call Answered
Outbound Phone Call Not Answered
Outbound Text
Outbound Voicemail Left
Scheduled Call
Search Results Found
Status Check
Time Passed
Provide Customer With Three Options
Customer Provided Options
Answer Text Message
Had Conversation
Intake Form Submitted
Send Text Message
Send Text Template 1
Waiting For Meeting
Call Customer
First Communication Attempt
First Communication Attempt (phone and text)
Searching
Second Communication Attempt
Send Text Nudge 1
Waiting For Email Response
Looking For Financing
Customer Not Interested
No Contact
Customer Not Responding
Customer Interested