Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Re: appSubscriptionCreate API gives internal server error on live stores

Solved

appSubscriptionCreate API gives internal server error on live stores

abhishekscapic
Visitor
2 1 0

I am using appSubscriptionCreate mutation(  https://community.shopify.com/c/Shopify-APIs-SDKs/appSubscriptionCreate-on-a-live-application-Intern... ), with line item being of type - appRecurringPricingDetails. This works fine as long as test is set to false or null. 

On a dev store , turning test to true gives the desired result, where I am prompted to get a higher plan for the store. 
We went live based on this. Now, on a live store every attempt gives this error:

image.png

 

here's the query variable for more clarity:

image.png

 

Help would be appreciated.

 

Accepted Solution (1)

abhishekscapic
Visitor
2 1 0

This is an accepted solution.

Update:

 

This happens when you are given access to your client's store and you try to add any kind of payment from you app. Managed stores don't have access to store's payment APIs. Only the store owner can initiate those. Nothing wrong with the query. 
It totally makes sense to put this kind of restriction. 

View solution in original post

Reply 1 (1)

abhishekscapic
Visitor
2 1 0

This is an accepted solution.

Update:

 

This happens when you are given access to your client's store and you try to add any kind of payment from you app. Managed stores don't have access to store's payment APIs. Only the store owner can initiate those. Nothing wrong with the query. 
It totally makes sense to put this kind of restriction.