CreditMemo还原有空白响应/不还原

时间:2013-08-22 06:44:36

标签: php quickbooks intuit-partner-platform devkit

出于某种原因,当我尝试在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 devkit

1 个答案:

答案 0 :(得分:1)

事实证明,根据Intuit开发者网站,您无法还原贷记凭证:https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0500_supported_objects

我最终解决此问题的方法是使用ErroredObjectsOnly =“true”进行查询以获取当前错误的贷记凭证:

<CreditMemoQuery ErroredObjectsOnly="true" xmlns="http://www.intuit.com/sb/cdm/v2">
</CreditMemoQuery>

然后将我的贷项通知单发回到有效字段的intuit。这使得CreditMemo摆脱了错误状态并允许它同步。