Create customer lead
POST/affiliate-manager/:locationId/affiliates/:affiliateId/lead/create
Create or update a lead for an affiliate customer.
Request
Version stringrequired
API Version
Available options
v3locationId stringrequired
Location Id
affiliateId stringrequired
Affiliate Id
- application/json
- Body
- Example (auto)
Bodyrequired
firstNamestring
First Name
lastNamestring
Last Name
emailstringrequiredemail
phonestring
phone
campaignIdstringrequired
Campaign Id
contactIdstring
CRM contact identifier
{
"firstName": "John",
"lastName": "Deo",
"phone": "+91 88888 88888",
"campaignId": "ve9EPM428h8vShlRW1KT",
"contactId": "ve9EPM428h8vShlRW1KT"
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
_idstringrequired
Customer identifier
locationIdstringrequired
Location identifier
affiliateIdstringrequired
Affiliate identifier
campaignIdstringrequired
Campaign identifier
contactIdstringrequired
Contact identifier
firstNamestring
Customer first name
lastNamestring
Customer last name
emailstring
Customer email address
phonestring
Customer phone number
typestring
Customer type
Available options
leadcustomerdroppedsubscriptionIdstring
Subscription identifier
dueAtstring<date-time>
Customer due date
deletedbooleanrequired
Whether the customer is deleted
isDisabledbooleanrequired
Whether the customer is disabled
createdAtstring<date-time>
Customer creation timestamp
updatedAtstring<date-time>
Customer update timestamp
{
"_id": "ve9EPM428h8vShlRW1KT",
"locationId": "ve9EPM428h8vShlRW1KT",
"affiliateId": "ve9EPM428h8vShlRW1KT",
"campaignId": "ve9EPM428h8vShlRW1KT",
"contactId": "ve9EPM428h8vShlRW1KT",
"firstName": "John",
"lastName": "Doe",
"phone": "+15551234567",
"type": "customer",
"subscriptionId": "sub_123",
"dueAt": "2026-01-01T00:00:00.000Z",
"deleted": false,
"isDisabled": true,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}