This is an old revision of the document!


Example qbXML for Adding a Customer

* * * WARNING: If you're using Keith's / Consolibyte Solutions PHP framework, you must change the requestID=”…” attribute before using this examples! You need to embed the $requestID parameter passed to your handler function as requestID=“xyz” * * *

Example qbXML Request

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="2.0"?>
<QBXML>
	<QBXMLMsgsRq onError="stopOnError">
		<CustomerAddRq requestID="15">
			<CustomerAdd>
				<Name>20706 - Eastern XYZ University</Name>
				<CompanyName>Eastern XYZ University</CompanyName>
				<FirstName>Keith</FirstName>
				<LastName>Palmer</LastName>
				<BillAddress>
					<Addr1>Eastern XYZ University</Addr1>
					<Addr2>College of Engineering</Addr2>
					<Addr3>123 XYZ Road</Addr3>
					<City>Storrs-Mansfield</City>
					<State>CT</State>
					<PostalCode>06268</PostalCode>
					<Country>United States</Country>
				</BillAddress>
				<Phone>860-634-1602</Phone>
				<AltPhone>860-429-0021</AltPhone>
				<Fax>860-429-5183</Fax>
				<Email>keith@consolibyte.com</Email>
				<Contact>Keith Palmer</Contact>
			</CustomerAdd>
		</CustomerAddRq>
	</QBXMLMsgsRq>
</QBXML>

Example qbXML Response

<?xml version="1.0" ?>
<QBXML>
	<QBXMLMsgsRs>
		<CustomerAddRs requestID="15" statusCode="0" statusSeverity="Info" statusMessage="Status OK">
			<CustomerRet>
				<ListID>F540000-1197683154</ListID>
				<TimeCreated>2007-12-14T20:45:54-05:00</TimeCreated>
				<TimeModified>2007-12-14T20:45:54-05:00</TimeModified>
				<EditSequence>1197683154</EditSequence>
				<Name>20706 - Eastern XYZ University</Name>
				<FullName>20706 - Eastern XYZ University</FullName>
				<IsActive>true</IsActive>
				<Sublevel>0</Sublevel>
				<CompanyName>Eastern XYZ University</CompanyName>
				<FirstName>Keith</FirstName>
				<LastName>Palmer</LastName>
				<BillAddress>
					<Addr1>Eastern XYZ University</Addr1>
					<Addr2>College of Engineering</Addr2>
					<Addr3>123 XYZ Road</Addr3>
					<City>Storrs-Mansfield</City>
					<State>CT</State>
					<PostalCode>88130</PostalCode>
					<Country>USA</Country>
				</BillAddress>
				<Phone>860-634-1602</Phone>
				<AltPhone>860-429-0021</AltPhone>
				<Fax>860-429-5183</Fax>
				<Email>keith@consolibyte.com</Email>
				<Contact>Keith Palmer</Contact>
				<Balance>0.00</Balance>
				<TotalBalance>0.00</TotalBalance>
				<JobStatus>None</JobStatus>
			</CustomerRet>
		</CustomerAddRs>
	</QBXMLMsgsRs>
</QBXML>

write my essay

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