Child pages
  • Manage2 API Functions - Request a License Transfer
Skip to end of metadata
Go to start of metadata

Description


This function requests a license transfer between companies.

Examples 


 Browser-based Calls
XML
https://manage2.cpanel.net/XMLtransferRequest.cgi?groupid=001&packageid=147&ip=127.0.0.1
JSON
https://manage2.cpanel.net/XMLtransferRequest.cgi?output=json&groupid=001&packageid=147&ip=127.0.0.1
YAML
https://manage2.cpanel.net/XMLtransferRequest.cgi?output=yaml&groupid=001&packageid=147&ip=127.0.0.1
 cPanel Licensing PHP Class
<?php
include("cpl.inc.php");  
$cpl = new cPanelLicensing("barney@example.com", "12345luggage");
$cpl->requestTransfer(array(
        "ip"      => "127.0.0.1", 
		"groupid" => "001", 
		"packageid" => "147",
		)
	);
?>
 cPanel Licensing Perl Module
use cPanelLicensing;
my $licenseManager = new cPanelLicensing(user => 'barney\@example.com', pass => '12345luggage');
$licenseManager->requestTransfer(
	'groupid'   => '1234', 
	'packageid' => '147', 
	'ip'        => '127.0.0.1'
	);
 Output (JSON)
{
  "version": 0.2,
  "status": 1,
  "reason": "Mosbius Designs has been contacted. You will receive notice via email once our staff reviews their response. This process may take up to 48 hours.  The confirmation number for this request is 37313." 
}
 Output (XML)
<XMLtransferRequest reason="Mosbius Designs has been contacted. You will receive notice via email once our staff reviews their response. This process may take up to 48 hours. The confirmation number for this request is 37313." status="1" version="0.2"/>
 Output (YAML)
--- 
reason: Mosbius Designs has been contacted. You will receive notice via email once our staff reviews their response. This process may take up to 48 hours.  The confirmation number for this request is 37313." 
status: 1
version: 0.2

Parameters

ParameterTypeDescriptionPossible valuesExample
groupidinteger

Required

The license's group ID.

The group's ID number.

The Display Groups function returns a list of possible values.

001
packageidinteger

Required

The license's package ID.

The package's ID number

The List Package Information function returns a list of possible values.

147
ipinteger

Required

The license account's IP address.

A valid IP address on the server.

The List License Information function returns a list of possible values.

127.0.0.11

 

Returns

ReturnTypeDescriptionPossible valuesExample
reasonstringThe transfer request's result.A string value.
 Click to view...
Mosbius Designs has been contacted.  You will receive notice via email once our staff reviews their response.  This process may take up to 48 hours.  The confirmation number for this request is 37313.
statusBooleanWhether the function succeeded.
  • 1 — Success.

  • 0 — Failure.
1
versionnumericInternal information that the Manage2 API uses to identify the version.A numeric value.0.1