QuickBooks 桌面版 PHP 销售订单 API
QuickBooks Desktop PHP Sales Order API
我想在我们的网站上集成 QuickBooks 桌面。
我阅读了文档,但似乎无法找到如何从 QuickBooks Desktop 获取销售订单。我们的数据流是这样的,客户在我们的网站上购买,然后我们在 QuickBooks Desktop 中对客户在我们网站上进行的购买进行编码。
我知道我们可以自动插入销售订单,但我只需要获取销售订单,这样我就可以在用户更新我们网站上的状态后在 QuickBooks 中更新它的状态。
顺便说一句,我想使用其 P.O 获取销售订单。数,P.O。编号是在我们的网站上自动生成的,我们在 QuickBooks Desktop 中对销售订单进行编码时将其包括在内。
到目前为止,这是我想出的唯一代码。我还没有测试它,因为我不知道把 P.O 放在哪里。数.
谢谢。
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<SalesOrderQueryRq metadata="ENUMTYPE"iterator="ENUMTYPE" iteratorID="UUIDTYPE">
</SalesOrderQueryRq>
</QBXMLMsgsRq>
</QBXML>
转到 QuickBooks OSR:
如果单击 XMLOps
选项卡,您将看到 query-able 字段。
<!-- BEGIN OR -->
<TxnID >IDTYPE</TxnID> <!-- optional, may repeat -->
<!-- OR -->
<RefNumber >STRTYPE</RefNumber> <!-- optional, may repeat -->
<!-- OR -->
<RefNumberCaseSensitive >STRTYPE</RefNumberCaseSensitive> <!-- optional, may repeat -->
<!-- OR -->
<MaxReturned >INTTYPE</MaxReturned> <!-- optional -->
<!-- BEGIN OR -->
<ModifiedDateRangeFilter> <!-- optional -->
<FromModifiedDate >DATETIMETYPE</FromModifiedDate> <!-- optional -->
<ToModifiedDate >DATETIMETYPE</ToModifiedDate> <!-- optional -->
</ModifiedDateRangeFilter>
<!-- OR -->
<TxnDateRangeFilter> <!-- optional -->
<!-- BEGIN OR -->
<FromTxnDate >DATETYPE</FromTxnDate> <!-- optional -->
<ToTxnDate >DATETYPE</ToTxnDate> <!-- optional -->
<!-- OR -->
<!-- DateMacro may have one of the following values: All, Today, ThisWeek, ThisWeekToDate, ThisMonth, ThisMonthToDate, ThisCalendarQuarter, ThisCalendarQuarterToDate, ThisFiscalQuarter, ThisFiscalQuarterToDate, ThisCalendarYear, ThisCalendarYearToDate, ThisFiscalYear, ThisFiscalYearToDate, Yesterday, LastWeek, LastWeekToDate, LastMonth, LastMonthToDate, LastCalendarQuarter, LastCalendarQuarterToDate, LastFiscalQuarter, LastFiscalQuarterToDate, LastCalendarYear, LastCalendarYearToDate, LastFiscalYear, LastFiscalYearToDate, NextWeek, NextFourWeeks, NextMonth, NextCalendarQuarter, NextCalendarYear, NextFiscalQuarter, NextFiscalYear -->
<DateMacro >ENUMTYPE</DateMacro> <!-- optional -->
<!-- END OR -->
</TxnDateRangeFilter>
<!-- END OR -->
<EntityFilter> <!-- optional -->
<!-- BEGIN OR -->
<ListID >IDTYPE</ListID> <!-- optional, may repeat -->
<!-- OR -->
<FullName >STRTYPE</FullName> <!-- optional, may repeat -->
<!-- OR -->
<ListIDWithChildren >IDTYPE</ListIDWithChildren> <!-- optional -->
<!-- OR -->
<FullNameWithChildren >STRTYPE</FullNameWithChildren> <!-- optional -->
<!-- END OR -->
</EntityFilter>
<!-- BEGIN OR -->
<RefNumberFilter> <!-- optional -->
<!-- MatchCriterion may have one of the following values: StartsWith, Contains, EndsWith -->
<MatchCriterion >ENUMTYPE</MatchCriterion> <!-- required -->
<RefNumber >STRTYPE</RefNumber> <!-- required -->
</RefNumberFilter>
<!-- OR -->
<RefNumberRangeFilter> <!-- optional -->
<FromRefNumber >STRTYPE</FromRefNumber> <!-- optional -->
<ToRefNumber >STRTYPE</ToRefNumber> <!-- optional -->
</RefNumberRangeFilter>
<!-- END OR -->
<CurrencyFilter> <!-- optional -->
<!-- BEGIN OR -->
<ListID >IDTYPE</ListID> <!-- optional, may repeat -->
<!-- OR -->
<FullName >STRTYPE</FullName> <!-- optional, may repeat -->
<!-- END OR -->
</CurrencyFilter>
<!-- END OR -->
您会注意到 PONumber
不在该列表中。那是因为QuickBooks 不支持querying/filtering PO 编号。
我想在我们的网站上集成 QuickBooks 桌面。
我阅读了文档,但似乎无法找到如何从 QuickBooks Desktop 获取销售订单。我们的数据流是这样的,客户在我们的网站上购买,然后我们在 QuickBooks Desktop 中对客户在我们网站上进行的购买进行编码。
我知道我们可以自动插入销售订单,但我只需要获取销售订单,这样我就可以在用户更新我们网站上的状态后在 QuickBooks 中更新它的状态。
顺便说一句,我想使用其 P.O 获取销售订单。数,P.O。编号是在我们的网站上自动生成的,我们在 QuickBooks Desktop 中对销售订单进行编码时将其包括在内。
到目前为止,这是我想出的唯一代码。我还没有测试它,因为我不知道把 P.O 放在哪里。数.
谢谢。
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<SalesOrderQueryRq metadata="ENUMTYPE"iterator="ENUMTYPE" iteratorID="UUIDTYPE">
</SalesOrderQueryRq>
</QBXMLMsgsRq>
</QBXML>
转到 QuickBooks OSR:
如果单击 XMLOps
选项卡,您将看到 query-able 字段。
<!-- BEGIN OR -->
<TxnID >IDTYPE</TxnID> <!-- optional, may repeat -->
<!-- OR -->
<RefNumber >STRTYPE</RefNumber> <!-- optional, may repeat -->
<!-- OR -->
<RefNumberCaseSensitive >STRTYPE</RefNumberCaseSensitive> <!-- optional, may repeat -->
<!-- OR -->
<MaxReturned >INTTYPE</MaxReturned> <!-- optional -->
<!-- BEGIN OR -->
<ModifiedDateRangeFilter> <!-- optional -->
<FromModifiedDate >DATETIMETYPE</FromModifiedDate> <!-- optional -->
<ToModifiedDate >DATETIMETYPE</ToModifiedDate> <!-- optional -->
</ModifiedDateRangeFilter>
<!-- OR -->
<TxnDateRangeFilter> <!-- optional -->
<!-- BEGIN OR -->
<FromTxnDate >DATETYPE</FromTxnDate> <!-- optional -->
<ToTxnDate >DATETYPE</ToTxnDate> <!-- optional -->
<!-- OR -->
<!-- DateMacro may have one of the following values: All, Today, ThisWeek, ThisWeekToDate, ThisMonth, ThisMonthToDate, ThisCalendarQuarter, ThisCalendarQuarterToDate, ThisFiscalQuarter, ThisFiscalQuarterToDate, ThisCalendarYear, ThisCalendarYearToDate, ThisFiscalYear, ThisFiscalYearToDate, Yesterday, LastWeek, LastWeekToDate, LastMonth, LastMonthToDate, LastCalendarQuarter, LastCalendarQuarterToDate, LastFiscalQuarter, LastFiscalQuarterToDate, LastCalendarYear, LastCalendarYearToDate, LastFiscalYear, LastFiscalYearToDate, NextWeek, NextFourWeeks, NextMonth, NextCalendarQuarter, NextCalendarYear, NextFiscalQuarter, NextFiscalYear -->
<DateMacro >ENUMTYPE</DateMacro> <!-- optional -->
<!-- END OR -->
</TxnDateRangeFilter>
<!-- END OR -->
<EntityFilter> <!-- optional -->
<!-- BEGIN OR -->
<ListID >IDTYPE</ListID> <!-- optional, may repeat -->
<!-- OR -->
<FullName >STRTYPE</FullName> <!-- optional, may repeat -->
<!-- OR -->
<ListIDWithChildren >IDTYPE</ListIDWithChildren> <!-- optional -->
<!-- OR -->
<FullNameWithChildren >STRTYPE</FullNameWithChildren> <!-- optional -->
<!-- END OR -->
</EntityFilter>
<!-- BEGIN OR -->
<RefNumberFilter> <!-- optional -->
<!-- MatchCriterion may have one of the following values: StartsWith, Contains, EndsWith -->
<MatchCriterion >ENUMTYPE</MatchCriterion> <!-- required -->
<RefNumber >STRTYPE</RefNumber> <!-- required -->
</RefNumberFilter>
<!-- OR -->
<RefNumberRangeFilter> <!-- optional -->
<FromRefNumber >STRTYPE</FromRefNumber> <!-- optional -->
<ToRefNumber >STRTYPE</ToRefNumber> <!-- optional -->
</RefNumberRangeFilter>
<!-- END OR -->
<CurrencyFilter> <!-- optional -->
<!-- BEGIN OR -->
<ListID >IDTYPE</ListID> <!-- optional, may repeat -->
<!-- OR -->
<FullName >STRTYPE</FullName> <!-- optional, may repeat -->
<!-- END OR -->
</CurrencyFilter>
<!-- END OR -->
您会注意到 PONumber
不在该列表中。那是因为QuickBooks 不支持querying/filtering PO 编号。