Reputation: 13
I am using consolibyte lib to integrate QuickBook Desktop with PHP app. I need to update customer's custom field using PHP library.
Upvotes: 0
Views: 890
Reputation: 27952
Custom fields are called DataExt
elements in QuickBooks desktop.
You can refer to the QuickBooks OSR for exact XML syntax on what to send to QuickBooks:
We also have lots of examples on our website of doing what you're trying to do:
Specifically, this example may be helpful:
Copy/pasted from that link:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="7.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<CustomerAddRq requestID="Q3VzdG9tZXJBZGR8MTExMTIxMjE=">
<CustomerAdd>
<Name>Keith Palmer Jr.</Name>
...
</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>
You should be able to plop XML like that in to the examples included in the quick-start guide of this PHP library and be on your way.
If you have trouble, you should post the XML you're sending to QuickBooks, and the error message or XML that you get back from QuickBooks. Code is helpful too.
Upvotes: 2