Including an App in a Reseller Account

The add-package operation is used to include certain apps in reseller accounts. In turn, reseller can include these apps in service plans.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet including a new app to a reseller account includes the add-package operation node:

<packet>
<reseller>
   <add-package>
   ...
   </add-package>
</reseller>
</packet>

 

The add-package node is presented by the ResellerApplicationInput type (reseller.xsd). Its graphical representation is as follows:

ResellerApplicationInput-add

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

 

Response Packet Structure

The add-package node of the response packet is structured as follows:

ResellerApplicationOutput-add

 

Samples

Including WordPress to a reseller account

A packet that includes an app package WordPress to the reseller account with ID 1234 looks as follows:

<packet>
<reseller>
<add-package>
   <filter>
      <id>1234</id>
   </filter>
   <package>
	   <name>name</name>
	   <value>WordPress</value>
	</package>
</add-package>
</reseller>
</packet>

Response:

<packet>
<reseller>
<add-package>
   <result>
      <status>ok</status>
      <filter-id>1234</filter-id>
      <id>1234</id>
   </result>
</add-package>
</reseller>
</packet>