Is there a way to filter catalog items by stock using the GraphQL API? I’ve noticed that there is a stockLevel
filter available, but I can’t find a way to exclude items with stockLevel: [OUT]
.
Additionally, using stockLevel: [OUT]
doesn’t seem to return catalog items with 0 quantity as expected.
If this functionality isn’t possible with the GraphQL API, is there an alternative method using REST?
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Build and Manage a Simple Inventory
Enable Stock Conversion
Square GraphQL
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.