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