API Module Domain retrieveDomainRequest
From Openprovider API documentation
(Difference between revisions)
												
			
		 (Created page with '==Module Domain > Modify== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |domain |- style="background-color:#EEEEEE;" |'''Command name''' |retr…')  | 
		|||
| (26 intermediate revisions not shown) | |||
| Line 1: | Line 1: | ||
| - | ==Module Domain >   | + | ==Module Domain > Retrieve==  | 
{| border="1" cellpadding="4"  | {| border="1" cellpadding="4"  | ||
|- style="background-color:#BBBBBB;"  | |- style="background-color:#BBBBBB;"  | ||
| Line 15: | Line 15: | ||
*[[API Format Domain|domain]]  | *[[API Format Domain|domain]]  | ||
*withAdditionalData  | *withAdditionalData  | ||
| + | *withRegistryDetails  | ||
| + | *withWhoisPrivacyData  | ||
|- style="vertical-align:top;"  | |- style="vertical-align:top;"  | ||
|'''Output'''  | |'''Output'''  | ||
| Line 22: | Line 24: | ||
*activeDate  | *activeDate  | ||
*expirationDate  | *expirationDate  | ||
| - | *ownerHandle  | + | *expirationDateOpenprovider - Same as renewalDate.  | 
| - | *adminHandle  | + | *renewalDate - Date when a domain expires at Openprovider. This date should be referred for domain expiration and renewals.  | 
| - | *techHandle  | + | *[[API Format Handle|ownerHandle]]  | 
| - | *nsGroup  | + | *[[API Format Handle|adminHandle]]  | 
| + | *[[API Format Handle|techHandle]]  | ||
| + | *[[API Format Handle|billingHandle]]  | ||
| + | *[[API Format Handle|resellerHandle]]  | ||
| + | *[[API Format nsGroup|nsGroup]]  | ||
*[[API Format Nameservers|nameServers]]  | *[[API Format Nameservers|nameServers]]  | ||
| - | *authCode  | + | *[[API Format authCode|authCode]]  | 
| - | *status  | + | *[[API Format Domain Status|status]]  | 
| - | *  | + | *[[API Format autorenew|autorenew]]  | 
| - | *  | + | *[[API Format isLocked|isLocked]]  | 
| - | *  | + | *[[API Format useDomicile|useDomicile]]  | 
| - | *  | + | *[[API Format Transfer At|at]]  | 
| - | *[[API Format Additional Data   | + | *[[API Format Additional Data|additionalData]] (if withAdditionalData = true)  | 
| + | *[[API Format Whois Privacy Data|whoisPrivacyData]] (if withWhoisPrivacyData = true)  | ||
| + | *registryDetails (if withRegistryDetails = true)  | ||
| + | *softQuarantineExpiryDate (if status=DEL or RRQ)  | ||
| + | *hardQuarantineExpiryDate (if status=DEL or RRQ)  | ||
| + | *restorableUntil (if status=DEL or RRQ)  | ||
|}  | |}  | ||
| Line 50: | Line 61: | ||
===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>  | 
    <credentials>  |     <credentials>  | ||
      <username>username</username>  |       <username>username</username>  | ||
      <password>password</password>  |       <password>password</password>  | ||
    </credentials>  |     </credentials>  | ||
| - |     <  | + |     <retrieveDomainRequest>  | 
      <domain>  |       <domain>  | ||
        <name>domain-info</name>  |         <name>domain-info</name>  | ||
        <extension>nl</extension>  |         <extension>nl</extension>  | ||
      </domain>  |       </domain>  | ||
| - |       <  | + |       <withadditionalData>0</withadditionalData>  | 
| - |     </  | + |     </retrieveDomainRequest>  | 
| - |   </  | + |   </openXML>  | 
  <?xml version="1.0" encoding="UTF-8"?>  |   <?xml version="1.0" encoding="UTF-8"?>  | ||
| - |   <  | + |   <openXML>  | 
    <reply>  |     <reply>  | ||
      <code>0</code>  |       <code>0</code>  | ||
| Line 75: | Line 87: | ||
          <extension>nl</extension>  |           <extension>nl</extension>  | ||
        </domain>  |         </domain>  | ||
| - |         <  | + |         <nameServers />  | 
        <id>341105</id>  |         <id>341105</id>  | ||
| - |         <  | + |         <isLockable>0</isLockable>  | 
| - |         <  | + |         <isLocked>0</isLocked>  | 
        <comments></comments>  |         <comments></comments>  | ||
| - |         <  | + |         <orderDate>2010-03-15 16:50:19</orderDate>  | 
| - |         <  | + |         <activeDate />  | 
| - |         <  | + |        <expirationDate></expirationDate>  | 
| + |         <expirationDateOpenprovider></expirationDateOpenprovider>  | ||
        <status>FAI</status>  |         <status>FAI</status>  | ||
| - |         <  | + |         <canRenew>0</canRenew>  | 
| - |         <  | + |         <autoRenew>0</autoRenew>  | 
| - |         <  | + |         <ownerHandle>OH002766-NL</ownerHandle>  | 
| - |         <  | + |         <adminHandle>OH002766-NL</adminHandle>  | 
| - |         <  | + |         <techHandle>OH002766-NL</techHandle>  | 
| - |         <  | + |         <billingHandle>SR003891-NL</billingHandle>  | 
| + |        <nsGroup>opdrs4</nsGroup>  | ||
        <type>NEW</type>  |         <type>NEW</type>  | ||
| - |         <  | + |         <authCode></authCode>  | 
| - |         <  | + |         <authorizationCodeRequired>0</authorizationCodeRequired>  | 
| - |         <  | + |         <tradeAllowed>1</tradeAllowed>  | 
| - |         <  | + |         <restorePrice>70</restorePrice>  | 
| - |         <  | + |         <useDomicile>0</useDomicile>  | 
| - |         <  | + |         <ownerName>  | 
          <initials>N.</initials>  |           <initials>N.</initials>  | ||
| - |           <  | + |           <firstName>Nigel</firstName>  | 
| - |           <prefix  | + |           <prefix />  | 
| - |           <  | + |           <lastName>Jones</lastName>  | 
| - |         </  | + |         </ownerName>  | 
| - |         <  | + |         <ownerCompanyName></ownerCompanyName>  | 
      </data>  |       </data>  | ||
    </reply>  |     </reply>  | ||
| - |   </  | + |   </openXML>  | 
Current revision as of 08:51, 19 August 2025
Contents | 
Module Domain > Retrieve
| Module | domain | 
| Command name | retrieveDomainRequest | 
| Use | Retrieves information about an existing domain object | 
| Input | 
  | 
| Output | 
  | 
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('retrieveDomainRequest')
  ->setAuth(array('username' => 'username', 'password' => 'password'))
  ->setArgs(array(
    'domain' => array(
      'name' => 'openprovider',
      'extension' => 'nl'
    ),
    'withAdditionalData' => 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>
  <retrieveDomainRequest>
    <domain>
      <name>domain-info</name>
      <extension>nl</extension>
    </domain>
    <withadditionalData>0</withadditionalData>
  </retrieveDomainRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    0
    <desc></desc>
    <data>
      <domain>
        <name>abcdefg4</name>
        <extension>nl</extension>
      </domain>
      <nameServers />
      <id>341105</id>
      <isLockable>0</isLockable>
      <isLocked>0</isLocked>
      <comments></comments>
      <orderDate>2010-03-15 16:50:19</orderDate>
      <activeDate />
      <expirationDate></expirationDate>
      <expirationDateOpenprovider></expirationDateOpenprovider>
      <status>FAI</status>
      <canRenew>0</canRenew>
      <autoRenew>0</autoRenew>
      <ownerHandle>OH002766-NL</ownerHandle>
      <adminHandle>OH002766-NL</adminHandle>
      <techHandle>OH002766-NL</techHandle>
      <billingHandle>SR003891-NL</billingHandle>
      <nsGroup>opdrs4</nsGroup>
      <type>NEW</type>
      <authCode></authCode>
      <authorizationCodeRequired>0</authorizationCodeRequired>
      <tradeAllowed>1</tradeAllowed>
      <restorePrice>70</restorePrice>
      <useDomicile>0</useDomicile>
      <ownerName>
        <initials>N.</initials>
        <firstName>Nigel</firstName>
        <prefix />
        <lastName>Jones</lastName>
      </ownerName>
      <ownerCompanyName></ownerCompanyName>
    </data>
  </reply>
</openXML>