New Shopify Certification now available: Liquid Storefronts for Theme Developers

How do I get all BillingCycles for a Subscription Contract

Solved
thanh_mohc
Shopify Partner
2 0 0

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