Contact create
Creates a contact. Domains cannot be registered without one, so this is usually the first write a new integration makes.
Request
<?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:id>EXAMPLE-1-C1</contact:id>
<contact:postalInfo type="int">
<contact:name>Ivan Petrenko</contact:name>
<contact:org>Pryklad LLC</contact:org>
<contact:addr>
<contact:street>vul. Khreshchatyk 1</contact:street>
<contact:city>Kyiv</contact:city>
<contact:pc>01001</contact:pc>
<contact:cc>UA</contact:cc>
</contact:addr>
</contact:postalInfo>
<contact:postalInfo type="loc">
<contact:name>Іван Петренко</contact:name>
<contact:org>ТОВ «Приклад»</contact:org>
<contact:addr>
<contact:street>вул. Хрещатик 1</contact:street>
<contact:city>Київ</contact:city>
<contact:pc>01001</contact:pc>
<contact:cc>UA</contact:cc>
</contact:addr>
</contact:postalInfo>
<contact:voice>+380.441234567</contact:voice>
<contact:email>ivan@example.com.ua</contact:email>
<contact:authInfo><contact:pw>Str0ng-Auth!</contact:pw></contact:authInfo>
</contact:create>
</create>
<clTRID>EXAMPLE-1-ccr-0001</clTRID>
</command>
</epp>
| Element | Rule |
|---|---|
id | yours to choose, unique registry-wide, 3–16 characters |
postalInfo | at least one block. int must be ASCII; loc may be Cyrillic |
voice / fax | +CC.NNNN — the dot is part of the format, not a typo |
email | required |
authInfo | the contact's own transfer code |
Send both postal forms when you have both. Nothing is discarded, and a registry that keeps only one picks the right one for itself.
Letting the registry choose the id
Send the reserved value autonic instead of an id and one is generated for you:
<contact:id>autonic</contact:id>
<resData>
<contact:creData xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
<contact:id>C4051729384-NSPC</contact:id>
<contact:crDate>1970-01-01T00:00:00.000+03:00</contact:crDate>
</contact:creData>
</resData>
The generated id appears only in that answer. Store it before you do anything else — there is no second way to find out what it was.
The reserved word is never stored as a real id, so it stays available to everyone: repeating the request always produces a new id and never 2302. The spelling autonic-cunic means the same thing. A generated id looks like C4051729384-NSPC: the letter C, ten digits and the registry suffix — 16 characters, which is the bound clIDType sets. An id of that shape may not be sent by you: in contact:create it is refused 2306, because that is what the registry's own minting looks like.
What the server refuses, in its own words
Each refusal arrives as a result code and a sentence in <result><msg>, in the shape Commands and responses shows. The sentence is translated into the language you chose at login where a translation exists, and the lang attribute says which language you are being given. Branch on the code, never on the sentence — the code is the contract, the wording is not.
| Code | What the message says |
|---|---|
2003 | A postal address (contact:postalInfo) is required |
2005 | Contact id must be 3-16 chars: letters, digits, "-" |
2005 | Country code must be 2 letters |
2005 | Invalid email address |
2306 | An operator may show contact data only together with the evidence of consent to its publication |
2306 | At most 3 street lines |
2306 | That contact id shape is reserved for ids this registry mints; send " |
2400 | The consent to publication could not be recorded, so nothing was changed; retry the command |
Result codes
| Code | When |
|---|---|
1000 | created |
2003 | no postalInfo, or no email |
2005 | Cyrillic in an int block, a malformed e-mail, or a phone number not in +CC.NNNN |
2302 | that id is taken — possibly by another registrar |
2306 | policy, most often a transfer code that does not meet the zone's strength rules |
Notes
2005 on a create is almost always the int block. Latin only — no і, no є, no ’. Put the Ukrainian text in the loc block, which is what it is for.
Do not share one contact across unrelated customers. It is tempting and it is wrong: the registrant is the legal owner of the name, and an update made for one customer rewrites the registration data of every domain that references it.
On this page