Manage2 API Function - Reactivate Expired Licenses
Last modified: March 7, 2023
Description
This function reactivates an account’s expired cPanel license.
Examples
Browser-based calls
XML
https://manage2.cpanel.net/XMLlicenseReActivate.cgi?liscid=12345
JSON
https://manage2.cpanel.net/XMLlicenseReActivate.cgi?output=json&liscid=12345
YAML
https://manage2.cpanel.net/XMLlicenseReActivate.cgi?output=yaml&liscid=12345
cPanelLicensing PHP Class
|
|
cPanelLicensing Perl Module
|
|
Output (XML)
<XMLlicenseReActivate licenseid="12345" monthly_price="25.00" price="150.00" reason="Reactivated COMPANY-INTERNAL-VPS license on 192.0.2.0 in the 'ExampleGroup' group." status="1"/>
Output (JSON)
|
|
Output (YAML)
|
|
Parameters
This function accepts the following parameters:
Return | Type | Description | Example |
---|---|---|---|
liscid |
string | Required The ID of the license to reactivate. The Manage2 List License Information function returns a list of possible values. | 127.0.0.1 |
force |
Boolean | Whether to force reactivate the license:
0 . |
0 |
dryrun |
Boolean | Whether to show error messages and price information, but not reactivate the license:
1 . |
0 |
Returns
This function returns the following values:
Return | Type | Description |
Example |
---|---|---|---|
licenseid |
integer | The reactivate license’s ID. | 12345 |
monthly_price |
numeric | The monthly amount of the license, in US dollars. | 25.00 |
price |
numeric | The price amount of the license, in US dollars. | 150.00 |
reason |
string | Information about the license reactivation. | Reactivated COMPANY-INTERNAL-VPS license on 192.0.2.0 in the 'ExampleGroup' group. |
status |
Boolean | Whether the function succeeded:
|
1 |