🔌 License API Test

Testing with key: KAETECH-INVEST-TEST-TEST-TEST

⚠️ Using test key. For real testing, use a real license key from your database.

You can pass a key via URL: ?key=YOUR_LICENSE_KEY


Testing: Check License

Request:

{
    "action": "check",
    "license_key": "KAETECH-INVEST-TEST-TEST-TEST"
}

HTTP Code: 200 | Success: ✅

{
    "success": true,
    "license_key": "KAETECH-INVEST-TEST-TEST-TEST",
    "product": "investflow",
    "customer": "Test User",
    "email": "test@example.com",
    "status": "active",
    "expires": "2027-08-19 21:16:41",
    "days_remaining": "365 days",
    "purchase_date": "2026-08-19 17:16:41",
    "max_activations": 5,
    "current_activations": 0,
    "active_domains": []
}

Testing: Activate License

Request:

{
    "action": "activate",
    "license_key": "KAETECH-INVEST-TEST-TEST-TEST",
    "domain": "test-domain.com",
    "product_id": "investflow"
}

HTTP Code: 200 | Success: ✅

{
    "success": true,
    "message": "License activated successfully!",
    "expires": "2027-08-19 21:16:41",
    "domain": "test-domain.com",
    "product": "investflow",
    "activations": 1,
    "max_activations": 5,
    "customer": "Test User",
    "email": "test@example.com"
}

Testing: Validate License

Request:

{
    "action": "validate",
    "license_key": "KAETECH-INVEST-TEST-TEST-TEST",
    "domain": "test-domain.com"
}

HTTP Code: 200 | Success: ✅

{
    "success": true,
    "message": "License is valid",
    "expires": "2027-08-19 21:16:41",
    "days_remaining": "365 days",
    "domain": "test-domain.com",
    "product": "investflow",
    "customer": "Test User",
    "email": "test@example.com",
    "status": "valid"
}

Testing: List Products

Request:

{
    "action": "list_products"
}

HTTP Code: 200 | Success: ✅

{
    "success": true,
    "products": [
        {
            "id": "investflow",
            "name": "InvestFlow",
            "version": "1.0.0",
            "price": 49
        }
    ]
}

📋 Next Steps

  1. If you see errors, check your database credentials in config.php
  2. Make sure you have inserted license keys into the database
  3. Update your plugin to use: https://licensing.kaetechplugins.com/license-api.php
  4. Test the full flow: Purchase → License Generation → Activation