xml – 如何在InvoiceQueryRq中使用过滤器选项

我使用InvoiceQueryRq获取发票详细信息.它从quickbooks中获取所有信息.但我需要根据条件获取数据.如何在InvoiceQueryRq中使用过滤器选项?

解决方法

以下是我们 QuickBooks integration wiki的几个例子.我们有一整页致力于 example qbXML requests

通过TxnID过滤

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="8.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <InvoiceQueryRq requestID="2">
      <TxnID>2484-1263499231</TxnID>
    </InvoiceQueryRq>
  </QBXMLMsgsRq>
</QBXML>

按RefNumber过滤

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="8.0"?>
<QBXML>
    <QBXMLMsgsRq onError="stopOnError">
        <InvoiceQueryRq requestID="2">
            <RefNumber>1234</RefNumber> <!-- put your invoice # here -->
        </InvoiceQueryRq>
    </QBXMLMsgsRq>
</QBXML>

有关更多示例,请参阅QuickBooks OSR. QuickBooks OSR显示了可以发送到QuickBooks的所有qbXML请求的完整查询语法:

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

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念