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 options
2021-07-28locationId stringrequired
Location Id
affiliateId stringrequired
Affiliate Id
customerId stringrequired
Customer Id
- application/json
- Body
- Example (auto)
Bodyrequired
isDisabledbooleanrequired
disabled
{
"isDisabled": true
}
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"
}