How to use GraphQL API query Product Lots Expiration Date and Quantity?

We need to query the expiration date and quantity of each product for our business needs.
Currently, we can see the Lots information on the product page.
The query expiration_lots API doesn’t provide the quantity, and the inventory API doesn’t provide the Lots information either.
How can we query the Lots information through GraphQL (EX: Quantity and Expiration Date…)?

Hello @jiasian! Currently, the best way to get that information is to query warehouse_products. That query then has a connection to locations that shows quantity and lot in each bin where the product exists.
Have a great day!

1 Like

Thanks for your help.
It’s working !!

1 Like