title: Determining parent of sub-customer through IDS
body: <p>I'm syncing data with QBOE using the IDS API V2. I can't figure out how to determine if a customer is a sub-customer. if the <code>Bill With Parent</code> happens to be true, then it's a safe bet, but that's not a guarantee. It also doesn't include the parent id which is needed.</p>
  
  <p>The output of a nested customer is looking like this. Do I need to query the server differently?</p>
  
  <pre><code>&lt;Customer xmlns="http://www.intuit.com/sb/cdm/v2" xmlns:qbp="http://www.intuit.com/sb/cdm/qbopayroll/v1" xmlns:qbo="http://www.intuit.com/sb/cdm/qbo"&gt;
    &lt;Id idDomain="QBO"&gt;88&lt;/Id&gt;
    &lt;SyncToken&gt;0&lt;/SyncToken&gt;
    &lt;MetaData&gt;
      &lt;CreateTime&gt;2013-06-20T17:38:22-07:00&lt;/CreateTime&gt;
      &lt;LastUpdatedTime&gt;2013-06-20T17:38:22-07:00&lt;/LastUpdatedTime&gt;
    &lt;/MetaData&gt;
    &lt;Name&gt;sub client&lt;/Name&gt;
    &lt;Phone&gt;
      &lt;DeviceType&gt;Primary&lt;/DeviceType&gt;
      &lt;FreeFormNumber&gt;123-4566&lt;/FreeFormNumber&gt;
    &lt;/Phone&gt;
    &lt;WebSite /&gt;
    &lt;Email&gt;
      &lt;Address&gt;tsdsf@fasdf.com&lt;/Address&gt;
    &lt;/Email&gt;
    &lt;GivenName&gt;sub&lt;/GivenName&gt;
    &lt;FamilyName&gt;client&lt;/FamilyName&gt;
    &lt;CustomField xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StringTypeCustomField"&gt;
      &lt;DefinitionId&gt;Preferred Delivery Method&lt;/DefinitionId&gt;
      &lt;Value&gt;EMAIL&lt;/Value&gt;
    &lt;/CustomField&gt;
    &lt;CustomField xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StringTypeCustomField"&gt;
      &lt;DefinitionId&gt;Resale Number&lt;/DefinitionId&gt;
    &lt;/CustomField&gt;
    &lt;CustomField xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BooleanTypeCustomField"&gt;
      &lt;DefinitionId&gt;Bill With Parent&lt;/DefinitionId&gt;
      &lt;Value&gt;true&lt;/Value&gt;
    &lt;/CustomField&gt;
    &lt;ShowAs&gt;sub client&lt;/ShowAs&gt;
    &lt;OpenBalance&gt;
      &lt;Amount&gt;0&lt;/Amount&gt;
    &lt;/OpenBalance&gt;
  &lt;/Customer&gt;
  </code></pre>