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
| Name | Type | Description |
|---|---|---|
| contact_id string required | string | Lead ID from list_customers. |
Request
curl -X POST https://cotlet.dev/api/v1/method-crm/contacts/contact_8c41d2/lead-to-customer/convert \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("method-crm", "convert_lead_to_customer", {"contact_id":"contact_8c41d2"}) const result = await cotlet.call('method-crm', 'convert_lead_to_customer', {"contact_id":"contact_8c41d2"}); cotlet call method-crm convert_lead_to_customer --data '{"contact_id":"contact_8c41d2"}' Example response
{
"contact_id": "C-2090",
"type": "customer",
"synced_to_quickbooks": true
}