Filtering Issues

Filtering is the way a request XML packet indicates the object (one or several reseller templates) to which an operation is to be applied. Parameters nested in the filter node are called filtering rule.

The filter node is presented by the ResellerTemplateFilterType complex type (reseller_template.xsd). This data type is structured as follows:

 

A reseller template can be filtered by either the id node or the name node. The same is true if several reseller accounts are filtered by their IDs, or names with one filter node. Using different nodes within the same filter node is prohibited.

To apply requested operation to all reseller templates, use the all node. For example, a packet that retrieves the information on all reseller accounts looks as follows:

<packet version="1.6.0.0">
<reseller-template>
<get>
   <filter>
      <all/>
   </filter>
</get>
</reseller-template>
</packet>

Note: The blank (<filter/>) filter node is deprecated.