【发布时间】:2014-03-09 18:42:30
【问题描述】:
以文档中的this page 为指导,我正在尝试使此帐户不再成为子帐户(暂时使用the API explorer):
{
"Name": "Accumulated Depreciation",
"ParentRef": {
"value" : null
},
"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"
}
你知道我错过了什么吗?
谢谢!
[在 MANAS 回复后更新:]
我正在尝试完整更新,但没有成功。以下是我尝试过的两个请求的正文:
{
"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"
}
}
(我也在 Manas 的回复中尝试使用下面的美元货币块,只是为了好玩。没有任何改变。)
在这两种情况下都没有发生任何事情,并且响应仍然是我上面的。
【问题讨论】:
标签: quickbooks intuit-partner-platform quickbooks-online