Deactivate License
Deactivate a license key through the API.
POST /wp-json/slswc/v1/deactivate
| Parameter | Datatype | Example | Description |
|---|---|---|---|
| license_key | String required | Ss23dhsjhdjshjhfddfr | The license key to be activated. This must be a valid. |
| slug | String required | testplugin | The slug of the software. This must be a valid slug unique to each software product |
| domain | String optional | example.com | The domain the license is activated on. |
| environment | String optional | live | The server environment the license is activated on. Expects live or staging, default live |
For the request to be acknowledged and processed, the license key, domain and slug will must be valid for the corresponding order for the license key.
Example Response
{
"status": "deactivated",
"slug": "test-plugin",
"message": "The license has been successfully deactivated for this domain.",
"expires": "2019-08-30 00:00:00",
"license": {
"valid_slug": true,
"exists": true,
"deleted": false,
"current_version": null,
"order": {}
}
}