Example qbXML for Adding an Invoice with a Discount

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="4.0"?>
<QBXML>
	<QBXMLMsgsRq onerror="stoponerror">
		<InvoiceAddRq requestID="...">
			<InvoiceAdd>
				<CustomerRef>
					<ListID>50001-1213155398</ListID>
				</CustomerRef>
				<RefNumber>19</RefNumber>
				<BillAddress>
					<Addr1>Karli Palmer</Addr1>
					<PostalCode>USA</PostalCode>
				</BillAddress>
				<InvoiceLineAdd>
					<ItemRef>
						<FullName>Line Item Name</FullName>
					</ItemRef>
					<Desc>Line Item Description</Desc>
					<Quantity>1</Quantity>
					<Rate>100</Rate>
				</InvoiceLineAdd>
				<InvoiceLineAdd>
					<ItemRef>
						<FullName>Discount Item Name</FullName>
					</ItemRef>
					<Desc>Discount Item Description</Desc>
					<Amount>20.00</Amount>
				</InvoiceLineAdd>
				<InvoiceLineAdd>
					<Desc>Here is a comment... </Desc>
				</InvoiceLineAdd>
			</InvoiceAdd>
		</InvoiceAddRq>
	</QBXMLMsgsRq>
</QBXML>
quickbooks_qbxml_invoiceadd_with_discount.txt · Last modified: 2013/01/21 12:44 (external edit)