Retrieving the last billing cycle using shopify graphQL

66 Views Asked by At

Is there a way in shopify graphQL to determine the total number of a billing cycles the subscription contract has ?

I've tried the following query but it requires either billingCyclesDateRangeSelector or billingCyclesIndexRangeSelector, since I do not have the value of max billing cycle I do not have idea about the max date range or max index

  subscriptionBillingCycles(contractId: "") {
    nodes {
      cycleIndex
      cycleEndAt
    }
  }
0

There are 0 best solutions below