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”}