Syncing Reseller Accounts with Reseller Plans

Use the sync-subscription operation to roll reseller account settings back to values specified in an associated reseller plan. This operation is actual only for reseller accounts that were customized from their reseller plan.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet that syncs a subscription with a reseller plan includes the sync-subscription operation node:

<packet version="1.6.3.0">
<reseller>
   <sync-subscription>
   ...
   </sync-subscription>
</reseller>
</packet>

 

The sync-subscription node has the following graphical representation:

reseller-switch-subscription.gif

 

Response Packet Structure

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

webspace-sync-subscription-reps.gif

 

Samples

To sync a subscription with a reseller account, specify its ID or login name:

<packet version="1.6.3.0">
<reseller>
<sync-subscription>
      <filter>
          <id>9</id>
      </filter>
<sync-subscription>
</reseller>
</packet>

The response packet that syncs a reseller account (ID 9) looks as follows:

<packet version="1.6.3.0">
  <webspace>
    <sync-subscription>
      <result>
        <status>ok</status>
        <filter-id>9</filter-id>
        <id>9</id>
      </result>
    </sync-subscription>
  </webspace>
</packet>

To sync multiple reseller accounts, add either reseller IDs or login names to the filtering rule:

<packet version="1.6.3.0">
<reseller>
<sync-subscription>
      <filter>
          <id>1324</id>
          <id>1325</id>
      </filter>
</sync-subscription>
</reseller>
</packet>