Personal tools

From HEXONET Wiki

Jump to: navigation, search
Line 3: Line 3:
  
 
__TOC__
 
__TOC__
 +
 +
= API Commands =
 +
 +
'''TRADEDOMAIN'''
  
 
[COMMAND]
 
[COMMAND]
Line 17: Line 21:
 
<pre>
 
<pre>
 
DESCRIPTION = Command completed successfully; realtime domain trade succeeded
 
DESCRIPTION = Command completed successfully; realtime domain trade succeeded
CODE=200
+
CODE = 200
 
EOF
 
EOF
 
</pre>
 
</pre>
  
  
 
+
'''STATUSDOMAIN'''
[HEADER]
+
USER=test.user
+
  
 
[COMMAND]
 
[COMMAND]
 +
<pre>
 
COMMAND = StatusDomain
 
COMMAND = StatusDomain
 
DOMAIN = btc.info
 
DOMAIN = btc.info
 
EOF
 
EOF
 +
</pre>
  
 
[RESPONSE]
 
[RESPONSE]
CODE=200
+
<pre>
DESCRIPTION=Command completed successfully
+
CODE = 200
PROPERTY[STATUS][0]=ACTIVE
+
DESCRIPTION = Command completed successfully
PROPERTY[STATUS][1]=clientTransferProhibited
+
PROPERTY[STATUS][0] = ACTIVE
 +
PROPERTY[STATUS][1] = clientTransferProhibited
 
...
 
...
PROPERTY[CURRENT-REGISTRANT-NAME][0]=Jens Wagner
+
PROPERTY[CURRENT-REGISTRANT-NAME][0] = ...
PROPERTY[CURRENT-REGISTRANT-ORGANIZATION][0]=HEXONET GmbH
+
PROPERTY[CURRENT-REGISTRANT-ORGANIZATION][0] = ...
PROPERTY[CURRENT-REGISTRANT-EMAIL][0]=info@hexonet.net
+
PROPERTY[CURRENT-REGISTRANT-EMAIL][0] = ...
 
...
 
...
PROPERTY[TRANSFERLOCK][0]=1
+
PROPERTY[TRANSFERLOCK][0] = 1
PROPERTY[TRANSFERLOCK-EXPIRATIONDATE][0]=2017-01-09 09:53:24
+
PROPERTY[TRANSFERLOCK-EXPIRATIONDATE][0] = YYYY-MM-DD HH:MM:SS
PROPERTY[TRADE-TRANSFERLOCK-EXPIRATIONDATE][0]=2017-01-09 09:53:24
+
PROPERTY[TRADE-TRANSFERLOCK-EXPIRATIONDATE][0] = YYYY-MM-DD HH:MM:SS
 
...
 
...
 
EOF
 
EOF
 +
</pre>
  
  

Revision as of 14:34, 11 November 2016

Domain API

Contents


API Commands

TRADEDOMAIN

[COMMAND]

COMMAND = TradeDomain
DOMAIN = <DOMAIN>
OWNERCONTACT0 = <CONTACT>
X-CONFIRM-DA-OLD-REGISTRANT = 1
X-CONFIRM-DA-NEW-REGISTRANT = 1
EOF


[RESPONSE]

DESCRIPTION = Command completed successfully; realtime domain trade succeeded
CODE = 200
EOF


STATUSDOMAIN

[COMMAND]

COMMAND = StatusDomain
DOMAIN = btc.info
EOF

[RESPONSE]

CODE = 200
DESCRIPTION = Command completed successfully
PROPERTY[STATUS][0] = ACTIVE
PROPERTY[STATUS][1] = clientTransferProhibited
...
PROPERTY[CURRENT-REGISTRANT-NAME][0] = ...
PROPERTY[CURRENT-REGISTRANT-ORGANIZATION][0] = ...
PROPERTY[CURRENT-REGISTRANT-EMAIL][0] = ...
...
PROPERTY[TRANSFERLOCK][0] = 1
PROPERTY[TRANSFERLOCK-EXPIRATIONDATE][0] = YYYY-MM-DD HH:MM:SS
PROPERTY[TRADE-TRANSFERLOCK-EXPIRATIONDATE][0] = YYYY-MM-DD HH:MM:SS
...
EOF


[HEADER] USER=test.user

[COMMAND] COMMAND = ModifyDomain DOMAIN = btc.info TRANSFERLOCK = 0 EOF

[RESPONSE] CODE=552 DESCRIPTION=Object status does not allow for operation; Change of Registrant TRANSFERLOCK in place until 2017-01-09 09:53:24 EOF


With opt-out from transferlock:


[COMMAND] COMMAND=TradeDomain DOMAIN=btc.info OWNERCONTACT0=P-JUW40 X-CONFIRM-DA-NEW-REGISTRANT=1 X-REQUEST-OPT-OUT-TRANSFERLOCK=1 EOF


[RESPONSE] DESCRIPTION=Command completed successfully; trade pending - non-real-time CODE=200 PENDING=1 QUEUETIME=0 RUNTIME=0.96 EOF