dqy13020940 2013-08-22 06:44
浏览 25
已采纳

CreditMemo还原有空白响应/不还原

For some reason when I try to revert a credit memo in Quickbooks IPP, I get a blank response. I removed the authorization header so I could post it below The request:

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>

The response:

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

I'm using the php devkit

  • 写回答

1条回答 默认 最新

  • dongleibeng5602 2013-08-24 06:16
    关注

    It turns out that you can't revert a credit memo according to the Intuit developer site: https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0500_supported_objects

    What I ended up doing to resolve the issue was doing a query with ErroredObjectsOnly="true" to get the currently errored credit memo:

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

    and then posting my credit memo back to intuit with valid fields. That bumped the CreditMemo out of error state and allowed it to sync.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 BP神经网络控制倒立摆
  • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
  • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算