This documentation has moved

XML API documentation can now be found at developer.openprovider.com. This page will remain available until September 2026, but will no longer be updated.

The XML API itself is not changing. Your existing integration continues to work.

API Module License upgradeLicenseRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
(Created page with '==Module Licenses > Upgrade License== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |Licenses |- style="background-color:#EEEEEE;" |'''Command …')
 
Line 39: Line 39:
===Raw XML===
===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"?>
  <?xml version="1.0" encoding="UTF-8"?>
  <openXML>
  <openXML>

Current revision as of 11:14, 23 March 2012

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