API Module License upgradeLicenseRequest

From Openprovider API documentation

Revision as of 11:14, 23 March 2012 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

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