Recurring Charges API For GraphQL

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.
RecurringApplicationCharge - REST

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!

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.