<?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=Order-webs-planet</id>
		<title>Order-webs-planet - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Order-webs-planet"/>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Order-webs-planet&amp;action=history"/>
		<updated>2026-05-04T18:54:06Z</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=Order-webs-planet&amp;diff=1711&amp;oldid=prev</id>
		<title>Mike.robski: 1 revision: Release 98</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Order-webs-planet&amp;diff=1711&amp;oldid=prev"/>
				<updated>2014-09-15T13:51:37Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision: Release 98&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 13:51, 15 September 2014&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=Order-webs-planet&amp;diff=1710&amp;oldid=prev</id>
		<title>Mike.robski at 10:02, 15 September 2014</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Order-webs-planet&amp;diff=1710&amp;oldid=prev"/>
				<updated>2014-09-15T10:02:32Z</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;== Order a new WebsPlanet ==&lt;br /&gt;
&lt;br /&gt;
This example provides the steps to order a new webs planet product through the Hostway Ordering API.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Create a new order ==&lt;br /&gt;
Use [[Orders:POST|POST /orders]] to create a new order&lt;br /&gt;
&lt;br /&gt;
=== Request ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
POST /orders&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
&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 Created&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
Location : &amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/orders/00000143d407b34742ee26ae007f000000010001&lt;br /&gt;
Set-Cookie : OwnerId=09185e9b-2ea0-4bef-950e-fc9f8b89861f; Path=/&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;orderId&amp;quot;: &amp;quot;00000143d407b34742ee26ae007f000000010001&amp;quot;,&lt;br /&gt;
 &amp;quot;links&amp;quot;: [&lt;br /&gt;
  {&amp;quot;href&amp;quot;: &amp;quot;&amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/orders/&amp;quot;, &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;},&lt;br /&gt;
  {&amp;quot;href&amp;quot;: &amp;quot;&amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/orders/00000143d407b34742ee26ae007f000000010001&amp;quot;, &amp;quot;rel&amp;quot;: &amp;quot;item&amp;quot;}&lt;br /&gt;
 ]&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create a new acout for the order ==&lt;br /&gt;
Use [[Orders-orderId-account:PUT|PUT /orders/{order_id}/account]] to create an account or add an existing one to the order.&lt;br /&gt;
&lt;br /&gt;
=== Request ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
PUT /orders/00000143d407b34742ee26ae007f000000010001/account&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
Cookie: OwnerId=09185e9b-2ea0-4bef-950e-fc9f8b89861f; Path=/&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;currency&amp;quot;: &amp;quot;USD&amp;quot;,&lt;br /&gt;
 &amp;quot;language&amp;quot;: &amp;quot;en-US&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;
