【发布时间】:2013-08-22 06:44:36
【问题描述】:
由于某种原因,当我尝试在 Quickbooks IPP 中恢复贷项通知单时,我得到一个空白响应。我删除了授权标头,因此我可以将其发布在请求下方:
POST https://services.intuit.com/sb/creditmemo/v2/[realmid] HTTP/1.1
Content-Type: text/xml
Content-Length: 312
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<Revert RequestId="73c6e0d1268aaac3a34e8e00a73d0e74"
xmlns="http://www.intuit.com/sb/cdm/v2">
<Object xsi:type="CreditMemo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Id idDomain="NG">46537073</Id>
</Object>
</Revert>
回应:
HTTP/1.1 200 OK
Date: Thu, 22 Aug 2013 06:39:25 GMT
Server: Apache/2.2.3 (Red Hat)
Response-Routing-Time: 185
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain; charset=UTF-8
我正在使用 php 开发工具包
【问题讨论】:
-
如果存在关联交易,则无法恢复贷项通知单
-
那么我怎样才能让它摆脱错误状态呢?
-
只有至少与 QuickBooks 同步过一次的对象才能恢复。这意味着该对象已被数据服务更新(即,通过
操作),是的,不应该有任何针对它的链接事务 -
谢谢。如果它已经同步过一次,但有针对它的交易,我怎样才能让它脱离错误状态?
-
我想通了。在我的查询中添加了 ErroredObjectsOnly="true"。
标签: php quickbooks intuit-partner-platform devkit