我收到错误"无法删除同步TXN_HDR记录。使用还原对象 API",当我尝试使用 QB 桌面版 Quickbook IPP 删除发票时。我的请求和回应如下。为了安全起见,我删除了授权标头。有什么想法吗?
请求:
POST https://services.intuit.com/sb/invoice/v2/[realmId] HTTP/1.1
Content-Type: text/xml
Content-Length: 404
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<Del RequestId="b31649561ac1dbc0cadcca5b3d6c8ef9" xmlns="http://www.intuit.com/sb/cdm/v2">
<Object xsi:type="Invoice"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Id idDomain="NG">1002</Id>
</Object>
</Del>
响应:
HTTP/1.1 200 OK
Date: Mon, 09 Sep 2013 15:43:02 GMT
Server: Apache/2.2.22 (Unix)
Response-Routing-Time: 200
Content-Length: 392
Connection: close
Content-Type: text/xml
<?xml version="1.0" ?><RestResponse xmlns="http://www.intuit.com/sb/cdm/v2"><Error RequestId="0a7cb165f7274ed39a7311e4c3c66e51"><RequestName>ErrorRequest</RequestName><ProcessedTime>2013-09-09T15:43:02.993Z</ProcessedTime><ErrorCode>-3002</ErrorCode><ErrorDesc>cannot DELETE synchronized TXN_HDR record. Use REVERT object API</ErrorDesc><DBErrorCode>20924</DBErrorCode></Error></RestResponse>
Jeremy,
v2 不支持删除发票。您可以通过 API 还原对发票的最后更改,但无法将其删除。您只能从QuickBooks中删除它。
问候
震动