2013-08-22 34 views
0

由於某些原因,當我嘗試在Quickbooks IPP中還原貸項憑證時,我收到一個空白回覆。我刪除了授權頭,所以我可以將它張貼如下申請:CreditMemo回覆空白回覆/不還原

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

+0

如果存在像這樣的鏈接事務,您無法恢復貸記憑證 – DevZer0

+0

那麼我怎樣才能讓它脫離錯誤狀態? – Jeremy

+0

只有與QuickBooks至少同步一次的對象纔可以恢復。這意味着該對象已被數據服務更新(即通過操作),是的,不應該有任何關聯的交易 –

回答

1

事實證明,你不能根據Intuit開發人員網站還原貸項憑證:https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0500_supported_objects

我最終解決問題的方法是使用ErroredObjectsOnly =「true」執行查詢以獲取th Ë目前出錯貸項通知單:

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

,然後張貼我貸項通知單回來有效字段直覺。這使CreditMemo脫離了錯誤狀態並允許它同步。