更新客户自定义字段QuickBooks桌面



我正在使用consolibyte lib来集成QuickBook桌面与PHP应用程序。我需要使用PHP库更新客户的自定义字段。

自定义字段在QuickBooks桌面中称为DataExt元素。

你可以参考QuickBooks OSR来了解发送给QuickBooks的XML语法:

  • https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html

我们的网站上也有很多你想做的事情的例子:

  • http://www.consolibyte.com/docs/index.php/Example_qbXML_Requests

具体来说,这个例子可能会有帮助:

  • http://www.consolibyte.com/docs/index.php/QbXML_for_Adding_a_Customer_with_Custom_Fields

从该链接复制/粘贴:

<?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>

您应该能够将这样的XML放入这个PHP库的快速入门指南中包含的示例中,然后继续前进。

  • https://github.com/consolibyte/quickbooks-php

如果你有问题,你应该发布你发送给QuickBooks的XML,以及你从QuickBooks得到的错误消息或XML。代码也很有用。

最新更新