domain:trade

XML Template for com.hk domains

XML Template - Updating the organisational contact
<?xml version="1.0" encoding="UTF-8"?>
<request
    xmlns:domain="http://www.eurodns.com/domain"
    xmlns:contact="http://www.eurodns.com/contact">

    <domain:trade>
        <domain:name>#DOMAIN.TLD#</domain:name>
    </domain:trade>

    <contact:update>
        <contact:type>org</contact:type>
        <contact:contactprofileid>#CONTACT PROFILE ID#</contact:contactprofileid>
        <contact:firstname>#FIRSTNAME#</contact:firstname>
        <contact:lastname>#LASTNAME#</contact:lastname>
        <contact:company>#COMPANY#</contact:company>
        <contact:address1>#ADDRESS LINE 1#</contact:address1>
        <contact:address2>#ADDRESS LINE 2#</contact:address2>
        <contact:address3>#ADDRESS LINE 3#</contact:address3>
        <contact:city>#CITY#</contact:city>
        <contact:zipcode>#ZIP/POSTAL CODE#</contact:zipcode>
        <contact:country_code>#COUNTRY CODE#</contact:country_code>
        <contact:email>#EMAIL ADDRESS#</contact:email>
        <contact:phone>#PHONE NUMBER#</contact:phone>
        <contact:fax>#FAX NUMBER#</contact:fax>
    </contact:update>

    <extension:create>
        <extension:data tld="com.hk">
            <extension:registry>
                <registry:o_industrytype>#O_INDUSTRYTYPE#</registry:o_industrytype>
                <registry:o_over18>#O_OVER18#</registry:o_over18>
                <registry:o_docnumber>#O_DOCNUMBER#</registry:o_docnumber>
                <registry:o_docorigincountry>#O_DOCORIGINCOUNTRY#</registry:o_docorigincountry>
                <registry:o_doctype>#O_DOCTYPE#</registry:o_doctype>
                <registry:o_otherdoc>#O_OTHERDOC#</registry:o_otherdoc>
            </extension:registry>
            <extension:domain>
                <domain:fileuploadedpath>#FILEUPLOADEDPATH#</domain:fileuploadedpath>
            </extension:domain>
        </extension:data>
    </extension:create>
</request>

<domain:trade> (Occurences: 1)
R #DOMAIN.TLD# Domain to be traded

<contact:update> (Occurences: 1)
Note: Only the organisational contact can be updated
O #CONTACT PROFILE ID# Use a contact profile instead of specifying the contact details
R #FIRSTNAME# Firstname
R #LASTNAME# Lastname
O #COMPANY# Company
R #ADDRESS LINE 1# Address, Line 1
O #ADDRESS LINE 2# Address, Line 2
O #ADDRESS LINE 3# Address, Line 3
R #ZIP/POSTAL CODE# ZIP/Postal code
R #COUNTRY CODE# Country code (ISO 3166-1-alpha-2)
R #EMAIL ADDRESS# Email address
R #PHONE NUMBER# Phone number format: +999999999
Starting with +country phone code
O #FAX NUMBER# Phone number format: +999999999
Starting with +country phone code

<extension:create>
R #FILEUPLOADEDPATH# Business registration certificate in base 64
R #O_INDUSTRYTYPE# Registrant industry type
R #O_OVER18# Registrant is over 18 years of age (0/1)
R #O_DOCNUMBER# Individual Identification number
R #O_DOCORIGINCOUNTRY# Individual Identification document Country Code
R #O_DOCTYPE# Document Type (HKID=>HongKong ID; OTHID=>Other Country ID;PASSNO=>Passport;BIRTHCERT=> Birth Certificate;OTHIDV=>Other doc)
R #O_OTHERDOC# Other individual Identification document (if OTHIDV)

The following request is an example on how to perform a trade by using a contact profile instead of specifying the complete contact details in the request.


XML Example 1 - Perform a trade by using a contact profile
<?xml version="1.0" encoding="UTF-8"?>
<request
    xmlns:domain="http://www.eurodns.com/domain"
    xmlns:contact="http://www.eurodns.com/contact">
    <domain:trade>
        <domain:name>eurodns.com</domain:name>
    </domain:trade>
    <contact:update>
        <contact:type>org</contact:type>
        <contact:contactprofileid>123456</contact:contactprofileid>
    </contact:update>
</request>

If our server accepts the request, the following code will be returned:
<?xml version="1.0" encoding="UTF-8"?>
<response xmlns="http://www.eurodns.com/">
    <result code="1001">
        <msg>Command completed successfully, action pending</msg>
    </result>
</response>