title: QBXML - How do I go about adding brand new items on the fly when i modify an Invoice using InvoiceModRq?
body: <pre><code>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;?qbxml version="13.0"?&gt;&lt;QBXML&gt;
      &lt;QBXMLMsgsRq onError="stopOnError"&gt;
          &lt;InvoiceModRq&gt;
              &lt;InvoiceMod&gt;
                  &lt;TxnID&gt;983C-1639586336&lt;/TxnID&gt;     
                  &lt;EditSequence&gt;1639586895&lt;/EditSequence&gt;    
                  &lt;RefNumber&gt;308_17&lt;/RefNumber&gt;        
                  &lt;Other&gt;INVU&lt;/Other&gt;    
                  &lt;InvoiceLineMod&gt;
                       &lt;TxnLineID&gt;-1&lt;/TxnLineID&gt;          
                          &lt;ItemRef&gt;
                             &lt;FullName&gt;MP3-C &lt;/FullName&gt;
                        &lt;/ItemRef&gt;          
                          &lt;Desc&gt;Harley Davidson 1950 80hp bike &lt;/Desc&gt;         
                           &lt;Quantity&gt;1.00&lt;/Quantity&gt;         
                           &lt;Amount&gt;5.00&lt;/Amount&gt;     
                           &lt;Other1&gt;308_17&lt;/Other1&gt;          
                            &lt;Other2&gt;13041&lt;/Other2&gt;
                              &lt;/InvoiceLineMod&gt;
                            &lt;/InvoiceMod&gt;
                          &lt;/InvoiceModRq&gt;
                        &lt;/QBXMLMsgsRq&gt;
                      &lt;/QBXML&gt;
  </code></pre>
  
  <p>At the company where I work, we have the following technologies in Dev environment - company's own C# web application called companyABCDevapplication - installation of Quick Books Web Connector - installation of Quick books Quickbooks Desktop 2017 Premier Trial Version</p>
  
  <p>I've been tasked with creating an interfacing Web service that will be invoked by a Quick Books Web Connector Installation to communicate with our companyABCDevapplication</p>
  
  <p>Here are the technologies being used for local development:</p>
  
  <ul>
  <li><p>Intuit Quickbooks Desktop 2017 Premier Trial Version</p></li>
  <li><p>Intuit QuickBooks Web Connector Version 2.2.0.71</p></li>
  <li><p>Microsoft Visual Studio Enterprise 2015</p></li>
  <li><p>Version 14.0.25431.01 Update 3</p></li>
  <li><p>Microsoft .NET FrameworkVersion 4.6.01055</p></li>
  </ul>
  
  <p>Unfortunately, when I send the XML shown at the top of this post to Quickbooks Web connector, I get the following error:</p>
  
  <pre><code>&lt;?xml version=\"1.0\" ?&gt;&lt;QBXML&gt;
    &lt;QBXMLMsgsRs&gt;
      &lt;InvoiceModRs statusCode=\"3140\" statusSeverity=\"Error\" statusMessage=\"There is an invalid reference to QuickBooks Item &amp;quot;MP3-C&amp;quot; in the Invoice. \" /&gt;
    &lt;/QBXMLMsgsRs&gt;
  &lt;/QBXML&gt;
  </code></pre>
  
  <p>I wanted to modify an Invoice withOut worrying about whether the ItemRef in questionis already known by Quickbooks.  I basically want to new Item that have Not been entered into Quickbooks by using ItemInventoryAdd tags or ItemNonInventoryAdd tags.  How do I go about adding brand new items on the fly when i modify an Invoice using InvoiceModRq?</p>