Developer documentation

Retrieve a license

Estimated reading: 1 minute 2024 views

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”: 1,

“orderId”: 165,

“productId”: 20,

“userId”: 1,

“licenseKey”: “FIRST”,

“expiresAt”: “2023-12-28 00:00:00”,

“validFor”: null,

“source”: 2,

“status”: 2,

“timesActivated”: 1,

“timesActivatedMax”: 5,

“createdAt”: “2023-12-11 07:27:15”,

“createdBy”: 1,

“updatedAt”: “2023-12-22 10:52:18”,

“activationData”: [

{

“id”: 3,

“token”: “8a242078c59489077dfa420ed870d043f58cb300”,

“license_id”: 1,

“label”: null,

“source”: 1,

“ip_address”: “::1”,

“user_agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”,

“meta_data”: null,

“created_at”: “2023-12-15 14:39:11”,

“updated_at”: “2023-12-15 14:41:30”,

“deactivated_at”: null

}

]

}

}
Share this Doc

Retrieve a license

Or copy link

CONTENTS
Scroll to Top