Query Subscription Contracts from previous app

Hello!

I’m creating a custom Shopify app to manage Subscription Contracts. Right now I’m working on the migration from the old app the company was using to mine, but when when querying the Subscription Contracts with GraphQL I’m not getting the ones belonging to the old app.
My plan is to keep using the existing Subscription Contracts.
I understand that the Subscription Contracts are store in Shopify, and belongs to my store, no the app, right? So why I’m not getting the old subscription contracts in GraphQL?

This is query I’m using:

query GetSubscriptionContracts {
          subscriptionContracts(first: 50){
            edges {
              node {
                id
                status
                createdAt
                customer {
                  id
                }
                nextBillingDate
}
}
}
}

Thank you in advance for your help!

Hi Raisel,

I am seeing there’s a scope for read_own_subscription_contracts but none for reading Subscription Contracts created by other apps. Have connected with the relevant team to see if it is possible to get data on Subscription Contracts created by other apps.

1 Like

Hello Liam, hope everything is going well.
Is there any updates on this topic?

Regards

Raisel Castellanos
8135621573
castellanosraisel@gmail.com

Hi again Raisel,

After investigating this it does seem that the behaviour that you’re seeing is expected. Contracts are owned by apps - not to the store. If you want to migrate contracts from one app to the other you’ll need to follow this process on contract imports Migrating existing subscription contracts to Shopify

1 Like