Subreg EPP server documentation
[All Commands]

Create contact

Creates new contact object and returns its new generated id. Contact then can be used as registrant, admin, tech or billing contact in domain <create> and <update> requests. Fields name, street, city, cc, pc, voice and email are mandatory. Note, field id specified in request is not used by the server. Please save id returned in the response instead.

Input fields

  • postalInfo-name - first and last name of the person or company (required)
  • postalInfo-org - organisation, company
  • postalInfo-addr-street - street address (required)
  • postalInfo-addr-city - city (required)
  • postalInfo-addr-sp - state code
  • postalInfo-addr-pc - postal code (required)
  • postalInfo-addr-cc - country code, ISO format (required)
  • voice - phone number in format +1.234567890 (required)
  • fax - fax number in format +1.234567890
  • email - email address (required)
  • param - any other optional specific parameter, currently supported for CZ: regid (NIC ID to assign for this contact), notify_email (email to send notifications to), vat (VAT number), ident_type (op,passport,mpsv,ico,birthday), ident_number, hidden (which elements to hide from public - accepted voice, fax, email, vat, ident, notify_email)
  • force - 0/1 whether to create new contact (duplicate) even if this contact already exists

Output fields

  • id - identificator (handle) of newly created contact (required)
  • crDate - creation date (current date and time) (required)

Example


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
 <command>
  <create>
   <contact:create xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
    <contact:postalInfo type="int">
     <contact:name>John Doe</contact:name>
     <contact:org>Example Inc.</contact:org>
     <contact:addr>
      <contact:street>123 Example Dr.</contact:street>
      <contact:city>Dulles</contact:city>
      <contact:sp>VA</contact:sp>
      <contact:pc>20166-6503</contact:pc>
      <contact:cc>US</contact:cc>
     </contact:addr>
    </contact:postalInfo>
    <contact:voice>+1.7035555555</contact:voice>
    <contact:fax>+1.7035555556</contact:fax>
    <contact:email>jdoe@example.com</contact:email>
   </contact:create>
  </create>
  <extension>
   <subreg:create xmlns:subreg="http://www.subreg.cz/epp/subreg-1.0">
    <subreg:param name="regid">ANY-CZNIC-CONTACT-ID</subreg:param>
    <subreg:param name="notify_email">notifymail@example.com</subreg:param>
    <subreg:force>0</subreg:force>
   </subreg:create>
  </extension>
  <clTRID>SUBREG20120218T005925Z817</clTRID>
 </command>
</epp>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
  <response>
   <result code="1000">
    <msg lang="en">Command completed successfully</msg>
   </result>
   <resData>
    <contact:creData xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
     <contact:id>G-000249</contact:id>
     <contact:crDate>2012-02-18T00:59:25.0Z</contact:crDate>
    </contact:creData>
   </resData>
   <trID>
    <clTRID>SUBREG20120218T005925Z817</clTRID>
    <svTRID>SUBREG20120218T005925Z924</svTRID>
   </trID>
  </response>
</epp>

Subreg EPP server documentation - version 1.0