0

When I add an Invoice to Quickbooks with QBXML I use <InvoiceLineAdd> to add invoice lines. How do I get the invoice lines for an invoice when I am doing InvoiceQuery?

Tyler
  • 3,713
  • 6
  • 37
  • 63

1 Answers1

1

The IncludeLineItems tag is what you're looking for. For example:

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <InvoiceQueryRq>

      <RefNumber>ABC123</RefNumber>

      <IncludeLineItems>true</IncludeLineItems>
      <IncludeLinkedTxns>true</IncludeLinkedTxns>
    
    </InvoiceQueryRq>
  </QBXMLMsgsRq>
</QBXML>

Keith Palmer Jr.
  • 27,666
  • 16
  • 68
  • 105