Manage2 API Function - Expire Licenses
Last modified: June 20, 2023
Description
This function expires a license.
Examples
Browser-based calls
XML
https://manage2.cpanel.net/XMLlicenseExpire.cgi?liscid=7216526&reason='Normal Cancellation - No Security Risk'&expcode=normal
JSON
https://manage2.cpanel.net/XMLlicenseExpire.cgi?output=json&liscid=7216526&reason='Normal Cancellation - No Security Risk'&expcode=normal
YAML
https://manage2.cpanel.net/XMLlicenseExpire.cgi?output=yaml&liscid=7216526&reason='Normal Cancellation - No Security Risk'&expcode=normal
cPanelLicensing PHP Class
|
|
cPanelLicensing Perl Module
|
|
Output (XML)
<XMLlicenseExpire licenseid="7216526" reason="Expired 45-DAY-TEST license 7216526 in the
'cPanel/WHM Auto Trial' group on 192.0.2.0 for reason: Normal
Cancellation - No Security Risk." result="OK" status="1"/>
Output (JSON)
|
|
Output (YAML)
|
|
Parameters
This function accepts the following parameters:
Parameter | Type | Description | Example |
---|---|---|---|
liscid |
integer | Required The license ID to expire. The Manage2 List License Information function returns a list of possible values. | 7216526 |
reason |
string | Recommended The reason to expire a license. | Normal Cancellation - No Security Risk. |
expcode |
string | The license expiration reason code:
normal . This parameter is recommended for distributors. |
normal |
Returns
This function returns the following values:
Return | Type | Description |
Example |
---|---|---|---|
licenseid |
integer | The expired license’s ID. | 7216526 |
reason |
string | The function’s result. | Expired 45-DAY-TEST license 7216526 in the "cPanel/WHM Auto Trial" group on 192.0.2.0 for reason: Normal Cancellation - No Security Risk. |
result |
string | Whether the license expired:
|
OK |
status |
Boolean | Whether the function succeeded:
|
1 |