【问题标题】:CreditMemo revert has blank response / doesn't revertCreditMemo 恢复有空白响应/不恢复
【发布时间】: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


【解决方案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 脱离了错误状态并允许它同步。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-06
    • 1970-01-01
    • 2019-05-02
    • 2014-07-15
    • 2020-04-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多