Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Shopify functions check for subscription

Shopify functions check for subscription

Leon2
Visitor
2 0 1

I would like to check in my Shopify functions if a user has an active subscription to my app. I can't find it anywhere in the documentation. How can i make sure the functions are only used whenever the user has an active subscription?

Replies 2 (2)

Liam
Community Manager
3108 344 911

Hi Leon - are you seeing instances where stores that don't have an active Shopify App Store subscription for your app are still able to execute functions?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Huptech-Web
Shopify Partner
1169 234 265

Hello @Leon2 

Once you can make an external API call, utilize it to verify the status of a subscription. Pass the `shop_name` parameter in the API call, check its existence in your database, and then verify if the subscription is active.

Also, you can refer to https://community.shopify.com/c/shopify-apps/check-active-subscription-in-app-theme-extension/m-p/26... this link.

If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.
(GD)

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required