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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Access Subscription API

Access Subscription API

clare_oneill
Shopify Partner
5 0 0

I have requested and been granted access to the Subscription API.
I have created an embedded app for testing.
The api_access screen for the app says that I have full access for the Subscription API.
But when I query subscriptionContracts from the embedded app, I get Access Denied response.
(Querying products returns a valid response, so I know that the app is working correctly).
Similarly - I can create a webhook using topic PRODUCTS_UPDATE, but trying to create a webhook using SUBSCRIPTION_CONTRACTS_CREATE returns null.
What am I missing? 

Replies 3 (3)

Liam
Community Manager
3108 344 910

Hi Clare_oneill,

 

Just to confirm, you do have the necessary scopes, read_own_subscription_contracts and write_own_subscription_contracts?

 

Also if you have made recent changes to your app's scopes, you may need to reinstall the app to your development store for the changes to take effect.

 

Try the above and let us know if you're still running into issues.

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

clare_oneill
Shopify Partner
5 0 0

Hi Liam,
Thanks for this.
I have the necessary scopes included and have reinstalled the app, but still seeing the same results.
Thanks

Liam
Community Manager
3108 344 910

If scopes are all correct and the app is configured correctly, I'd recommend reaching out to our partner support who can take a deeper look into your app, to see if there's errors visible on our side. 

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