LedgerWire

Account · Query

simulated in sandbox

AccountQuery

Accounts make up the chart of accounts: banks, AR and AP, income, cost of goods sold and expenses. Every transaction line ultimately points at one.

qbXML request

AccountQueryRq
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <AccountQueryRq requestID="1">
      <MaxReturned>10</MaxReturned>
      <ActiveStatus>ActiveOnly</ActiveStatus>
      <FromModifiedDate>2026-10-01T00:00:00</FromModifiedDate>
    </AccountQueryRq>
  </QBXMLMsgsRq>
</QBXML>

JSON equivalent

GET /v1/accounts?limit=10&updatedAfter=2026-10-01
GET /v1/accounts?limit=10&updatedAfter=2026-10-01
curl
curl "https://ledgerwire.vibiz.app/v1/accounts?limit=10&updatedAfter=2026-10-01" \
  -H "Authorization: Bearer $LEDGERWIRE_KEY"
Sends this exact qbXML to the shared demo sandbox (simulated sample data).

qbXML response (from the sandbox seed data)

AccountQueryRs
<?xml version="1.0" ?>
<QBXML>
  <QBXMLMsgsRs>
    <AccountQueryRs requestID="1" statusCode="0" statusSeverity="Info" statusMessage="Status OK">
      <AccountRet>
        <ListID>80000001-1760311862</ListID>
        <TimeCreated>2025-10-12T23:31:02+00:00</TimeCreated>
        <TimeModified>2025-10-12T23:31:02+00:00</TimeModified>
        <EditSequence>1760311862</EditSequence>
        <Name>Checking</Name>
        <FullName>Checking</FullName>
        <IsActive>true</IsActive>
        <Sublevel>0</Sublevel>
        <AccountType>Bank</AccountType>
        <AccountNumber>1000</AccountNumber>
        <Balance>48210.37</Balance>
        <TotalBalance>48210.37</TotalBalance>
      </AccountRet>
    </AccountQueryRs>
  </QBXMLMsgsRs>
</QBXML>

FAQ

How do I page through AccountQuery results?

In qbXML, add iterator="Start" to AccountQueryRq with MaxReturned, then send iterator="Continue" with the iteratorID until iteratorRemainingCount is 0. With LedgerWire, GET /v1/accounts?limit=100 and follow nextCursor.

How do I fetch only accounts changed since my last sync?

Use FromModifiedDate inside AccountQueryRq, or updatedAfter=2026-10-01T00:00:00Z on the REST endpoint.

Why does AccountQuery return statusCode 1?

Status 1 is informational: "A query request did not find a matching object in QuickBooks". The request was valid and nothing matched the filters. LedgerWire returns an empty data array for it.

Sandbox fidelity

The LedgerWire sandbox simulates AccountQuery with QuickBooks rules: required fields, element names, refs that must exist (3140), unique names (3100), field lengths (3070) and EditSequence locking (3200). Tax calculation, custom fields and preferences are not simulated.

More Account messages

Other Query messages

Skip the XML: call GET /v1/accounts with JSON.

Get a free sandbox key