<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docs.hostway.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Domains-domainName-renew%3APOST</id>
		<title>Domains-domainName-renew:POST - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Domains-domainName-renew%3APOST"/>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Domains-domainName-renew:POST&amp;action=history"/>
		<updated>2026-05-13T23:42:33Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Domains-domainName-renew:POST&amp;diff=999&amp;oldid=prev</id>
		<title>Mike.robski: 1 revision: Release 87</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Domains-domainName-renew:POST&amp;diff=999&amp;oldid=prev"/>
				<updated>2013-11-15T21:22:16Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision: Release 87&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:22, 15 November 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mike.robski</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Domains-domainName-renew:POST&amp;diff=998&amp;oldid=prev</id>
		<title>Philip.rittscher at 22:24, 5 June 2013</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Domains-domainName-renew:POST&amp;diff=998&amp;oldid=prev"/>
				<updated>2013-06-05T22:24:28Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= POST /domains/''{domainName}''/renew =&lt;br /&gt;
Renew a domain for a specified registration period.&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&amp;lt;code&amp;gt;POST /domains/''{domainName}''/renew&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== URI Parameters ===&lt;br /&gt;
; domainName - string&lt;br /&gt;
: The domain name to renew. Domain name is case insensitive.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Request Headers ===&lt;br /&gt;
; Content-Type&lt;br /&gt;
: Required. Set this header to &amp;lt;code&amp;gt;application/json; charset=UTF-8&amp;lt;/code&amp;gt;&lt;br /&gt;
; Authorization&lt;br /&gt;
: Required.&lt;br /&gt;
&lt;br /&gt;
=== Request Body ===&lt;br /&gt;
'''Request Body for renewing a domain'''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;term&amp;quot;: &amp;quot;{term}&amp;quot;,&lt;br /&gt;
   &amp;quot;currentExpireDate&amp;quot;: &amp;quot;{expireDate}&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Request Parameters ====&lt;br /&gt;
;term - integer&lt;br /&gt;
: Required. The number of years to add to the registration term. This amount must match one of the available cycles for renewing a domain. For example, if the [[pricing|pricing]] call shows that a domain has available cycles of 1 year, 5 and 10 this means a domain may not be renewed for 3 years, since that is not an available term for renewal. A domain cannot be renewed beyond its maximum  registration term. Therefore if the max registration term is 10 years and a domain expires in 5 days, it cannot be renewed for 10 years, since this would mean the new term would be 10 years and 5 days into the future. Only a domain that is already expired can be renewed for its max registration term. &lt;br /&gt;
&lt;br /&gt;
; expireDate - date&lt;br /&gt;
: The current expiration date of the domain is required to prove that the renewal request is unique and is not a duplicate renewal that has already been processed. If the given expireDate does not match the current expiration date of the domain, the renewal request is rejected. Use [[domains-domainName-details:GET|the domain info command]] to get the expireDate of the domains. The format for the date is yyyy-mm-dd&lt;br /&gt;
&lt;br /&gt;
== Response ==&lt;br /&gt;
&lt;br /&gt;
=== Status Code ===&lt;br /&gt;
;201 Accepted&lt;br /&gt;
: The domain renewal order has been submitted.&lt;br /&gt;
&lt;br /&gt;
;400 Bad Request&lt;br /&gt;
: If the given data is not acceptable. The domain name may be invalid if it includes parts of the URL like 'http://'. If the registration term is not not a supported registration term for the domain, or if the expire date is in an invalid format. This error is also invoked if any of the required parameters are missing from the request.&lt;br /&gt;
&lt;br /&gt;
;403 - Not authorized &lt;br /&gt;
: The domain name does not belong in the account of the customer who is attempting to renew the domain. Only the account holder may renew the domain.&lt;br /&gt;
&lt;br /&gt;
;404 - Not found&lt;br /&gt;
: The domain name does not exist or is in a closed or suspended state and cannot be renewed.&lt;br /&gt;
&lt;br /&gt;
;409 - Conflict&lt;br /&gt;
: When the registration term exceeds the maximum registration period, or the current expiration date supplied in the request does not match the expire date of the domain.&lt;br /&gt;
&lt;br /&gt;
=== Response Body ===&lt;br /&gt;
'''Response Body for renewing a domain'''&lt;br /&gt;
None&lt;br /&gt;
== Example of ordering domain renewal. ==&lt;br /&gt;
'''Request'''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
POST /domains/ng-test-fitnesse-shortcut-20130412-0940.com/renew&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
Authorization: Basic ...&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;term&amp;quot;: &amp;quot;1&amp;quot;,&lt;br /&gt;
   &amp;quot;currentExpireDate&amp;quot;: &amp;quot;2013-09-21&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Response'''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
201 Accepted&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Domain Name Registration|Domain Name Registration API]]&lt;br /&gt;
* [[Common Features]]&lt;br /&gt;
&lt;br /&gt;
{{disqus}}&lt;br /&gt;
[[Category:Hostway API]]&lt;br /&gt;
[[Category:Domain Name Registration API]]&lt;/div&gt;</summary>
		<author><name>Philip.rittscher</name></author>	</entry>

	</feed>