1. Home
  2. Docs
  3. REST API
  4. Developer documentation
  5. Activate a license

Activate a license

DESCRIPTION

Increments the times_activated value by one (1). The plugin will check if there is a times_activated_max value, if there is and if the times_activated value has not reached the limit set by times_activated_max, then the times_activated will be incremented by 1, and the updated license key data object will be returned.

REQUEST URL

GET

/wp-json/lmfwc/v2/licenses/activate/{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”: 1,

“timesActivatedMax”: 3,

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

“createdBy”: 1,

“updatedAt”: “2022-08-03 07:03:27”,

“updatedBy”: 1

}

}

How can we help?