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

Retrieve a license

DESCRIPTION

Retrieves a single license key by the license key string itself. The response contains the queried license key data object.

REQUEST URL

GET

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

RESPONSE EXAMPLE:

{

“success”: true,

“data”: {

“id”: 67,

“orderId”: null,

“productId”: 31,

“userId”: null,

“licenseKey”: “PREee-ps-ws-et”,

“expiresAt”: null,

“validFor”: 20,

“source”: 1,

“status”: 3,

“timesActivated”: null,

“timesActivatedMax”: 5,

“createdAt”: “2022-08-01 11:55:42”,

“createdBy”: 1,

“updatedAt”: null,

“updatedBy”: null

}

}

Was this article helpful to you? Yes No

How can we help?