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 Domain tradeDomainRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
(Created page with '==Module Domain > Trade== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |domain |- style="background-color:#EEEEEE;" |'''Command name''' |trade…')
Line 45: Line 45:
===Raw XML===
===Raw XML===
  <?xml version="1.0" encoding="UTF-8"?>
  <?xml version="1.0" encoding="UTF-8"?>
-
  <openxml>
+
  <openXML>
   <credentials>
   <credentials>
     <username>username</username>
     <username>username</username>
     <password>password</password>
     <password>password</password>
   </credentials>
   </credentials>
-
   <tradedomainrequest>
+
   <tradeDomainRequest>
-
     <ownerhandle>SR003891-NL</ownerhandle>
+
     <ownerHandle>SR003891-NL</ownerHandle>
-
     <adminhandle>SR003891-NL</adminhandle>
+
     <adminHandle>SR003891-NL</adminHandle>
-
     <techhandle>SR003891-NL</techhandle>
+
     <techHandle>SR003891-NL</techHandle>
     <domain>
     <domain>
       <name>openprovider</name>
       <name>openprovider</name>
       <extension>nl</extension>
       <extension>nl</extension>
     </domain>
     </domain>
-
     <nsgroup>MyServer</nsgroup>
+
     <nsGroup>MyServer</nsGroup>
-
   </tradedomainrequest>
+
   </tradeDomainRequest>
-
  </openxml>
+
  </openXML>
  <?xml version="1.0" encoding="UTF-8"?>
  <?xml version="1.0" encoding="UTF-8"?>
-
  <openxml>
+
  <openXML>
   <reply>
   <reply>
-
     <code>364</code>
+
     < code>364</code>
     <desc>Owner handle must differ from the current one.</desc>
     <desc>Owner handle must differ from the current one.</desc>
     <data />
     <data />
   </reply>
   </reply>
-
  </openxml>
+
  </openXML>

Revision as of 13:46, 1 July 2010

Contents

Module Domain > Trade

Module domain
Command name tradeDomainRequest
Use Changes the owner of an existing domain
Input
Output

-

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('tradeDomainRequest')
  ->setAuth(array('username' => 'username', 'password' => 'password'))
  ->setArgs(array(
    'ownerHandle' => 'SR003891-NL',
    'adminHandle' => 'SR003891-NL',
    'techHandle' => 'SR003891-NL',
    'domain' => array(
      'name' => 'openprovider',
      'extension' => 'nl'
    ),
    'nsGroup' => 'MyServer'
  ));

Raw XML

<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <credentials>
    <username>username</username>
    <password>password</password>
  </credentials>
  <tradeDomainRequest>
    <ownerHandle>SR003891-NL</ownerHandle>
    <adminHandle>SR003891-NL</adminHandle>
    <techHandle>SR003891-NL</techHandle>
    <domain>
      <name>openprovider</name>
      <extension>nl</extension>
    </domain>
    <nsGroup>MyServer</nsGroup>
  </tradeDomainRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    < code>364</code>
    <desc>Owner handle must differ from the current one.</desc>
    <data />
  </reply>
</openXML>
Views
Personal tools