QbXML for Voiding a Transaction

From ConsoliBYTE Wiki
Jump to: navigation, search

Voiding a Transaction

 
<?xml version="1.0" encoding="utf-8"?>
        <?qbxml version="8.0"?>
        <QBXML>
          <QBXMLMsgsRq onError="stopOnError">
            <TxnVoidRq>
              <!-- TxnVoidType may have one of the following values: ARRefundCreditCard, Bill, BillPaymentCheck, BillPaymentCreditCard, Charge, Check, CreditCardCharge, CreditCardCredit, CreditMemo, Deposit, InventoryAdjustment, Invoice, ItemReceipt, JournalEntry, SalesReceipt, VendorCredit -->
              <TxnVoidType>Invoice</TxnVoidType>
              <TxnID>ABCD-1234</TxnID>
            </TxnVoidRq>
          </QBXMLMsgsRq>
        </QBXML>