Adding an Add-on Plan to a Subscription

Use the add-subscription operation to attach an add-on plan to a subscription.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet that adds an add-on plan to a subscription includes the add-subscription operation node:

<packet version="1.6.3.0">
<webspace>
   <add-subscription>
   ...
   </add-subscription>
</webspace>
</packet>

 

The add-subscription node (domain_input.xsd) has the following graphical representation:

Domain_PermissionDEscriptor

 

Response Packet Structure

The add-subscription node of the output XML packet is structured as follows:

webspace-add-subscription-reps.gif

 

Samples

The request packet that adds an add-on plan with GUID cc982f71-48c3-479d-bc7b-59b97547e092 to a subscription with ID 8 looks as follows:

<packet version ="1.6.3.0">
<webspace>
   <add-subscription>
      <filter>
         <id>8</id>
      </filter>
	   <plan-guid>cc982f71-48c3-479d-bc7b-59b97547e092</plan-guid>
   </add-subscription>
</webspace>
</packet>

Response (when you attach an add-on that requires Webmail and Horde):

<packet version="1.6.3.0">
  <webspace>
    <add-subscription>
      <result>
        <status>ok</status>
        <filter-id>8</filter-id>
        <id>8</id>
        <problems>Description           Current Requested Allowed 
Webmail (example.com) None    Horde IMP None</problems>
      </result>
    </add-subscription>
  </webspace>
</packet>