QuickBooks项目api中仅过滤服务和非库存类型的项目

问题描述 投票:0回答:1

Item API Documentaiton中,我们可以看到可以从中进行过滤/排序的不同类型的项目。而且我只对Item.Type = 'NonInventory' OR Item.type = 'Service'感兴趣。

API查询

SELECT * from Item where Active IN (true, false) AND Type IN ('Service', 'NonInventory')

但是我只能将所有项目作为Service类型。甚至NonInventory类型的item.type也为Service。现在,如何通过检查Service或任何其他属性来确定哪个是NonInventory,哪个是Status?我也想从响应中排除CategoriesBundle

quickbooks quickbooks-online
1个回答
0
投票

在API端点中传递minor_version = 42后,我得到了正确的结果,并且只能过滤ServiceNonInventory项目。

参考:https://developer.intuit.com/app/developer/qbo/docs/develop/explore-the-quickbooks-online-api/minor-versions#minor-version-summary

© www.soinside.com 2019 - 2024. All rights reserved.