DESCRIPTION
Decreases the times_activated value by one (1). The plugin will check if the current value of times_activated is one (1) or greater. If so, the plugin will decrement the times_activated value by one, and return the updated license. It is not possible to deactivate a license key whose times_activated is null or already zero (0). The response will contain the updated license key data object.
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
}
}