Please use the new documentation

This page is still here for now, but it will no longer be available from 31-Dec-2026. All content has moved to the new API documentation, which covers current features and new updates.

Go to the new documentation

API Module License upgradeLicenseRequest

From Openprovider API documentation

Revision as of 15:13, 2 December 2010 by WikiSysop (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Module Licenses > Upgrade License

Module Licenses
Command name upgradeLicenseRequest
Use Upgrade an existing license
Input
  • id
  • options
Output
  • refund
  • price

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>
Views
Personal tools