Quantity not getting of inventory item for bundle products

Hello ,

We are facing an issue to get quantity for inventory item from inventory API if product is created from bundles app.

Can we get any status from product that it is bundled or not from shopify rest API or graphQL or any other work around? we have tried same but do not receive that.

Due to this we can manage availability status [instock/outstock] of product which is bundled.

Please let us know if anyone is facing the same issue.

Regards,
Viral Mandaliya

1 Like

Out of curiosity why not just look at the inventory_quantity under variants under the product? That will show whether the bundle is in stock or not.

Hello,

Is there any way we can get status that product is bundle or not as we manage quantity based on online locations. If the qty added to product > variants including all location which is not online then there will be an issue to update exact status of product [instock/outstock].?

1 Like

Looks like the requiresComponents field on ProductVariant object:

https://shopify.dev/docs/api/admin-graphql/2023-10/objects/productvariant