The online store API rest API do not have a way to tell if a theme is 2.0 or vintage

We have been dealing with this issue for months.

We need to be able to know what kind of theme the merchant is using. If they are using a theme 2.0, we just use theme app extensions, if not, we automatically inject assets using the API.

At the moment, the payload that we get when we retrieve a theme does not contain this information. Not even the unstable version of the API has this.

1 Like

Hey @lucasminissale - definitely understand where you’re coming from. You are right that currently if you just call the Theme resource through REST, you wouldn’t immediately know if they’re using an Online Store 2.0 Theme.

However, I was able to do a bit of digging into this on our end for you and found this documentation on Shopify.dev that contains some code using our Node library (if your app uses JavaScript) that you can use to verify if a store is OS 2.0 through identifying if the theme supports app blocks, which are an OS 2.0 only theme feature.

I’m also going to send a note up to our developers to advocate for the OS2.0 information to be included in REST responses on the Theme resource endpoints. I can’t guarantee anything in terms of the info being added, but I definitely get how this would be important information, especially now when merchants are still in the process of transitioning from vintage themes.

More than happy to advocate for a field with that info to be included in response payloads - let me know if we can clarify anything on our end or if you have any thing else related to REST/OS2.0 pops up.

Thanks again for reaching out, really appreciated this post.

Hi Alan,

Thanks for your answer. Unfortunately, you workaround does not help. We need to inmediately know what kind of theme the merchant is using because we need to display different onboarding steps depending on that. This is very frustrating because the Shopify app review team forces our business to use theme app extensions, but this doesn’t work for us because we need to support vintage themes as well, and we need to display different steps depending on what theme type they have. We are in this viscious loop and there is no way out. Very frustrating.

2 Likes