license.purchase
**Note** You must have a credit card on file or available credits to use this functionality.
Parameters
| Name |
Type |
Default |
| type |
enum
|
Required
|
|
Values: cpanel, cloudlinux, fantastico, plesk, softaculous, whmxtra, imunify360, interworx
|
| cycle |
enum
|
"monthly"
|
|
Values: monthly, yearly, lifetime
|
| ip |
string
|
null
|
|
|
| subtype |
string
|
null
|
|
|
Errors
| Code |
Name |
| 317 |
InvalidIpAddress |
| 5202 |
LicenseRequiresSubtype |
| 5204 |
LicenseCycleOrTypeInvalid |
| 5201 |
LicensePurchaseNoPaymentAvailable |
| 2101 |
BillingChargeFailed |
| 5203 |
LicensePurchaseFailedToLicense |