Create lead
Create a new lead.
You can assigned the lead with an existing partner using the partnerId property. You will be the source of the lead and the partner will have to
accept or refuse the lead.
You can set the source of the lead using the sourcePartnerId property. By doing that, you create the lead on behalf of the partner.
He won’t have to accept or refuse the lead, the lead will be automatically accepted.
Use the note property to add a new note on create lead.
If the lead comes from your website via a referral link shared by a partner and you want to associate it with the correct partner, use the HTTP header:
Kiflo-Tracking-Code: AABBCCDDEEFF+=
The** tracking code** can be retrieved in javascript from your website using the JS SDK.Please referer to theJS SDK documentation.
The status property is optional and can be used only in conjunction with the header parameter Kiflo-Tracking-Code.
It can be one of the following value:
- Pending: the lead is assigned to the source partner and must be validated by you
- Accepted: the lead is assigned to the source partner and is automatically accepted
- Unassigned: the lead is not assigned to any partner, but the source partner is set correctly. it can be shared to another partner manually
Body
The partner to whom the lead is assigned.
The partner to who declared the lead.
The user partner assigned to the lead.
The email of the user partner assigned to the lead. PartnerId must be specified.
Optional note to add to the lead after its creation.
Unknown, Unassigned, Pending, Accepted, Refused, Reassigned, Converted, Abandoned If true, the Lead OwnerUserId will be the same as the Partner OwnerUserId
Response
Lead created
Unknown, Unassigned, Pending, Accepted, Refused, Reassigned, Converted, Abandoned Unknown, Website, Partner, Api, Zapier, Tenant, System, HubSpot, Stripe, PartnerDirectory 