Quickbook IPP无法删除

时间:2013-09-09 15:44:14

标签: php quickbooks intuit-partner-platform devkit

当我尝试使用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>

1 个答案:

答案 0 :(得分:2)

杰里米,
v2中不支持发票删除。您可以通过API将上次更改还原为发票,但无法将其删除。您只能从QuickBooks中删除它。
至于
震动