使用v3 QBO API(Intuit合作伙伴平台的一部分),我查询包含销售税的发票,表示如下:
"TxnTaxDetail": {
"TxnTaxCodeRef": {
"value": "3"
},
"TotalTax": 35.13,
"TaxLine": [
{
"DetailType": "TaxLineDetail",
"Amount": 35.13,
"TaxLineDetail": {
"NetAmountTaxable": 395.87,
"TaxPercent": 8.875,
"TaxRateRef": {
"value": "4"
},
"PercentBased": true
}
}
]
},
当我运行资产负债表(使用网络用户界面)时,我可以清楚地看到哪个销售税应付账户的点击数为35.15美元,但我无法通过API 来了解如何访问这些信息。我真的想。
我尝试跟踪业务对象的跟踪,希望以这种方式找到它,从TaxRate开始,当查询Id 2时,结果是:
{
"RateValue": 8.875,
"AgencyRef": {
"value": "2"
},
"domain": "QBO",
"Name": "NYC Sales Tax",
"SyncToken": "0",
"SpecialTaxType": "NONE",
"DisplayType": "ReadOnly",
"sparse": false,
"Active": true,
"MetaData": {
"CreateTime": "2013-02-04T15:18:23-08:00",
"LastUpdatedTime": "2013-02-04T15:18:23-08:00"
},
"Id": "4",
"Description": "Sales Tax"
}
我认为也许AgencyRef有我的问题的答案,所以查询TaxAgency 2,我得到:
{
"SyncToken": "0",
"domain": "QBO",
"DisplayName": "New York State Taxes and Finance",
"TaxTrackedOnSales": true,
"TaxTrackedOnPurchases": false,
"sparse": false,
"Id": "2",
"MetaData": {
"CreateTime": "2013-02-04T15:18:22-08:00",
"LastUpdatedTime": "2013-02-04T15:18:22-08:00"
}
}
现在这就是我觉得自己走到了尽头的地方。
采取不同的策略,我查看了TxnTaxDetail的TaxCode Ref,但我没有从TaxCode 3找到任何帮助:
{
"SyncToken": "0",
"domain": "QBO",
"TaxGroup": true,
"Name": "NYC Sales Tax",
"Taxable": true,
"PurchaseTaxRateList": {
"TaxRateDetail": []
},
"sparse": false,
"Active": true,
"Description": "NYC Sales Tax",
"MetaData": {
"CreateTime": "2013-02-04T15:18:22-08:00",
"LastUpdatedTime": "2013-02-04T15:18:22-08:00"
},
"Id": "3",
"SalesTaxRateList": {
"TaxRateDetail": [
{
"TaxTypeApplicable": "TaxOnAmount",
"TaxRateRef": {
"name": "NYC Sales Tax",
"value": "4"
},
"TaxOrder": 0
}
]
}
}
我在这里缺少什么? 是否真的无法通过API访问此交易的销售税部分来自哪个帐户的信息?
答案 0 :(得分:0)
QBO Api根据此逻辑将销售税过帐到默认负债帐户 -
交易=> TaxRate => TaxAgency => LiabilityAccount。 但是,api不够智能,无法为您提供此默认销售税帐户的详细信息。我们将来可能会支持这一点。