Adding Application to Reseller Plan

The add-package operation is used to add applications to reseller plans.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet adding a new application to a reseller plan includes the add-package operation node:

<packet version="1.6.3.1">
<reseller-plan>
   <add-package>
   ...
   </add-package>
</reseller-plan>
</packet>

 

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

ResellerPlanApplicationInput-add

 

Response Packet Structure

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

ResellerPlanApplicationOutput-add

 

Samples

A packet that adds an application package WordPress to the reseller plan with ID 1234 looks as follows:

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

Response:

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

 

Negative response from the server looks as follows:

<packet>
<reseller-plan>
<add-package>
   <result>
      <status>error</status>
      <errcode>1023</errcode>
      <errtext>Operation failed.</errtext>
      <filter-id>1234</filter-id>
      <id>1234</id>
   </result>
</add-package>
</reseller-plan>
</packet>