All contact commands: (check) (create) (delete) (info) (modify)
To retrieve information about the attributes of a contact object you need to use the contact:info command. This has just one sub element, the contactid.
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
<command>
<info>
<contact:info>
<contact:id>RP01fUp8BJYPW5Z45ybB3fhC</contact:id>
</contact:info>
</info>
<clTRID>57cfdb7b574b2</clTRID>
</command>
</epp>
You will then receive a normal contact info response. Please note that many response fields are wrapped in CDATA sections because the responses might vary and might contain strange characters
Please also note that if you create a contact with contact:postalInfo
type=int
, the system will create a contact with type=loc
. That is because type int (international) only accepts ASCII characters, and many names, street names and city names nowadays contain characters that are not ASCII. To be on the safe side and to avoid problems with character encoding, our systems will always use the localized version of a contact.
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<resData>
<contact:infData>
<contact:id><![CDATA[RP01fUp8BJYPW5Z45ybB3fhC]]></contact:id>
<contact:roid><![CDATA[RP01fUp8BJYPW5Z45ybB3fhC]]></contact:roid>
<contact:status s="ok"><![CDATA[No changes pending]]></contact:status>
<contact:voice><![CDATA[+31.612345678]]></contact:voice>
<contact:email><![CDATA[test@test.com]]></contact:email>
<contact:postalInfo type="loc">
<contact:name><![CDATA[Contact name]]></contact:name>
<contact:org><![CDATA[Contact organization]]></contact:org>
<contact:addr>
<contact:street><![CDATA[Street]]></contact:street>
<contact:city><![CDATA[City]]></contact:city>
<contact:sp><![CDATA[PR]]></contact:sp>
<contact:pc><![CDATA[10000]]></contact:pc>
<contact:cc><![CDATA[US]]></contact:cc>
</contact:addr>
</contact:postalInfo>
<contact:clID><![CDATA[mtrewoutdg]]></contact:clID>
<contact:crID><![CDATA[mtrewoutdg]]></contact:crID>
<contact:crDate><![CDATA[2016-09-07T09:18:50.817684+0000]]></contact:crDate>
<contact:upDate><![CDATA[2016-09-07T09:18:50.817714+0000]]></contact:upDate>
<contact:upID><![CDATA[mtrewoutdg]]></contact:upID>
</contact:infData>
</resData>
<trID>
<svTRID>MTR_748312aa1fd705ce493fb69ee9ad61b64a7c3940</svTRID>
<clTRID>57cfdb7b574b2</clTRID>
</trID>
</response>
</epp>
Some contacts may contain extra properties, needed by certain registries. With the same contact:info command you get this information back:
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<resData>
<contact:infData>
<contact:id><![CDATA[RP01fUp8BJYPW5Z45ybB3fhC]]></contact:id>
<contact:roid><![CDATA[RP01fUp8BJYPW5Z45ybB3fhC]]></contact:roid>
<contact:status s="ok"><![CDATA[No changes pending]]></contact:status>
<contact:voice><![CDATA[+31.612345678]]></contact:voice>
<contact:email><![CDATA[test@test.com]]></contact:email>
<contact:postalInfo type="loc">
<contact:name><![CDATA[Contact name]]></contact:name>
<contact:org><![CDATA[Contact organization]]></contact:org>
<contact:addr>
<contact:street><![CDATA[Street]]></contact:street>
<contact:city><![CDATA[City]]></contact:city>
<contact:sp><![CDATA[PR]]></contact:sp>
<contact:pc><![CDATA[10000]]></contact:pc>
<contact:cc><![CDATA[US]]></contact:cc>
</contact:addr>
</contact:postalInfo>
<contact:clID><![CDATA[mtrewoutdg]]></contact:clID>
<contact:crID><![CDATA[mtrewoutdg]]></contact:crID>
<contact:crDate><![CDATA[2016-09-07T09:18:50.817684+0000]]></contact:crDate>
<contact:upDate><![CDATA[2016-09-07T09:18:50.817714+0000]]></contact:upDate>
<contact:upID><![CDATA[mtrewoutdg]]></contact:upID>
</contact:infData>
</resData>
<extension>
<command-ext-contact:extContactInfData>
<command-ext-contact:property>
<command-ext-contact:registry><![CDATA[Dnsbe]]></command-ext-contact:registry>
<command-ext-contact:name><![CDATA[vat]]></command-ext-contact:name>
<command-ext-contact:value><![CDATA[1219884]]></command-ext-contact:value>
</command-ext-contact:property>
<command-ext-contact:property>
<command-ext-contact:registry><![CDATA[Dnsbe]]></command-ext-contact:registry>
<command-ext-contact:name><![CDATA[lang]]></command-ext-contact:name>
<command-ext-contact:value><![CDATA[nl]]></command-ext-contact:value>
</command-ext-contact:property>
</command-ext-contact:extContactInfData>
</extension>
<trID>
<svTRID>MTR_748312aa1fd705ce493fb69ee9ad61b64a7c3940</svTRID>
<clTRID>57cfdb7b574b2</clTRID>
</trID>
</response>
</epp>