Creating a Copy of a Reseller Plan

The duplicate operation is used to create a copy of the specified reseller plan.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet creating a copy of the specified reseller plan includes the duplicate operation node:

<packet>
<reseller-plan>
   <duplicate>
   ...
   </duplicate>
</reseller-plan>
</packet>

The duplicate node is presented by type ResellerTemplateDuplicateInputType (reseller_template.xsd). Its graphical representation is as follows:

duplicate-reseller

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

 

Response Packet Structure

The duplicate node of the response packet is structured as follows:

duplicate-reseller-output

 

 

Samples

This packet creates the copy of the reseller plan Default Reseller and assigns the name Plan copy to the copy.

<packet>
<reseller-plan>
   <duplicate>
      <name>Default Reseller</name>
      <duplicate-name>Plan copy</duplicate-name>
   </duplicate>
</reseller-plan>
</packet>

Response:

<packet>
  <reseller-plan>
    <duplicate>
      <result>
        <status>ok</status>
        <id>20</id>
        <guid>5dc5a4d7-7449-127f-f694-a0233af4e09f</guid>
      </result>
    </duplicate>
  </reseller-plan>
</packet>