LedgerWire

SalesReceipt · Mod

simulated in sandbox

SalesReceiptMod

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

SalesReceiptModRq
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <SalesReceiptModRq requestID="1">
      <SalesReceiptMod>
        <TxnID>2F1-1783380662</TxnID>
        <EditSequence>1783380662</EditSequence>
        <Memo>Paid at counter</Memo>
      </SalesReceiptMod>
    </SalesReceiptModRq>
  </QBXMLMsgsRq>
</QBXML>

JSON equivalent

POST /v1/sales-receipts/2F1-1783380662
{
  "memo": "Paid at counter",
  "editSequence": "1783380662"
}
curl
curl -X POST https://ledgerwire.vibiz.app/v1/sales-receipts/2F1-1783380662 \
  -H "Authorization: Bearer $LEDGERWIRE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"memo":"Paid at counter","editSequence":"1783380662"}'

Run this request against your own sandbox

Add and Mod requests change data, so they run in a private sandbox, not the shared demo. Get a free key (10 seconds), then POST the request above to /v1/qbxml.

qbXML response (from the sandbox seed data)

SalesReceiptModRs
<?xml version="1.0" ?>
<QBXML>
  <QBXMLMsgsRs>
    <SalesReceiptModRs 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>1783380722</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>
        <Memo>Paid at counter</Memo>
        <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>
    </SalesReceiptModRs>
  </QBXMLMsgsRs>
</QBXML>

FAQ

Why does SalesReceiptMod need EditSequence?

QuickBooks uses EditSequence for optimistic locking. Send the value from your last query; if someone changed the sales receipt since, QuickBooks answers 3200 and you re-read and retry.

Does SalesReceiptMod replace the whole record?

No, only the elements you send change. Lines are the exception on transactions: send every line you want to keep with its TxnLineID, and TxnLineID -1 for new ones.

How do I call SalesReceiptMod from JSON?

POST /v1/sales-receipts/{id} with the editSequence and the fields to change. LedgerWire builds the SalesReceiptModRq for you.

Sandbox fidelity

The LedgerWire sandbox simulates SalesReceiptMod 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 Mod messages

Skip the XML: call POST /v1/sales-receipts/2F1-1783380662 with JSON.

Get a free sandbox key