Remove a Domain from a License (POST /remove_domain)

Remove a domain from a license. Requires the requesting user to be an administrator or the license owner.

Authentication: Valid license_key

Parameters:

NameTypeRequiredDescription
license_keystringYesThe license key
domainstringYesDomain to remove
current_userintYesUser ID performing the action
environmentstringNolive or staging

Example Request:

curl -X POST https://your-site.com/wp-json/slswc/v1/remove_domain \
  -d license_key=ABCD-1234-EFGH-5678 \
  -d domain=https://old-site.com \
  -d current_user=5

Success Response (200):

{
    "status": "deactivated",
    "product_name": "My Plugin",
    "message": "The license has been successfully deactivated for this domain."
}

The roles allowed to remove domains are filterable via slswc_remove_domain_roles (default: ['administrator']).


Back to License Endpoints.

Was this article helpful?