Shopify / mobile-buy-sdk-ios

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
452 stars 199 forks source link

How to get totalInventory #1045

Closed Komal2905 closed 4 years ago

Komal2905 commented 4 years ago

I need total inventory of product and I can see in following document that It can get by totalInventory field. https://help.shopify.com/en/api/graphql-admin-api/reference/object/product?api[version]=2019-10

but can see this value in Storefront.ProductQuery

tristan-potter commented 4 years ago

That link is for the Admin API, which is used to extend the merchant experience. These SDK's use the Storefront API, which is used to build custom storefronts (buying experiences).

totalInventory will be available in the 2020-04 version of the Storefront API, and this SDK will be updated shortly after the API is publicly released. Note that you will need the unauthenticated_read_product_inventory scope to read product inventory.