Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use filter option in InvoiceQueryRq

I am fetching the invoice details using InvoiceQueryRq. It fetch all the information from the quickbooks. But i need to fetch the data based on condition. How can i use filter option in InvoiceQueryRq?

like image 788
Golda Avatar asked Jan 31 '26 00:01

Golda


1 Answers

Below are a couple of examples from our QuickBooks integration wiki. We have a whole page dedicated to example qbXML requests:

Filtering by TxnID

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="8.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <InvoiceQueryRq requestID="2">
      <TxnID>2484-1263499231</TxnID>
    </InvoiceQueryRq>
  </QBXMLMsgsRq>
</QBXML>

Filtering by RefNumber

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="8.0"?>
<QBXML>
    <QBXMLMsgsRq onError="stopOnError">
        <InvoiceQueryRq requestID="2">
            <RefNumber>1234</RefNumber> <!-- put your invoice # here -->
        </InvoiceQueryRq>
    </QBXMLMsgsRq>
</QBXML>

For more examples you should refer to the QuickBooks OSR. The QuickBooks OSR shows the full query syntax for all qbXML requests you can send to QuickBooks:

  • https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html
like image 92
Keith Palmer Jr. Avatar answered Feb 03 '26 10:02

Keith Palmer Jr.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!