Example qbXML to Query for an Item

Example qbXML Request

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="7.0"?>
<QBXML>
	<QBXMLMsgsRq onError="stopOnError">
		<ItemQueryRq requestID="SXRlbVF1ZXJ5fDEyMA==" >
			<FullName>your item name</FullName>
		</ItemQueryRq>
	</QBXMLMsgsRq>
</QBXML>

Example qbXML Response

If no items are found which match the request, an error will be returned:

<?xml version="1.0" ?>
<QBXML>
	<QBXMLMsgsRs>
		<ItemQueryRs requestID="SXRlbVF1ZXJ5fDEyMA==" statusCode="500" statusSeverity="Warn" statusMessage="The query request has not been fully completed. There was a required element (&quot;your item name&quot;) that could not be found in QuickBooks." />
	</QBXMLMsgsRs>
</QBXML>

Otherwise, items will be returned:



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