API Module Domain tradeDomainRequest
From Openprovider API documentation
(Difference between revisions)
| Line 23: | Line 23: | ||
*useDomicile | *useDomicile | ||
*promoCode | *promoCode | ||
| + | *isDnssecEnabled (''0'' (default) or ''1'') | ||
| + | *[[API Format DNSSEC Keys|dnssecKeys]] | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
|'''Output''' | |'''Output''' | ||
| Line 44: | Line 46: | ||
'extension' => 'nl' | 'extension' => 'nl' | ||
), | ), | ||
| - | 'nsGroup' => 'MyServer' | + | 'nsGroup' => 'MyServer', |
| + | 'isDnssecEnabled' => 0, | ||
)); | )); | ||
| Line 64: | Line 67: | ||
</domain> | </domain> | ||
<nsGroup>MyServer</nsGroup> | <nsGroup>MyServer</nsGroup> | ||
| + | <isDnssecEnabled>0</isDnssecEnabled> | ||
</tradeDomainRequest> | </tradeDomainRequest> | ||
</openXML> | </openXML> | ||
Revision as of 08:04, 13 December 2012
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',
'isDnssecEnabled' => 0,
));
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>
<tradeDomainRequest>
<ownerHandle>SR003891-NL</ownerHandle>
<adminHandle>SR003891-NL</adminHandle>
<techHandle>SR003891-NL</techHandle>
<domain>
<name>openprovider</name>
<extension>nl</extension>
</domain>
<nsGroup>MyServer</nsGroup>
<isDnssecEnabled>0</isDnssecEnabled>
</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>