Calculation of nextBillingDate on Subscription Contract ignores billing anchor

smathur
Tourist
8 0 3

After trying multiple times, it appears to me that nextBillingDate on Subscriptions Contract is always calculated as per the logic below:

Checkout Date (in UTC DateTime) + billing intervalCount * billing interval - 5hrs

In this regards, can somebody please answer the following questions:

1) Calculation of nextBillingDate completely ignores any anchor specified in the billing/delivery policy. For example, consider a subscription plan with monthly billing/delivery, anchor specified as 15th day of month and cutoff as 0 days. If the plan is purchased on 2nd February, the nextBillingDate populated on Subscription Contract is 2nd March instead of 15th March. Isn't this behavior incorrect? Please explain.

2) What should happen when the nextBillingDate is reached? Does Shopify triggers anything? Is the Subscription App required to track this date and trigger a Billing Attempt when the nextBillingDate of a Subscription Contract is reached?

3) Once a Billing Attempt is triggered on the nextBillingDate of a Subscription Contract, who is responsible for calculating and updating the nextBillingDate to the next billing cycle?

jlalande
Shopify Staff
Shopify Staff
15 2 9

Hello @smathur ,

1) Calculation of nextBillingDate completely ignores any anchor specified in the billing/delivery policy.
For example, consider a subscription plan with monthly billing/delivery, anchor specified as 15th day of month and cutoff as 0 days.
If the plan is purchased on 2nd February, the nextBillingDate populated on Subscription Contract is 2nd March instead of 15th March.
Isn't this behavior incorrect? Please explain.

We are currently investigating this, we will get back to you with an answer.

2) What should happen when the nextBillingDate is reached? Does Shopify triggers anything? Is the Subscription App required to track this date and trigger a Billing Attempt when the nextBillingDate of a Subscription Contract is reached?

Yes, the app is responsible to track, schedule, and automate billing attempts on a subscription contract when the date is reached.

3) Once a Billing Attempt is triggered on the nextBillingDate of a Subscription Contract, who is responsible for calculating and updating the nextBillingDate to the next billing cycle?

 The app has the responsibility to update the nextBillingDate on the contract. The first nextBillingDate is set by Shopify, but the subsequent ones are meant to be calculated and updated by the app.

DanielTehrani
Explorer
49 1 7

I'm encountering the same issue.

When I purchase a subscription with interval = 1 DAY, the nextBillingDate set by Shopify does not reflect the 24h interval.

Purchase subscriptpion on 2021-03-30T08:32:00 UTC, and nextBillnigDate is set to 2021-03-31T04:00:00 UTC.

Appreciate it if someone could tell me why this happens and how to deal with it.

0 Likes
HA-Divyank
New Member
1 0 0

Is there any update for point 1, I'm facing the same issue, cut-off or any anchors are not being calculated for nextBillingDate

0 Likes