cURL
curl --request DELETE \ --url https://commerce.driv.ly/api/salesReps/{id} \ --header 'Authorization: <api-key>'
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "name": "<string>", "user": "<string>", "phone": "<string>", "phoneNumber": "<string>", "leads": [ 123 ], "acceptNewLeads": true, "assignedLeads": "<string>", "creditBands": [ "Excellent (750-900)" ], "templates": [ 123 ] }, "message": "<string>" }
Deletes an existing Sales Rep
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { salesReps } from '@drivly/commerce' const sdk = new SDK(...) const salesReps = await sdk.salesReps.delete(salesRepsId: string): Promise<void>
id of the Sales Rep
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