I am having a tough time pinning this down. In general when I query the GraphQL API for billing info I get the correct currentPeriodEnd which is 30 days after the charge was activated like so:
What am I supposed to be using to determine the billing periods? If a store installed and activated a charge on 2020-04-22T21:23:47Z the billing period should end on 2020-05-22 21:23:25 UTC not 2020-04-29T20:08:52Z
Is this because this user is on a usage based plan? When users are on paid
plans and uninstall then install again the billing period resets.
Also, how should I know if a user is inside the trial period or not? The
GraphQL api returns a period end date and trial days but I have no way to
know if the trial has ended. As of right now I am having to make a call to
the legacy REST API in conjunction with the GraphQL api to try and figure
out if a Shop is within their trial. Is there a better way to go about
this?
Is the created at date always the same as the date the charge was
activated? Would it be possible to also add the activated/confirmed
timestamp to GraphQL?
Can you confirm that the free trial for a user only starts upon activation rather than AppSubscription creation?
If I want to extend the free trial of a merchant that already has an active AppSubscription instance and I create a new charge that they accept, will their new free trial start from the activation time of the new AppSubscription or the previous AppSubscription?