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.

Check if app users are on a test payment plan.

Check if app users are on a test payment plan.

Olllie
Shopify Partner
121 11 23

Hi team

 

Quick question - Is there any way to find out if our app users are on a regular or test recurring subscription?

 

I'm a bit worried that some users might have slipped through the cracks and got charged for test subscriptions when I accidentally included the test flagging for a couple of days.

 

Cheers

 

Ollie

Ollie | Founder & Developer of autoBlogger and autoSchema

autoBlogger: Seamlessly scheduled, fully automated, AI-powered, and SEO-optimised blogging with FAQs, table of contents and other features! Start your 14-day free trial today!


autoSchema: Fully automated and continuously updated Google structured data, including duplicate data removal. Simple to install – try it now!


Discover more at autoBlogger.bot!

Reply 1 (1)

Liam
Community Manager
3108 344 911

Hi Ollie!

 

You should be able to use the RecurringApplicationCharge resource in the Billing API to return a list of recurring charges for your app. Then you can iterate through the list of subscriptions returned in the API response to check each subscription's status and test flag (there is a test property for the 

RecurringApplicationCharge resource). 

 

Hope this helps!

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