Skip to main content
Version: v3

Update customer state

PATCH 

/affiliate-manager/:locationId/affiliates/:affiliateId/customers/:customerId/state

Update the disabled state of a customer for an affiliate.

Request

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Location Id

affiliateId stringrequired

Affiliate Id

customerId stringrequired

Customer Id

application/json

Bodyrequired

    isDisabledbooleanrequired

    disabled

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