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.

How do I get all BillingCycles for a Subscription Contract

Solved

How do I get all BillingCycles for a Subscription Contract

thanh_mohc
Shopify Partner
3 0 1

Hi,

 

As per this doc https://shopify.dev/apps/subscriptions/billing-cycles, I have usedsubscriptionBillingCycleScheduleEdit to skip a billing cycle. Once that's done, how do I get all the billing cycles for a given contract? so that I can act accordingly, ie. to decide whether or not to trigger a billingAttempt based on the data coming back for a cycle.

 

Thanks in advance.

Accepted Solution (1)

JuanHoyos
Shopify Staff
43 4 6

This is an accepted solution.

Hi @thanh_mohc.

 

I believe you are looking for the subscriptionBillingCycles query?

 

Best.

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Reply 1 (1)

JuanHoyos
Shopify Staff
43 4 6

This is an accepted solution.

Hi @thanh_mohc.

 

I believe you are looking for the subscriptionBillingCycles query?

 

Best.

To learn more visit the Shopify Help Center or the Community Blog.