Developer documentation

List licenses

Estimated reading: 1 minute 2138 views

DESCRIPTION

This route is used to retrieve all license keys from the database. Be very careful, if you do not need to use this API route in your productive environment then it is best to disable the route altogether via the settings page. The response contains an array of license key data objects.

REQUEST URL

GET

/wp-json/lmfwc/v2/licenses

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

            “updatedBy”: 1

“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

}

]

            },

       {

“id”: 19,

“orderId”: null,

“productId”: null,

“userId”: null,

“licenseKey”: “license_key”,

“expiresAt”: null,

“validFor”: null,

“source”: 2,

“status”: 3,

“timesActivated”: null,

“timesActivatedMax”: null,

“createdAt”: “2023-12-21 15:19:22”,

“createdBy”: 1,

“updatedAt”: null,

“updatedBy”: null,

“activationData”: [ ]

}

]

}
Share this Doc

List licenses

Or copy link

CONTENTS
Scroll to Top