Deactivate a License (POST /deactivate)

Deactivate a license from a domain.

Authentication: Valid license_key + domain must be registered

Parameters:

NameTypeRequiredDescription
license_keystringYesThe license key
domainstringYesThe domain to deactivate
environmentstringNolive or staging

Example Request:

curl -X POST https://your-site.com/wp-json/slswc/v1/deactivate \
  -d license_key=ABCD-1234-EFGH-5678 \
  -d domain=https://customer-site.com \
  -d environment=live

Success Response (200):

{
    "status": "deactivated",
    "product_name": "My Plugin",
    "domain": {
        "domain": "https://customer-site.com",
        "status": "deactivated"
    },
    "message": "The license has been successfully deactivated for this domain.",
    "expires": "2027-01-15 00:00:00",
    "license": {
        "id": 42,
        "order_id": 100,
        "customer_id": 5,
        "product_id": 123,
        "license_key": "ABCD-1234-EFGH-5678",
        "software_title": "My Plugin",
        "software_type": "plugin",
        "domains": {},
        "renewal_period": "yearly",
        "license_status": "inactive",
        "activations": 0,
        "max_activations": 5,
        "staging_activations": 0,
        "max_staging_activations": 5,
        "allow_staging": true,
        "expiration_date": "2027-01-15 00:00:00",
        "purchase_date": "2026-01-15 00:00:00",
        "debug": false
    }
}

Back to License Endpoints.

Was this article helpful?