From Openprovider API documentation
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
Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.
<?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>