API: register_domain
Registration of a new domain
used for both CZ and generic domains, with certain differences
domains are paid for from the credit in your account
Parameters:
- domain - domain name
- owner - owner (holder) contact
- additional - additional data required for the registration of certain foreign domains
- name - item name
- value - item value
- additional ...
- period - period (number of years), 1 to 10
- nsset - NSSET (Czech domains only)
- keyset - KEYSET (optional; Czech domains only)
- admin - administrative contact
- ns - name server (foreign domains only)
- ns ...
Optional attributes:
- test - Boolean value, intended for testing your application
Return codes:
- 1000 OK
- 2004 Failed - the domain cannot be registered. Details of the failure are returned in the errors element.
- 2006 Domain already exists - the domain already exists
- 2009 Reserved domain name - the domain name is excluded from registration on the registrar's side
- 2010 Missing required additional field - one of the additional items required for registering domains in the given TLD is missing. Details are returned in the errors element.
- 2013 Invalid nameservers section - no name servers were supplied or their number is not acceptable. Details are returned in the errors element.
- 2016 Contact is not valid - the owner or administrative (admin) contact has no telephone number filled in. Details are returned in the errors element.
- 3000 Your credit is low - you do not have sufficient credit
- 8000 Not supported TLD - we do not offer registration of domains in this TLD
- 8001 This contact/NSSET/KEYSET/nameserver does not belong to your account - the object used is not assigned to your account
- 8800 Malformed input - invalid values in the input fields. Details of the failure are returned in the errors element.
No return values.
Example of registering a Czech domain:
<?xml version="1.0" encoding="UTF-8"?>
<api>
<ssid>etLvxXwuXogjc9lXaVckHzTkSjOjh9</ssid>
<register_domain test='true'>
<domain>lteweb.cz</domain>
<owner>HORNYAK</owner>
<period>1</period>
<nsset>TELE3</nsset>
</register_domain>
</api>
Example of registering a foreign domain, with the additional data section:
<?xml version="1.0" encoding="UTF-8"?>
<api>
<ssid>etLvxXwuXogjc9lXaVckHzTkSjOjh9</ssid>
<register_domain>
<domain>arcierebianco.it</domain>
<owner>G-674184</owner>
<additional>
<name>nationalityCode</name>
<value>CZ</value>
</additional>
<additional>
<name>entityType</name>
<value>1</value>
</additional>
<additional>
<name>regCode</name>
<value>123456789</value>
</additional>
<period>1</period>
<nsset>TELE3</nsset>
<admin>G-674184</admin>
<ns>ns1.tele3.cz</ns>
<ns>ns2.tele3.cz</ns>
</register_domain>
</api>
Example of a response to an unsuccessful call:
<?xml version="1.0" encoding="UTF-8"?>
<api><credit currency="CZK">116.00</credit><status code="2006">Domain already exists</status></api>
Example of a response to a successful call:
<?xml version="1.0" encoding="UTF-8"?>
<api><credit currency="CZK">116.00</credit><status code="1000">OK</status></api>