Encountering "Not Found" error while creating subscription

We are trying to create subscription for the store which installed our app. When trying to create a subscription id it is working fine when trying out in the test development store.

But on shopify app review, when user trigger for the subscription creation, below graphql endpoint the throwing the error as “Not Found”

https://<STORE_NAME>myshopify.com/admin/api/2023-01/graphql.json
Query:

mutation AppSubscriptionCreate($name: String!, $lineItems: [AppSubscriptionLineItemInput!]!, $returnUrl: URL!, $trialDays: Int, $test: Boolean) { appSubscriptionCreate(name: $name, returnUrl: $returnUrl, lineItems: $lineItems, trialDays: $trialDays, test: $test) { userErrors { field message } appSubscription { id } confirmationUrl } }

Following response is thrown from the graphql API:

{“errors”:“Not Found”}

Hello Kamalnathlp,

Unfortunately we don’t really have any insight on this error. This forum is primarily focused on the Subscriptions API, which is utilized for Products with Selling Plans to establish recurring subscriptions, rather than app subscriptions.

I would suggest redirecting your question to the Shopify Apps board. I am confident that the experts there will be able to assist you with your issue.

Thank you!

Hey @kamalnathlp

Are you able to capture the response ID from the headers of the request returning not found?