Domain renew
Extends the registration term. The right answer to this command is not "it worked" but the new expiry date the server returns — see "Read the date, never compute it".
Request
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<renew>
<domain:renew xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com.ua</domain:name>
<domain:curExpDate>1971-01-01</domain:curExpDate>
<domain:period unit="y">2</domain:period>
</domain:renew>
</renew>
<clTRID>EXAMPLE-1-rnw-0001</clTRID>
</command>
</epp>
| Element | Rule |
|---|---|
curExpDate | must equal the domain's current expiry date, as a date with no time |
period | whole years. The resulting expiry may not exceed the zone's maximum horizon |
curExpDate is a concurrency check, not decoration. It is there so that two renewals racing each other cannot both apply: the second one finds a date that no longer matches and is refused with 2105. Read the current exDate with info immediately before renewing, and pass the date part of it.
Some zones do not accept a renewal too early. pp.ua accepts one no earlier than four months before the expiry date — the registry operator's rule, not ours. A renewal sent earlier is refused with 2306, and the refusal names the date from which one is accepted, so it can be scheduled rather than guessed. No other zone we serve states such a limit; the current periods of each zone are on the zones page (clause 13.5 of the Terms). The refusal happens before any funds are reserved: nothing is charged or held, and no command is sent to the registry.
Response
<response>
<result code="1000"><msg>Command completed successfully</msg></result>
<resData>
<domain:renData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com.ua</domain:name>
<domain:exDate>1973-01-01T00:00:00.000+03:00</domain:exDate>
</domain:renData>
</resData>
<trID>…</trID>
</response>
Read the date, never compute it
The exDate in the answer is what the name now has. Not the date you expected, not old + period.
They can differ. The registry's own grace handling can move it; a zone can round or cap it; a term that would pass the maximum horizon is refused rather than silently truncated — and the horizon is counted from today, not from the current expiry.
A client that stores its own arithmetic instead of the returned date drifts from the registry over time. You notice when its records say a year is left and the registry has already deleted the name.
When you can renew
Any time while the name is registered, and — in zones that have one — during the grace period after expiry, at the ordinary renewal price. Whether a zone has such a grace at all, and how long it is, is the zone's rule and is published per zone.
A name that has already been deleted is not renewed, it is restored, and that is a different command at a different price.
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 |
|---|---|
2004 | Fee currency must be UAH |
2004 | The agreed fee does not cover the actual price (350.00 UAH) |
2105 | curExpDate does not match the current expiry |
2304 | Domain status prohibits renewal |
2306 | Renewals are closed for this zone |
2306 | Renewals are closed for this zone (phase-out) |
2306 | This zone accepts a renewal no earlier than 4 month(s) before expiry — not before 2027-02-15 |
2307 | Zone is not served |
2400 | No channel for this domain |
Result codes
| Code | When |
|---|---|
1000 | renewed — read exDate |
2004 | the period is out of range for this zone |
2104 | your balance will not cover it — nothing done, nothing charged |
2105 | not eligible: curExpDate does not match, or the zone's rules forbid renewing now |
2303 | no such domain |
2304 | a status blocks it — clientRenewProhibited is yours to lift, serverRenewProhibited is not |
2306 | the resulting term would exceed the maximum the zone allows |
Notes
2105 usually means your copy of the expiry date is stale, not that the name cannot be renewed. Re-read it with info and send the command again with the date you just read.
A renewal that timed out is resolved by info, not by resending. Compare the exDate you see with the one you held: if it moved, the renewal applied.
Sending the same command again is safe: its curExpDate no longer matches the current date, so the server answers 2105. The dangerous move is the next one — seeing that 2105, reading the new date and sending a renewal with it. That is not a retry but a second renewal: a second term and a second charge.
Automatic renewal is the registry's, not yours. In zones where the registry renews an unrenewed name by itself at the end of the grace period, it invoices us for it, and we pass that on. If a customer is not keeping a name, delete it deliberately before that point rather than letting it lapse into a charge.
On this page