Developer documentation

Validate a license

Estimated reading: 1 minute 2392 views

DESCRIPTION

Checks the current activation status of a license key. The response will contain the number of activations, the maximum activation count, and the remaining activations.

REQUEST URL

GET

/wp-json/lmfwc/v2/licenses/validate/{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": 0,
        "timesActivatedMax": 5,
        "createdAt": "2023-12-11 07:27:15",
        "createdBy": 1,
        "updatedAt": "2023-12-26 13:14:34",
        "updatedBy": 1,
        "activationData": [
            {
                "id": 11,
                "token": "99011e7d2f7fab83bbbcdeb72d427353b4fe66d3",
                "license_id": 1,
                "label": null,
                "source": 2,
                "ip_address": "127.0.0.1",
                "user_agent": "PostmanRuntime/7.36.0",
                "meta_data": null,
                "created_at": "2023-12-26 13:13:10",
                "updated_at": "2023-12-26 13:14:34",
                "deactivated_at": "2023-12-26 13:14:34"
            }
        ]
    }
}
Share this Doc

Validate a license

Or copy link

CONTENTS
Scroll to Top