Activate a license key.

Activate a license key via the API.

To activate a license via the API You should post to the api endpoint:

POST wp-json/slswc/v1/activate

license_keyString requiredSs23dhsjhdjshjhfddfrThe license key to be activated. This must be a valid.
slugString requiredtestpluginThe slug of the software. This must be a valid slug unique to each software product
domainString optionalexample.comThe domain the license is activated on.
environmentString optionalliveThe server environment the license is activated on. Expects live or staging, default live

For the request to be acknowledged and processed, the lisence_key provided must be valid, meaning it must exist and must not be expired or reached max activations.

Example Response

    "status": "active",
    "slug": "test-plugin",
    "expires": "2019-08-30 00:00:00",
    "license": {
        "valid_slug": true,
        "exists": true,
        "deleted": false,
        "current_version": null,
        "order": {}
Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support
Scroll to Top