204 No Content&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Add a Websplanet product to the order ==&lt;br /&gt;
The websplanet product specification offerings can be determined using the Hostway [[Products|Product Catalog API]]. Then add a new websplanet product to the order by using &lt;br /&gt;
[[Orders-orderId-account-products:POST|POST /orders/{order_id}/account/products]].&lt;br /&gt;
&lt;br /&gt;
=== Request ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
POST /orders/00000143d407b34742ee26ae007f000000010001/account/products&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
Cookie: OwnerId=09185e9b-2ea0-4bef-950e-fc9f8b89861f; Path=/&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;offering&amp;quot;: &amp;quot;&amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/productSpecifications/core.plan.linux.webstart/offerings/USD-1&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 Created&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
Location : &amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/orders/00000143d407b34742ee26ae007f000000010001/account/products/00000143d407b725d9eb9a41007f000000010001&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Add a Webhosting service to the new product ==&lt;br /&gt;
A Websplanet service needs to be related to either a Windows or a Linux webhosting service. To do that, the webhosting service needs to be created first.&lt;br /&gt;
=== Request ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
POST /orders/00000143d407b34742ee26ae007f000000010001/account/products/00000143d407b725d9eb9a41007f000000010001/services&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
Cookie: OwnerId=09185e9b-2ea0-4bef-950e-fc9f8b89861f; Path=/&lt;br /&gt;
{&amp;quot;name&amp;quot;: &amp;quot;Websplanet&amp;quot;,&lt;br /&gt;
 &amp;quot;serviceSpecification&amp;quot;: &amp;quot;&amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/serviceSpecifications/core.webhosting.linux.5GB&amp;quot;, &lt;br /&gt;
&amp;quot;billingCycle&amp;quot;: 1}&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 Created&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
Location : &amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/orders/00000143d407b34742ee26ae007f000000010001/account/products/00000143d407b725d9eb9a41007f000000010001/services/00000143d407b34742ed9lker8007f000000010001&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Add the Webhosting service attributes==	&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
PUT /orders/00000143d407b34742ee26ae007f000000010001/account/products/00000143d407b725d9eb9a41007f000000010001/services/00000143d407b34742ed9lker8007f000000010001/attributes&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
Cookie: OwnerId=09185e9b-2ea0-4bef-950e-fc9f8b89861f; Path=/&lt;br /&gt;
&lt;br /&gt;
{&amp;quot;domain&amp;quot;: &amp;quot;ng-test-fitnesse-websplanet-20140505-0505.us&amp;quot;}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
== Add a Websplanet service to the new product ==&lt;br /&gt;
Please note that WebsPlanet can be added only as a child service to the webhosting service.&lt;br /&gt;
You have to specify webhosting service you want websplanet to be added to. &lt;br /&gt;
&lt;br /&gt;
Assuming you have a webhosting service in your order, you can add websplanet using &lt;br /&gt;
[[Orders-orderId-account-products:POST|POST /orders/{order_id}/account/products/{product_id}/services]].&lt;br /&gt;
The &amp;quot;relatedTo&amp;quot; attribute should contain the webhosting service's URL.&lt;br /&gt;
&lt;br /&gt;
=== Request ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
POST /orders/00000143d407b34742ee26ae007f000000010001/account/products/00000143d407b725d9eb9a41007f000000010001/services&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
Cookie: OwnerId=09185e9b-2ea0-4bef-950e-fc9f8b89861f; Path=/&lt;br /&gt;
{&amp;quot;name&amp;quot;: &amp;quot;Websplanet&amp;quot;,&lt;br /&gt;
 &amp;quot;serviceSpecification&amp;quot;: &amp;quot;&amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/serviceSpecifications/core.websplanet.1&amp;quot;, &lt;br /&gt;
&amp;quot;billingCycle&amp;quot;: 1, &lt;br /&gt;
&amp;quot;relatedTo&amp;quot;: [&amp;quot;&amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/orders/00000143d407b34742ee26ae007f000000010001/account/products/00000143d407b725d9eb9a41007f000000010001/services/00000143d407b34742ed9lker8007f000000010001&amp;quot;]}&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 Created&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
Location : &amp;lt;/nowiki&amp;gt;{{APIBaseURL}}&amp;lt;nowiki&amp;gt;/orders/00000143d407b34742ee26ae007f000000010001/account/products/00000143d407b725d9eb9a41007f000000010001/services/00000143d407bea7e2b84d37001f000000010001&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Add the WebsPlanet service attributes==&lt;br /&gt;
	&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
PUT /orders/00000143d407b34742ee26ae007f000000010001/account/products/00000143d407b725d9eb9a41007f000000010001/services/00000143d407bea7e2b84d37001f000000010001/attributes&lt;br /&gt;
Content-Type: application/json; charset=UTF-8&lt;br /&gt;
Cookie: OwnerId=09185e9b-2ea0-4bef-950e-fc9f8b89861f; Path=/&lt;br /&gt;
&lt;br /&gt;
{&amp;quot;domain&amp;quot;: &amp;quot;ng-test-fitnesse-websplanet-20140505-0505.us&amp;quot;, &lt;br /&gt;
 &amp;quot;email&amp;quot;:  &amp;quot;test@example.com&amp;quot;}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{disqus}}&lt;br /&gt;
[[Category:Hostway API]]&lt;br /&gt;
[[Category:Ordering API]]&lt;/div&gt;</summary>
		<author><name>Mike.robski</name></author>	</entry>

	</feed>