A lead is an entity in the lead pipeline. Create with POST /api/v1/leads. Convert with POST /api/v1/leads/{entityKey}/convert-to-client. Conversion sets status from Lead to Active. The entityKey does not change. 400 if the entity is already a client.
Resolve type, source, and status names from settings before you create:
See Leads and deals.
Attributes
Same identifier used for Active clients after conversion.
Type name such as Individual or Company.
Given name for individuals, or the legal / trading name for companies.
Family name for individuals and sole traders. Leave unset for companies.
Source name from practice settings, not an id.
Status name from practice settings, not an id.