Deleting a payment gives the invoices it paid their balance back, and moves their TimeModified to the deletion but leaves their EditSequence

Observed 2026-10-10 on QuickBooks Enterprise Solutions 24.0 (US), reporting qbXML 17.0.

Deleting a payment with TxnDel gives the invoice it paid its balance back: AppliedAmount and BalanceRemaining return to what they were before the payment, and the payment leaves the invoice's LinkedTxn. The invoice's TimeModified moves to the deletion's TimeDeleted, but its EditSequence stays as it was. Intuit's TxnDel reference does not say what deleting a payment does to the invoices it paid.

Before the payment, the invoice read <EditSequence>1791592846</EditSequence> and <BalanceRemaining>239.97</BalanceRemaining>. A 1.00 payment applied to it answered <BalanceRemaining>238.97</BalanceRemaining>. The payment was then deleted:

qbXML
<TxnDelRs statusCode="0" statusSeverity="Info" statusMessage="Status OK">
<TxnDelType>ReceivePayment</TxnDelType>
<TxnID>4F88-1791595425</TxnID>
<TimeDeleted>2026-10-09T18:25:06-08:00</TimeDeleted>
</TxnDelRs>

The next read of the invoice answered:

qbXML
<TimeModified>2026-10-09T18:25:06-08:00</TimeModified>
<EditSequence>1791592846</EditSequence>
<AppliedAmount>-39.99</AppliedAmount>
<BalanceRemaining>239.97</BalanceRemaining>

An InvoiceModRq sent with that same EditSequence succeeded.

What to do

After deleting a payment, do not keep the invoice balance your application stored when the payment was added. Read the invoice again, or restore the amount yourself. A sync that picks up changes by TimeModified will see the invoice change at the deletion. An EditSequence you stored for the invoice before the payment is still valid for an InvoiceMod.

Not observed

  • Deleting a payment that also applied a credit memo through SetCredit.
  • Deleting a payment that a deposit holds.
  • Deleting an applied credit memo, or an invoice that payments paid.

QuBe Sync is a JSON API for QuickBooks Desktop that is built on what these findings show.