What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

Billing API - recurring charge or app subscription

Billing API - recurring charge or app subscription

luke1988
Tourist
9 0 0

Hi!

I have a Shopify App that currently uses REST API recurring_charge endpoint for creating a recurring charges (/admin/api/2021-04/recurring_application_charges.json)

I am migrating from REST API recurring_charges to GraphQL API and app_subscriptions (primary for APP_SUBSCRIPTION_UPDATED webhook).

I need to verify this:

For example ID=22345941191

works here:

/admin/api/2021-04/recurring_application_charges/22345941191.json

and also works here:

query {
node(id: "gid://shopify/AppSubscription/22345941191") {
...on AppSubscription {
createdAt
currentPeriodEnd
id
name
status
test

 

So, do I understand this correctly? GraphQL's App subscription is kind of an alias for REST recurring_charges?

Thanks!

Reply 1 (1)

CalD
Shopify Staff
140 22 36

Hey @luke1988,

Yes, that's correct. 

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog