Skip to main content
Version: 2021-04-15

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 options2021-04-15
locationId stringrequired

Location Id

affiliateId stringrequired

Affiliate Id

application/json

Bodyrequired

    firstNamestring

    First Name

    lastNamestring

    Last Name

    emailstringrequired

    email

    phonestring

    phone

    campaignIdstringrequired

    Campaign Id

    contactIdstring

    CRM contact identifier

application/json

Successful response

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 optionsleadcustomerdropped
    subscriptionIdstring

    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