当我尝试使用 Quickbook IPP for QB Desktop 删除发票时,出现错误“无法删除同步的 TXN_HDR 记录。使用 REVERT 对象 API”。我的要求和回应如下。为了安全起见,我删除了授权标头。有任何想法吗?
要求:
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>