LedgerWire

SalesReceipt · Query

simulated in sandbox

SalesReceiptQuery

Sales receipts record a sale paid on the spot (cash, card or check), so nothing goes to Accounts Receivable. E-commerce and POS syncs use them most.

qbXML request

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

JSON equivalent

GET /v1/sales-receipts?limit=10&updatedAfter=2026-10-01
GET /v1/sales-receipts?limit=10&updatedAfter=2026-10-01
curl
curl "https://ledgerwire.vibiz.app/v1/sales-receipts?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)

SalesReceiptQueryRs
<?xml version="1.0" ?>
<QBXML>
  <QBXMLMsgsRs>
    <SalesReceiptQueryRs requestID="1" statusCode="0" statusSeverity="Info" statusMessage="Status OK">
      <SalesReceiptRet>
        <TxnID>2F1-1783380662</TxnID>
        <TimeCreated>2026-07-06T23:31:02+00:00</TimeCreated>
        <TimeModified>2026-07-06T23:31:02+00:00</TimeModified>
        <EditSequence>1783380662</EditSequence>
        <TxnNumber>5000</TxnNumber>
        <CustomerRef>
          <ListID>80000068-1794871862</ListID>
          <FullName>Northgate Plumbing Inc</FullName>
        </CustomerRef>
        <TxnDate>2026-07-06</TxnDate>
        <RefNumber>SR-2001</RefNumber>
        <PaymentMethodRef>
          <FullName>Cash</FullName>
        </PaymentMethodRef>
        <DepositToAccountRef>
          <ListID>80000004-1760311862</ListID>
          <FullName>Undeposited Funds</FullName>
        </DepositToAccountRef>
        <Subtotal>7856.00</Subtotal>
        <SalesTaxTotal>0.00</SalesTaxTotal>
        <TotalAmount>7856.00</TotalAmount>
        <SalesReceiptLineRet>
          <TxnLineID>2EE-1783380662</TxnLineID>
          <ItemRef>
            <ListID>80000042-1794871862</ListID>
            <FullName>Insulation Roll</FullName>
          </ItemRef>
          <Desc>Fiberglass insulation R-13</Desc>
          <Quantity>4</Quantity>
          <Rate>54.00</Rate>
          <Amount>216.00</Amount>
        </SalesReceiptLineRet>
        <SalesReceiptLineRet>
          <TxnLineID>2EF-1783380662</TxnLineID>
          <ItemRef>
            <ListID>80000036-1794871862</ListID>
            <FullName>Condenser 3T</FullName>
          </ItemRef>
          <Desc>AC condenser unit, 3 ton</Desc>
          <Quantity>2</Quantity>
          <Rate>2890.00</Rate>
          <Amount>5780.00</Amount>
        </SalesReceiptLineRet>
        <SalesReceiptLineRet>
          <TxnLineID>2F0-1783380662</TxnLineID>
          <ItemRef>
            <ListID>8000003F-1794871862</ListID>
            <FullName>Refrigerant R410A</FullName>
          </ItemRef>
          <Desc>R-410A refrigerant, 25 lb</Desc>
          <Quantity>6</Quantity>
          <Rate>310.00</Rate>
          <Amount>1860.00</Amount>
        </SalesReceiptLineRet>
      </SalesReceiptRet>
    </SalesReceiptQueryRs>
  </QBXMLMsgsRs>
</QBXML>

FAQ

How do I page through SalesReceiptQuery results?

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

How do I fetch only sales receipts changed since my last sync?

Use ModifiedDateRangeFilter/FromModifiedDate inside SalesReceiptQueryRq, or updatedAfter on the REST endpoint.

Why does SalesReceiptQuery 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 SalesReceiptQuery 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 SalesReceipt messages

Other Query messages

Skip the XML: call GET /v1/sales-receipts with JSON.

Get a free sandbox key