QbXML for Querying for Items
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 matched the search, you'll get something like this back:
<?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 ("your item name") that could not be found in QuickBooks." /> </QBXMLMsgsRs> </QBXML>