Quickbooks 为什么赢了';t此IPP QBO v3 API请求设置此帐户对象';s子帐户属性是否为false?

Quickbooks 为什么赢了';t此IPP QBO v3 API请求设置此帐户对象';s子帐户属性是否为false?,quickbooks,intuit-partner-platform,quickbooks-online,Quickbooks,Intuit Partner Platform,Quickbooks Online,以文档为指导,我试图使此帐户不再是子帐户(暂时使用): 我还尝试过显式地将属性设置为false(有和没有ParentRef属性更新) 以下是: { "Name": "Accumulated Depreciation", "ParentRef": { "value" : null }, "SubAccount": false, "sparse": true, "Id": "4", "SyncToken": "2" } 这里

以文档为指导,我试图使此帐户不再是子帐户(暂时使用):

我还尝试过显式地将属性设置为false(有和没有ParentRef属性更新)

以下是:

{
    "Name": "Accumulated Depreciation",
    "ParentRef": {
        "value" :  null
    },
    "SubAccount": false,
    "sparse": true,
    "Id": "4",
    "SyncToken": "2"
}
这里没有:

{
    "Name": "Accumulated Depreciation",
    "SubAccount": false,
    "sparse": true,
    "Id": "4",
    "SyncToken": "2"
}
我没有收到任何错误,但响应仍然将帐户显示为65的子帐户这一事实表明更新不起作用:

{
  "Account": {
    "Name": "Accumulated Depreciation",
    "SubAccount": true,
    "ParentRef": {
      "value": "65"
    },
    "FullyQualifiedName": "Computer Hardware:Accumulated Depreciation",
    "Active": true,
    "Classification": "Asset",
    "AccountType": "Fixed Asset",
    "AccountSubType": "OtherFixedAssets",
    "CurrentBalance": 0,
    "CurrentBalanceWithSubAccounts": 0,
    "domain": "QBO",
    "sparse": false,
    "Id": "4",
    "SyncToken": "2",
    "MetaData": {
      "CreateTime": "2014-03-09T07:48:23-07:00",
      "LastUpdatedTime": "2014-03-09T11:17:48-07:00"
    }
  },
  "time": "2014-03-09T11:23:30.36-07:00"
}
你知道我错过了什么吗

谢谢大家!

[玛纳斯回复后更新:]

我正在尝试全面更新,但没有成功。以下是我尝试过的两个请求的主体:

{
    "Name": "Accumulated Depreciation",
    "SubAccount": false,
    "ParentRef": {
      "value": null
    },
    "FullyQualifiedName": "Accumulated Depreciation",
    "Active": true,
    "Classification": "Asset",
    "AccountType": "Fixed Asset",
    "AccountSubType": "OtherFixedAssets",
    "CurrentBalance": 0,
    "CurrentBalanceWithSubAccounts": 0,
    "domain": "QBO",
    "sparse": false,
    "Id": "4",
    "SyncToken": "2",
    "MetaData": {
      "CreateTime": "2014-03-09T07:48:23-07:00",
      "LastUpdatedTime": "2014-03-09T11:17:48-07:00"
    }
}
而且

{
    "Name": "Accumulated Depreciation",
    "SubAccount": false,
    "FullyQualifiedName": "Accumulated Depreciation",
    "Active": true,
    "Classification": "Asset",
    "AccountType": "Fixed Asset",
    "AccountSubType": "OtherFixedAssets",
    "CurrentBalance": 0,
    "CurrentBalanceWithSubAccounts": 0,
    "domain": "QBO",
    "sparse": false,
    "Id": "4",
    "SyncToken": "2",
    "MetaData": {
      "CreateTime": "2014-03-09T07:48:23-07:00",
      "LastUpdatedTime": "2014-03-09T11:17:48-07:00"
    }
}
(在玛纳斯的回答中,我还尝试了下面的美元货币块,只是为了好玩。没有任何变化。)


在这两种情况下都不会发生任何事情,响应仍然是我上面的响应。

帐户实体不支持稀疏更新

请尝试完全更新。它会起作用的

我已经从UI创建了一个子帐户,并将其作为子帐户和非子帐户检索(通过在UI中进行更改)。。以下是两个回答

子账户

