QbXML for Adding a Customer with Custom Fields
From ConsoliBYTE Wiki
(Difference between revisions)
Consolibyte (Talk | contribs) (Created page with "QuickBooks custom fields are called "DataExt" records in the API. Since DataExts are NOT actually part of the core Customer record, you use a completely separate request to ad...") |
Consolibyte (Talk | contribs) |
||
Line 5: | Line 5: | ||
== qbXML Request == | == qbXML Request == | ||
− | < | + | <pre> |
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<?qbxml version="7.0"?> | <?qbxml version="7.0"?> | ||
Line 44: | Line 44: | ||
</QBXMLMsgsRq> | </QBXMLMsgsRq> | ||
</QBXML> | </QBXML> | ||
− | </ | + | </pre> |
== qbXML Response == | == qbXML Response == | ||
− | < | + | <pre> |
todo | todo | ||
− | </ | + | </pre> |
Latest revision as of 11:59, 26 October 2012
QuickBooks custom fields are called "DataExt" records in the API. Since DataExts are NOT actually part of the core Customer record, you use a completely separate request to add/update them.
Below you can see double request, where the first request creates the customer, and the second sets the custom fields for the customer.
qbXML Request
<?xml version="1.0" encoding="utf-8"?> <?qbxml version="7.0"?> <QBXML> <QBXMLMsgsRq onError="stopOnError"> <CustomerAddRq requestID="Q3VzdG9tZXJBZGR8MTExMTIxMjE="> <CustomerAdd> <Name>Keith Palmer Jr.</Name> <FirstName>Keith</FirstName> <MiddleName></MiddleName> <LastName>Palmer Jr.</LastName> <BillAddress> <Addr1>134 Stonemill Road</Addr1> <City>Mansfield</City> <State>CT</State> <PostalCode>06268</PostalCode> <Country>USA</Country> </BillAddress> <Phone>999-99-9999</Phone> <Email>test@example.com</Email> <Contact>Keith Palmer Jr.</Contact> </CustomerAdd> </CustomerAddRq> <DataExtModRq> <DataExtMod> <OwnerID>0</OwnerID> <DataExtName>CustomerNumber</DataExtName> <ListDataExtType>Customer</ListDataExtType> <ListObjRef> <FullName>Keith Palmer Jr.</FullName> </ListObjRef> <DataExtValue>1234</DataExtValue> </DataExtMod> </DataExtModRq> </QBXMLMsgsRq> </QBXML>
qbXML Response
todo