1. Home
  2. Docs
  3. REST API
  4. Developer documentation
  5. List licenses

List licenses

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

            “orderId”159,

            “productId”20,

            “userId”1,

            “licenseKey”“PRExp-pp-xe-sx”,

            “expiresAt”“2022-08-18 14:02:57”,

            “validFor”20,

            “source”1,

            “status”1,

            “timesActivated”1,

            “timesActivatedMax”5,

            “createdAt”“2022-07-29 14:00:26”,

            “createdBy”1,

            “updatedAt”“2022-08-01 10:37:30”,

            “updatedBy”1

        },

        {

            “id”49,

            “orderId”159,

            “productId”20,

            “userId”1,

            “licenseKey”“PREws-ee-pp-wp”,

            “expiresAt”“2022-08-18 14:02:57”,

            “validFor”20,

            “source”1,

            “status”1,

            “timesActivated”null,

            “timesActivatedMax”5,

            “createdAt”“2022-07-29 14:00:26”,

            “createdBy”1,

            “updatedAt”“2022-07-29 14:02:57”,

            “updatedBy”1

        }

Was this article helpful to you? Yes No 1

How can we help?