Switching Reseller Accounts to Different Reseller Plans

Use the switch-subscription operation to associate a reseller account with a different reseller plan.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet that switches a reseller account to a different reseller plan includes the switch-subscription operation node:

<packet>
<reseller>
   <switch-subscription>
   ...
   </switch-subscription>
</reseller>
</packet>

 

The switch-subscription node has the following graphical representation:

reseller-switch-subscription-rps.gif

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

 

Response Packet Structure

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

webspace-sync-subscription-reps.gif

 

Samples

The request packet that switches the reseller account with ID 5 to the plan with GUID cc982f71-48c3-479d-bc7b-59b97547e092 looks as follows:

<packet version ="1.6.3.0">
<reseller>
   <switch-subscription>
      <filter>
         <id>5</id>
      </filter>
	   <plan-guid>cc982f71-48c3-479d-bc7b-59b97547e092</plan-guid>
   </switch-subscription>
</reseller>
</packet>

Response:

<packet version="1.6.3.0">
  <reseller>
    <switch-subscription>
      <result>
        <status>ok</status>
        <filter-id>5</filter-id>
        <id>11</id>
      </result>
    </switch-subscription>
  </reseller>
</packet>