AccountQuery qbXML example

Reads the chart of accounts.

qbXML AccountQueryRq, version 16.0
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="16.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <AccountQueryRq>
      <ActiveStatus>ActiveOnly</ActiveStatus>
    </AccountQueryRq>
  </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

  • Account queries have no iterator: the whole list comes back in one answer.
  • Looking a record up by ListID, FullName or TxnID that isn't there answers status 500 with severity Warn, not an error.

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}/accounts
?active_status=ActiveOnly

Every field AccountQuery takes is in Intuit's reference.

More requests

Accounting

All qbXML examples