Convert a lead to a customer

Convert a lead to a customer.

POST https://cotlet.dev/api/v1/method-crm/contacts/{contact_id}/lead-to-customer/convert

write Confirm

Removes the lead status and syncs the customer to QuickBooks at once. Method says it cannot be reversed. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: convert_lead_to_customer
NameTypeDescription
contact_id string required string Lead ID from list_customers.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/method-crm/contacts/contact_8c41d2/lead-to-customer/convert \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("method-crm", "convert_lead_to_customer", {"contact_id":"contact_8c41d2"})
Node.js
const result = await cotlet.call('method-crm', 'convert_lead_to_customer', {"contact_id":"contact_8c41d2"});
CLI
cotlet call method-crm convert_lead_to_customer --data '{"contact_id":"contact_8c41d2"}'

Example response

JSON

{
  "contact_id": "C-2090",
  "type": "customer",
  "synced_to_quickbooks": true
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.