Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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
10 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.

Hi, I’m Ric from Codename.cl. I develop Shopify apps like Ship Smart (custom shipping rates) and Product Sentinel (pricing alerts). Open to new projects & collaborations!

Hola, soy Ric de Codename.cl. Desarrollo aplicaciones de Shopify como Ship Smart (custom shipping rates) y Product Sentinel (pricing alerts). Estoy abierto a nuevos proyectos y colaboraciones!