Manage2 API Function - Service Credit
Last modified: March 12, 2021
Description
This function returns the Manage2 account’s service credit status.
Examples
Browser-based calls
XML
https://manage2.cpanel.net/XMLserviceCredit.cgi?liscid=123456
JSON
https://manage2.cpanel.net/XMLserviceCredit.cgi?liscid=123456&output=json
YAML
https://manage2.cpanel.net/XMLserviceCredit.cgi?liscid=123456&output=yaml
cPanelLicensing PHP Class
|
|
cPanelLicensing Perl Module
|
|
Output (XML)
|
|
Output (JSON)
|
|
Output (YAML)
|
|
Parameters
This function accepts the following parameters:
Return | Type | Description | Example |
---|---|---|---|
liscid |
integer | Required The license ID number. To list multiple licenses, enter this parameter multiple times. For example, add the &liscid=1&liscid=2 string to your browser-based call. |
12345 |
Returns
This function returns the following values:
Return | Type | Description | Example |
---|---|---|---|
results |
array of objects | An array of objects containing license IDs and their service credit status. | |
licenseid |
integer | The license’s ID number. The function returns this value in the results object. |
12345 |
status |
string | The license ID’s service credit status:
results object. |
denied |
status_reason |
string | The reason why the status return is the denied or approved value:
|
license_id not found in last invoice. |