I'm developing a function that retrieves all the products from shopify from the API json
my problem is that i want to avoid an specific product_type
I want to do something like :
Solved! Go to the solution
This is an accepted solution.
There are only two practical ways to do what you want, as far as I know. One, is you are using Storefront API token to get your product listing. With that, just avoid putting bundle products in your listing. Problem Solved.
The second way, is you are using a back-end API, either Rest or GraphQL. In both cases, you can download products to your App, and in your App you'd filter out bundle products. No sweat. Problem solved.
So there you go. The two methods with two solutions.