SalesReceiptQuery qbXML example

Reads sales receipts dated in a range, with their lines.

qbXML SalesReceiptQueryRq, version 16.0
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="16.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <SalesReceiptQueryRq iterator="Start">
      <MaxReturned>100</MaxReturned>
      <TxnDateRangeFilter>
        <FromTxnDate>2026-01-01</FromTxnDate>
        <ToTxnDate>2026-01-31</ToTxnDate>
      </TxnDateRangeFilter>
      <IncludeLineItems>true</IncludeLineItems>
    </SalesReceiptQueryRq>
  </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.

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}/sales-receipts
?include_line_items=true
&iterator=true
&max_returned=100
&txn_date_range_filter[from_txn_date]=2026-01-01
&txn_date_range_filter[to_txn_date]=2026-01-31

Every field SalesReceiptQuery takes is in Intuit's reference.

More requests

Customers and sales

All qbXML examples