Deactivate a license

Estimated reading: 1 minute 264 views

DESCRIPTION

Decrease the times_activated value by one (1). It is not possible to deactivate a license key whose times_activated is null or already zero. Deactivations can be performed by the licensee key and by passing the activation token. When only the license key is passed in the deactivate license API, then all activations will become inactive. To deactivate a single activation, you will use this route /wp-json/lmfwc/v2/licenses/deactivate/{license_key} like this. In the parameters, you will pass the token.

REQUEST URL

GET

/wp-json/lmfwc/v2/licenses/deactivate/{license_key}

RESPONSE EXAMPLE:

{

    “success”: true,

    “data”: {

        “id”: 73,

        “orderId”: 171,

        “productId”: 20,

        “userId”: 1,

        “licenseKey”: “API-AOA-NAI-TAT-MIO-TTM-OOA-GEN”,

        “expiresAt”: “2022-08-18 07:01:42”,

        “validFor”: 15,

        “source”: 3,

        “status”: 1,

        “timesActivated”: 0,

        “timesActivatedMax”: 3,

        “createdAt”: “2022-08-03 06:55:15”,

        “createdBy”: 1,

        “updatedAt”: “2022-08-03 07:09:33”,

        “updatedBy”: 1

    }

}
Share this Doc

Deactivate a license

Or copy link

CONTENTS
Scroll to Top