Why does currentAppInstallation have the field AppSubscriptions?

Highlighted
New Member
3 0 1

Query:

 

{
  currentAppInstallation {
    activeSubscriptions {
      id
    }
  }
}

 

 

In the API reference, it says an AppInstallation:

Represents an installed application on a shop

Further, it says AppSubscriptions: 

Merchants are only permitted to have one subscription to your app at a time. This means if a merchant upgrades or downgrades your app, the old subscription is canceled and is replaced with the new one. When the merchant upgrades or downgrades the app, the new subscription takes the same 30-day app billing cycle as the previous purchase. This also applies when a merchant un-installs and re-installs an app. 

This seems conflicting to me. Are Merchants not the same as Shops?  currentAppInstallation.AppSubscriptions seems to imply 1 AppInstallation to have more than 1 Active AppSubscription, but the API Reference says otherwise.

Shopify Staff
Shopify Staff
181 22 29

Hey @Anselmx3 

I believe you can only have a single active AppSubscription per shop, and I believe Merchant is used in the same context as Shop. 

Kevin_A | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Shopify Partner
33 2 6

Hi @Kevin_A , I'm not sure this explains why AppInstallation.activeSubscriptions is an array if there can only be one active subscription per app installation. Why not a singular AppInstallation.activeSubscription that refers to a singular AppSubscription?