question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

billing_cycle_anchor cannot be later than next natural billing date

See original GitHub issue

Hi Team, I am using 2018-02-06 LATEST version on Stripe API in my integration. I am trying to achieve trial with Combining trials with billing cycle anchor feature for my subscriptions. My plan is created with monthly interval and 30 day free trial. So when I subscribe to a plan with customer profile I pass “trial_end” to next 30 days of current date. So from current date (lets say 21 feb 2018) i add up 30 days it becomes 23 march 2018. I set my billing_cycle_anchor to 1 april 2018. What i want is the user to have trial till 23 march and then i create a prorated billing for next 24 to 31 march 2018. Then my billing cycle to start from 1 april 2018. My next billing date is becoming 21 march 2018 where for 30 days trial it should be 23 march. But I get error when I make subscription call

{ "trial_end": "1521809805", "items": { "0": { "quantity": "1", "plan": "thanks-1000-emp-monthly" } }, "prorate": "true", "billing_cycle_anchor": "1522587405", "customer": "cus_CMgW8WDANR2Nx0", "billing": "charge_automatically" }

Response Body { "error": { "type": "invalid_request_error", "message": "billing_cycle_anchor cannot be later than next natural billing date (1521637005) for plan", "param": "billing_cycle_anchor" } } Can you help me what is wrong in my understanding?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
kishaniocommented, Aug 30, 2018

@mjain1990 did you find a resolution to this? I have been using it with similar context for awhile.

0reactions
ROBERT-MCDOWELLcommented, Sep 22, 2022

don’t need help, I use trial to delay the subscription for now. to you and support team, if this issue has been opened here that’s because the doc is not clear and looks like a bug. so please modify the doc to be less confused and less people will be confused.

Read more comments on GitHub >

github_iconTop Results From Across the Web

billing_cycle_anchor cannot be later than next natural ... - GitLab
This is the parameter that specifies the start date for the subscription. // If omitted the subscription will start immediately.
Read more >
Anchor a Stripe subscription after next natural billing date
As you note, Stripe does not allow billing periods of longer than 12 months but there are some workarounds for it. One option...
Read more >
Setting the subscription billing cycle date | Stripe Documentation
If a month doesn't have the anchor day, the subscription will be billed on the last day of the month. For example, a...
Read more >
Specifying the billing cycle anchor when creating new ...
E.g. if a user signs up on the 15th of Feb their card won't be charged until the 1st of March. (Basically giving...
Read more >
Stripe Ignoring billing_cycle_anchor when creating ...
I am creating a subscription with a billing cycle anchor via the Stripe PHP library but it bills the customer immediately for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found