Example qbXML to Modify an Invoice (InvoiceMod)

Important Notes:

If you specify ANY line items on the invoice mod, it replaces all the line items with those you specified. If you are trying to just add a line to the end, you have to reference all the lines in the invoice (you don't have to resend all the info, just set the TxnLineID to the one from the original invoice), and set it to -1 for all the new line items…

For example, if your Invoice has line items with IDs A/B/C, and you want to append another line, your mod should be something like:

<InvoiceLineMod><TxnLineID>A</TxnLineID><InvoiceLineMod>
<InvoiceLineMod><TxnLineID>B</TxnLineID><InvoiceLineMod>
<InvoiceLineMod><TxnLineID>C</TxnLineID><InvoiceLineMod>
<InvoiceLineMod><TxnLineID>-1</TxnLineID><required values... ><InvoiceLineMod>

If you wanted to delete line B, just send

<InvoiceLineMod><TxnLineID>A</TxnLineID><InvoiceLineMod>
<InvoiceLineMod><TxnLineID>C</TxnLineID><InvoiceLineMod>

From: http://idnforums.intuit.com/messageview.aspx?catid=7&threadid=11542&foru

quickbooks_qbxml_invoicemod.txt · Last modified: 2013/01/21 12:44 (external edit)