Questions, troubleshooting, and feedback on Subscription APIs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
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
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022