QBO - 使用QBO V3 API查询税率时出错

时间:2014-11-20 20:26:01

标签: quickbooks intuit-partner-platform

使用QB API V3从QBO查询TaxeRate时出错。

这是我的要求:

        String query = "Select * FROM TaxRate ";
        List<? extends IEntity> result = service.executeQuery(query).getEntities();

以下是我得到的回报

Some other Exception in SDK or network happened: org.codehaus.jackson.map.JsonMappingException: Can not construct instance of com.intuit.ipp.data.SpecialTaxTypeEnum from String value 'NO_TAX': value not one of declared Enum instance names
 at [Source: N/A; line: -1, column: -1] (through reference chain: com.intuit.ipp.data.TaxRate["SpecialTaxType"])

有人能帮助我吗? 谢谢。

1 个答案:

答案 0 :(得分:0)

服务器端更改(添加新的Enum值)导致此devkit中断。 不久将发布更新版本的devkit及最新版本(XSD)。这将解决问题。

作为临时解决方法,您可以尝试在不使用devkit的情况下调用它。 示例V3调用(使用dev-defined) - https://gist.github.com/IntuitDeveloperRelations/0913b4c224de758fde0a

<强>更新   - 此更改可能很快就会从服务器端回滚。在这种情况下,当前的devkit将按原样运行。我将保持此线程更新。

由于