A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello,
Could anyone please provide me the documentation link of "Recurring Charges GraphQL API"
I have found the documentation for the REST API for it which is here.
https://shopify.dev/api/admin/rest/reference/billing/recurringapplicationcharge#index-2021-07
But I cannot find the same for the GraphQL. I want to check the user's recurring charges information using graphql.
Does Shopify yet not created the same API for the GRAPHQL or am I missing something?
Thanks in advance for any help?
HI @sbdev
The main documentation for this is under the Billing section of the GraphQL documentation: https://shopify.dev/api/admin/graphql/reference/billing
You can use AppSubscription to find their subscription status: https://shopify.dev/api/admin/graphql/reference/billing/appsubscription
AppRecurringPricing can be used to find the price and payment interval: https://shopify.dev/api/admin/graphql/reference/billing/apprecurringpricing
Hope this helps!
To learn more visit the Shopify Help Center or the Community Blog.
I also faced some challenges locating the correct method. In the end, I used GraphQL autocomplete to access the subscription data for my app.
{
currentAppInstallation {
activeSubscriptions {
name
status
test
trialDays
returnUrl
createdAt
id
}
allSubscriptions (first: 10) {
nodes {
status
}
}
}
}
I hope this information is helpful.