How to Identify if a Shop is a test shop or a live one ?

Developer3
New Member
2 0 0

Hi there,

Is there a way to know if a store is a Test Store ?. I've read the Shop API docs but it looks like there's nothing I can use for this purpose.

Thanks in advance.

Replies 4 (4)
Alex
Shopify Staff
Shopify Staff
1561 81 337

Hello,

The plan_name property of a shop would reveal whether the shop is on an affiliate plan which is what your standard development shop will be on, or trial/any of the other plans we offer if the shop is live.

https://help.shopify.com/api/reference/shop

Cheers.

Alex | 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 the Shopify Help Center or the Shopify Blog

Developer3
New Member
2 0 0

thank you so much for that info, I do see plan_name = affiliate. I didn't know that was the way to identify a test store.

EugeneKim
Shopify Partner
60 3 20

Hi @Alex ,

There are more plan_names partners have to be aware of to ensure that when we do things such as creating UsageCharges with test flags we do so correctly. For example there are staff and partner_test accounts. What other kinds of accounts should we be aware of? Can you provide us a list with descriptions for each possible plan_name value?

Thank you

EugeneKim
Shopify Partner
60 3 20

Hi @Alex ,

We'd really like an exhaustive list of possible plan names so that we can programatically act on them. This has been an open request for years.

https://community.shopify.com/c/shopify-apis-and-sdks/enumeration-of-plan-name-from-get-admin-shop-j...

https://community.shopify.com/c/shopify-apis-and-sdks/knowing-plan-name/td-p/687155

 

Is it possible to have an exhaustive list?