Billing API - recurring charge or app subscription

luke1988
Tourist
8 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!

0 Likes
CalD
Shopify Staff
Shopify Staff
133 18 20

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

0 Likes