我使用InvoiceQueryRq获取发票详细信息.它从quickbooks中获取所有信息.但我需要根据条件获取数据.如何在InvoiceQueryRq中使用过滤器选项? 以下是我们 QuickBooks integration wiki的几个例子.我们有
通过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