Welcome New Year

Exclusive Discount on Lifetime Plans

Days
Hours
Minutes
Seconds

Save up to 75% on Lifetime Plans – Limited Time Offer, Don't Miss Out!

Developer documentation

Update a license

Estimated reading: 1 minute 4736 views

DESCRIPTION

Performs an update of the license key. The request will not update key values that aren’t present in the request body, however if they are present their value will be updated, even if it’s a null value. The request will return the updated license key data object.

REQUEST URL

PUT

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

REQUEST HEADERS

Content-Type: application/json

REQUEST BODY:

{
  "order_id": null,
  "product_id": 30,
  "license_key": "UPDATE_LICENSE",
  "expires_at": "2022-08-02",
  "times_activated_max": 8,
  "status": "ACTIVE",
  "user_id": "2"
}

RESPONSE EXAMPLE:

“success”: true,

“data”: {

“id”: 31,

“orderId”: null,

“productId”: 30,

“userId”: 2,

“licenseKey”: “UPDATE_LICENSE”,

“expiresAt”: “2022-08-02 00:00:00”,

“validFor”: null,

“source”: 3,

“status”: 3,

“timesActivated”: null,

“timesActivatedMax”: 8,

“createdAt”: “2022-07-29 11:20:24”,

“createdBy”: 1,

“updatedAt”: “2022-07-29 11:24:52”,

“updatedBy”: 1

}

}
Share this Doc

Update a license

Or copy link

CONTENTS
Scroll to Top
license manager plugin
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.