Recurring Charges API For GraphQL

Recurring Charges API For GraphQL

sbdev
Shopify Partner
49 0 10

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?


Replies 2 (2)

csam
Shopify Staff (Retired)
267 40 51

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.

k1ltr0
Shopify Partner
4 0 0

I also faced some challenges locating the correct method. In the end, I used GraphQL autocomplete to access the subscription data for my app.

k1ltr0_0-1728088170142.png

 

{
	currentAppInstallation {
		activeSubscriptions {
			name
			status
			test
			trialDays
			returnUrl
			createdAt
			id
		}
		allSubscriptions (first: 10) {
			nodes {
				status
			}
		}
	}
}

 

 

I hope this information is helpful.