TxnVoid qbXML example

Voids a transaction: QuickBooks keeps it, with its amounts at zero.

qbXML TxnVoidRq, version 16.0
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="16.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <TxnVoidRq>
      <TxnVoidType>Invoice</TxnVoidType>
      <TxnID>1A2B-1700000000</TxnID>
    </TxnVoidRq>
  </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

  • A voided invoice keeps its record with amounts and line quantities at zero, is marked paid, and gets "VOID: " in front of its memo.

The same request with QuBe Sync's API

QuBe Sync takes this JSON, writes the qbXML for you and delivers QuickBooks' answer to your webhook as JSON.

POST /api/v2/connections/{connection_id}/txn-void
{
  "txn_id": "1A2B-1700000000",
  "txn_void_type": "Invoice"
}

Every field TxnVoid takes is in Intuit's reference.

More requests

Company and housekeeping

All qbXML examples