API Module License upgradeLicenseRequest
From Openprovider API documentation
(Difference between revisions)
WikiSysop (Talk | contribs)
(Created page with '==Module Licenses > Upgrade License== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |Licenses |- style="background-color:#EEEEEE;" |'''Command …')
Newer edit →
(Created page with '==Module Licenses > Upgrade License== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |Licenses |- style="background-color:#EEEEEE;" |'''Command …')
Newer edit →
Revision as of 15:13, 2 December 2010
Contents |
Module Licenses > Upgrade License
| Module | Licenses |
| Command name | upgradeLicenseRequest |
| Use | Upgrade an existing license |
| Input |
|
| Output |
|
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('upgradeLicenseRequest')
->setAuth(array('username' => 'username', 'password' => 'password'))
->setArgs(array(
'id' => 1446,
'options' => array(
'keyType' => 'PLESK9WIN',
'domains' => 100,
'features' => array('DRWEB'),
'langPacks' => 2,
'period' => 24
)
));
Raw XML
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<credentials>
<username>username</username>
<password>password</password>
</credentials>
<upgradeLicenseRequest>
<id>1446</id>
<options>
<keyType>PLESK9WIN</keyType>
<domains>100</domains>
<features>
<array>
<item>DRWEB</item>
</array>
</features>
<langPacks>2</langPacks>
<period>24</period>
</options>
</upgradeLicenseRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<reply>
< code>0</code>
<desc />
<data>
<refund>
<product>
<price>156.75</price>
<currency>EUR</currency>
</product>
<reseller>
<price>156.75</price>
<currency>EUR</currency>
</reseller>
</refund>
<price>
<product>
<price>732.00</price>
<currency>EUR</currency>
</product>
<reseller>
<price>732.00</price>
<currency>EUR</currency>
</reseller>
</price>
</data>
</reply>
</openXML>