{
   "Account":{
      "Name":"TEST_SUB_ACCNT",
      "SubAccount":true,
      "ParentRef":{
         "value":"54"
      },
      "Description":"Sub Account",
      "FullyQualifiedName":"TEST_PARENT_ACCNT:TEST_SUB_ACCNT",
      "Active":true,
      "Classification":"Asset",
      "AccountType":"Bank",
      "AccountSubType":"Savings",
      "CurrentBalance":200.0,
      "CurrentBalanceWithSubAccounts":200.0,
      "CurrencyRef":{
         "value":"USD",
         "name":"United States Dollar"
      },
      "domain":"QBO",
      "sparse":false,
      "Id":"55",
      "SyncToken":"0",
      "MetaData":{
         "CreateTime":"2014-03-09T12:16:11-07:00",
         "LastUpdatedTime":"2014-03-09T12:16:11-07:00"
      }
   },
   "time":"2014-03-09T12:19:16.669-07:00"
}
非子账户

{
   "Account":{
      "Name":"TEST_SUB_ACCNT",
      "SubAccount":false,
      "Description":"Sub Account",
      "FullyQualifiedName":"TEST_SUB_ACCNT",
      "Active":true,
      "Classification":"Asset",
      "AccountType":"Bank",
      "AccountSubType":"Savings",
      "CurrentBalance":200.0,
      "CurrentBalanceWithSubAccounts":200.0,
      "CurrencyRef":{
         "value":"USD",
         "name":"United States Dollar"
      },
      "domain":"QBO",
      "sparse":false,
      "Id":"55",
      "SyncToken":"1",
      "MetaData":{
         "CreateTime":"2014-03-09T12:16:11-07:00",
         "LastUpdatedTime":"2014-03-09T12:20:19-07:00"
      }
   },
   "time":"2014-03-09T12:20:38.342-07:00"
}
使用devkit生成的更新请求(不起作用)


谢谢

Manas,我正在尝试全面更新(并修改了我的回复)。还是没有骰子。你介意将更新请求主体粘贴在这里吗?这样我就可以看到我的更新请求主体中可能缺少的内容了?非常感谢。嗨,HaPsantran,我用devkit试过了,但正如你提到的子帐户,它没有变为父帐户。它看起来像一只虫子。我将为此提出一个bug并更新此帖子。我已经在我的原始帖子中粘贴了帖子请求男孩。感谢是服务中的一个问题。我会更新这篇文章,提到发布日期和版本号。谢谢这是否意味着我们能够跟踪问题何时得到解决?您是否可以与我们分享ETA?此问题的解决方案尚未确定优先级。但它会尽快修复。您可以看到,这已在下一页中提到-。我会尽快更新这篇文章,只要我得到任何关于这个的信息。
{
   "Account":{
      "Name":"TEST_SUB_ACCNT",
      "SubAccount":false,
      "Description":"Sub Account",
      "FullyQualifiedName":"TEST_SUB_ACCNT",
      "Active":true,
      "Classification":"Asset",
      "AccountType":"Bank",
      "AccountSubType":"Savings",
      "CurrentBalance":200.0,
      "CurrentBalanceWithSubAccounts":200.0,
      "CurrencyRef":{
         "value":"USD",
         "name":"United States Dollar"
      },
      "domain":"QBO",
      "sparse":false,
      "Id":"55",
      "SyncToken":"1",
      "MetaData":{
         "CreateTime":"2014-03-09T12:16:11-07:00",
         "LastUpdatedTime":"2014-03-09T12:20:19-07:00"
      }
   },
   "time":"2014-03-09T12:20:38.342-07:00"
}
{ "AccountSubType" : "Savings",
  "AccountType" : "Bank",
  "Active" : true,
  "Classification" : "Asset",
  "CurrencyRef" : { "name" : "United States Dollar",
      "value" : "USD"
    },
  "CurrentBalance" : 200.0,
  "CurrentBalanceWithSubAccounts" : 200.0,
  "Description" : "Sub Account",
  "FullyQualifiedName" : "TEST_PARENT_ACCNT:TEST_SUB_ACCNT",
  "Id" : "55",
  "MetaData" : { "CreateTime" : "2014-03-10T00:46:11+05:30",
      "LastUpdatedTime" : "2014-03-10T10:16:15+05:30"
    },
  "Name" : "TEST_SUB_ACCNT",
  "SubAccount" : false,
  "SyncToken" : "2",
  "domain" : "QBO",
  "sparse" : false
}