Domain create
Registers a name. It is the only command that both spends money and can finish later, so read Sessions and recovery before you put it in production.
Request
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<create>
<domain:create xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com.ua</domain:name>
<domain:period unit="y">1</domain:period>
<domain:ns>
<domain:hostObj>ns1.example.net</domain:hostObj>
<domain:hostObj>ns2.example.net</domain:hostObj>
</domain:ns>
<domain:registrant>EXAMPLE-1-C1</domain:registrant>
<domain:contact type="admin">EXAMPLE-1-C2</domain:contact>
<domain:contact type="tech">EXAMPLE-1-C3</domain:contact>
<domain:authInfo>
<domain:pw>Str0ng-Auth!</domain:pw>
</domain:authInfo>
</domain:create>
</create>
<clTRID>EXAMPLE-1-crd-0001</clTRID>
</command>
</epp>
| Element | Rule |
|---|---|
name | the fully-qualified name |
period | whole years, from 1 to the zone's maximum. Optional — one year if omitted |
ns | none (the name is then inactive, which is legal), or at least the zone's minimum |
registrant | required |
contact | the roles the zone requires — not every zone wants all three. If you send no role at all, every required one is filled with the registrant's contact — see below |
authInfo | the transfer code. Required on this dialect: RFC 5731's schema declares the element with no minOccurs, so a frame without it is answered 2001 before anything else is read. On the uaepp dialect it is optional — domain-1.1.xsd marks it minOccurs="0" — and if you leave it out there the registry issues a code itself, so a name never exists without one. A value that does not meet the zone's strength rules is refused 2306 |
The contacts must exist before you reference them: create them first with contact create.
One contact for the whole name is enough. In zones that want an administrative, a technical and sometimes a billing contact, an application carrying only a registrant is not refused: every required role is filled with the same contact as the registrant. What is wanted is a set of references, not different people, and the data in them has to match what the registrant supplied — their own contact satisfies that by construction. If you send some roles and miss a required one, the application is refused 2003 and the message names the role: there you are managing the roles yourself, and standing in for you would hide your mistake. Which set a zone wants is published per zone.
Two ways to give the name servers
The example above references host objects, which is the form most clients use: the host exists in the registry and the domain points at it. The other form carries the name and its addresses inline, and this server accepts it too:
<domain:ns>
<domain:hostAttr>
<domain:hostName>ns1.example.com.ua</domain:hostName>
<domain:hostAddr ip="v4">203.0.113.10</domain:hostAddr>
<domain:hostAddr ip="v6">2001:db8::10</domain:hostAddr>
</domain:hostAttr>
</domain:ns>
Use whichever your client already speaks. With hostAttr you do not create the host first — the addresses travel with the domain. The rule from host create still decides whether addresses are wanted at all: a name inside a zone we serve needs them, a name under somebody else’s domain must not carry them.
Do not mix the two forms in one <domain:ns> — RFC 5731 makes it a choice, and a frame that contains both is refused as a syntax error.
Response
<response>
<result code="1000"><msg>Command completed successfully</msg></result>
<resData>
<domain:creData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com.ua</domain:name>
<domain:crDate>1970-01-01T00:00:00.000+03:00</domain:crDate>
<domain:exDate>1971-01-01T00:00:00.000+03:00</domain:exDate>
</domain:creData>
</resData>
<trID>…</trID>
</response>
exDate in the answer is the fact. Store it. Do not compute "today plus the period" — the registry decides the expiry date, and in some zones it does not land where you would expect.
What it cost
If you declared urn:ietf:params:xml:ns:epp:fee-1.0, you can add a <fee:create> to the command — the amount you agree to pay. The answer then carries the amount actually charged.
<extension>
<fee:create xmlns:fee="urn:ietf:params:xml:ns:epp:fee-1.0">
<fee:currency>UAH</fee:currency>
<fee:fee>350.00</fee:fee>
</fee:create>
</extension>
<response>
<result code="1000"><msg>Command completed successfully</msg></result>
<resData>
<domain:creData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com.ua</domain:name>
<domain:crDate>2026-11-05T09:30:00.000+02:00</domain:crDate>
<domain:exDate>2027-11-05T09:30:00.000+02:00</domain:exDate>
</domain:creData>
</resData>
<extension>
<fee:creData xmlns:fee="urn:ietf:params:xml:ns:epp:fee-1.0">
<fee:currency>UAH</fee:currency>
<fee:period unit="y">1</fee:period>
<fee:fee>350.00</fee:fee>
</fee:creData>
</extension>
<trID>
<clTRID>EXAMPLE-1-cre-0007</clTRID>
<svTRID>NSPC-20261105093000-4A7B2E915C6F</svTRID>
</trID>
</response>
The agreed amount is a ceiling, not a payment. If the real price turns out to be higher than the one you named, the registration does not happen: the server answers 2004 and names the real price in the message. Nothing was charged and nothing was registered. That is what stops your customer being billed an amount you did not expect because your own price list had gone stale.
Naming more than the price is allowed — you are charged what the operation costs, not what you agreed to. To learn the price beforehand, ask check.
The <fee:creData> block appears only when you sent a <fee:create>. Without it the answer says nothing about money, and you have to read the balance separately — see Balance and fees.
When the answer is 1001
The registration is under way at the registry and has not finished. The name is held under your account while it resolves, so nobody else can take it and a check will report it unavailable.
Do not resend. Do not report success to your customer. The outcome — registered, or refused — arrives as a poll message, and that is the only place it is reported. See Message queue.
With DNSSEC
Add a <secDNS:create> block in <extension>. The zone must support DNSSEC, and the DS records must satisfy the registry's rules — DNSSEC has the detail, including which algorithms are accepted and what happens when the DS does not match the published DNSKEY.
Second-level .ua: the licence
Registering directly under .ua — the second level — requires a trademark or licence number. It travels in our own extension, as a token of up to 50 characters:
<extension>
<nspc:create xmlns:nspc="http://namespace.com.ua/epp/registry-1.0">
<nspc:license>TM-UA-123456</nspc:license>
</nspc:create>
</extension>
A create that needs a licence and omits it is refused 2003; a licence sent for a zone that does not use one is refused 2306. Zones below the second level — com.ua, kyiv.ua and the rest — need none.
The number alone is not enough. The registrant gives the documents to you, not to the registry, so collecting and keeping them is the registrar’s obligation under the zone’s rules. We pass the application to the registry as sent, and a 1001 here is the registry's own assessment: the term for it is fourteen days. But until we hold the documents the name is not delegated — we place clientHold, and it is not in DNS, although the registration has been performed, its term is running and the operation has been charged. As soon as the documents arrive the block lifts by itself, without a command from you; both the block and its lifting reach you as a message on the poll queue. The licence comes back in <nspc:infData> on info to the sponsor, and can be changed later with update.
From 1 December 2026 a change of registrant is yours to check. Where the name stays and the registrant changes, the rules make the registrar that holds the name verify that the new registrant’s rights match it. The registry does not repeat that check.
Rights in a mark running out does not cost the name. Renewal and restoration of a second-level .ua name happen irrespective of how long the rights in the mark still have to run, so an expired certificate is not a reason to tell a customer their name is lost.
A refused request
The reason is the <msg>, and lang says which language it is in — the session language where we have a translation, English otherwise. There is no <resData>: nothing happened.
<response>
<result code="2306">
<msg lang="en">The name is reserved and not available for registration</msg>
</result>
<trID>
<clTRID>EXAMPLE-1-crd-0001</clTRID>
<svTRID>NSPC-19700101000000-A1B2C3D4E5F6</svTRID>
</trID>
</response>
What the deferred outcome looks like
A create answered 1001 is reported once, by a message in the queue, and the message is a panData. It went through:
<resData>
<domain:panData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name paResult="1">example.com.ua</domain:name>
<domain:paTRID>
<clTRID>EXAMPLE-1-crd-0001</clTRID>
<svTRID>NSPC-19700101000000-A1B2C3D4E5F6</svTRID>
</domain:paTRID>
<domain:paDate>1970-01-02T09:30:00.000+03:00</domain:paDate>
</domain:panData>
</resData>
It did not:
<resData>
<domain:panData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name paResult="0">example.com.ua</domain:name>
<domain:paTRID>
<clTRID>EXAMPLE-1-crd-0001</clTRID>
<svTRID>NSPC-19700101000000-A1B2C3D4E5F6</svTRID>
</domain:paTRID>
<domain:paDate>1970-01-02T09:30:00.000+03:00</domain:paDate>
</domain:panData>
</resData>
paResult is the whole answer: 1 registered, 0 refused. paTRID carries your own clTRID from the original command together with the svTRID we answered 1001 with, which is how an outcome arriving days later is tied to the order that caused it. A refusal costs nothing: nothing was registered and nothing was charged.
For a second-level .ua name the usual grounds for paResult="0" are the trademark: no documents supplied, a name that does not match the mark, a registrant who is not its holder, or a mark whose term has ended.
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 |
2003 | A registrant is required |
2003 | License is required for this zone |
2004 | Fee currency must be UAH |
2004 | The agreed fee does not cover the actual price (350.00 UAH) |
2004 | secDNS keyData unsupported algorithm |
2004 | secDNS keyTag out of range (0-65535) |
2004 | secDNS unsupported algorithm |
2004 | secDNS unsupported digestType (use 2=SHA-256 or 4=SHA-384) |
2005 | Country code must be 2 letters |
2005 | Invalid domain name |
2005 | Invalid email address |
2005 | License must be 1-50 alphanumeric characters |
2005 | secDNS digest length does not match digestType |
2005 | secDNS keyData pubKey must be base64 |
2005 | secDNS: at least one dsData or keyData record is required |
2005 | secDNS: use either dsData or keyData, not both |
2201 | Contract has expired; new registrations are closed |
2306 | At most 3 street lines |
2306 | DNSSEC is not supported for this zone |
2306 | License is not accepted for this zone |
2306 | No active registration channel for the zone |
2306 | The name is reserved and not available for registration |
2306 | Zone is closed for new registrations |
2306 | secDNS keyData flags must be 256 (ZSK) or 257 (KSK) |
2306 | secDNS keyData protocol must be 3 |
2306 | secDNS: at most 6 DS records |
2306 | secDNS: duplicate DS record |
2306 | secDNS: duplicate key record |
2306 | secDNS: this registry accepts DS records only (keyData is not supported) |
2307 | Zone is not served |
Result codes
| Code | When |
|---|---|
1000 | registered |
1001 | accepted, finishing at the registry — resolve from poll |
2003 | a required element is missing |
2004 | the period is out of range |
2005 | the name, or something in the frame, is malformed |
2104 | your balance will not cover it — nothing was done, nothing charged |
2302 | the name already exists — possibly because of your own earlier attempt |
2303 | a contact you referenced does not exist |
2306 | policy: a term the zone does not allow, a weak authInfo, DNSSEC where there is none |
2307 | we do not serve that zone |
Notes
2302 after a timeout is ambiguous, and info resolves it. It means the name exists; it does not say who owns it. <info> on the name tells you whether the clID is yours.
An undelegated name is fine. Creating without <domain:ns> gives you a name with status inactive. Delegate it later with update.
The charge happens on success only. A 2xxx leaves your balance untouched.
On this page