For discussing the development and integration of subscription-enabled shops using Shopify's Subscription APIs.
Shopify provides options for selling a product as a subscription within the admin - instructions here: https://help.shopify.com/en/manual/products/subscriptions/setup#subscription-products
Specifically: Select whether to sell the product as a subscription only:
Once this box is checked or unchecked, when taking a look at the product JSON there is no identifier for if this box is checked or not.
What's the best way for an application to see if this box is checked or unchecked if this selection does not appear in the product JSON?
Feels like it would be helpful if on the product JSON something such as this appears: "subscription_only: true" or "subscription_only: false".
Hi PaulVomberg,
Certainly! You can use Product.requiresSellingPlan from the Admin API or the Storefront API to find whether or not a product is subscription only.
I hope this is useful.
Best,
Juan
To learn more visit the Shopify Help Center or the Community Blog.