InvoiceQuery qbXML example

Reads invoices changed since a date, with their lines, a page at a time.

qbXML InvoiceQueryRq, version 16.0
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="16.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <InvoiceQueryRq iterator="Start">
      <MaxReturned>100</MaxReturned>
      <ModifiedDateRangeFilter>
        <FromModifiedDate>2026-01-01T00:00:00-06:00</FromModifiedDate>
      </ModifiedDateRangeFilter>
      <IncludeLineItems>true</IncludeLineItems>
    </InvoiceQueryRq>
  </QBXMLMsgsRq>
</QBXML>
Open in the validator Check it against the qbXML 16.0 schema, edit it, and run it in your own QuickBooks.

Things to know

  • Page large results: iterator="Start" with MaxReturned on the first request, then iterator="Continue" with the iteratorID from the answer.
  • Line items are left out unless IncludeLineItems is true.
  • TimeModified is the company's local time with its standard-time offset all year. Send a record's TimeModified back as FromModifiedDate unchanged and the filter finds it.

The same request with QuBe Sync's API

QuBe Sync takes these parameters, writes the qbXML for you and delivers QuickBooks' answer to your webhook as JSON.

GET /api/v2/connections/{connection_id}/invoices
?include_line_items=true
&iterator=true
&max_returned=100
&modified_date_range_filter[from_modified_date]=2026-01-01T00:00:00-06:00

Every field InvoiceQuery takes is in Intuit's reference.

More requests

Customers and sales

All qbXML examples