billing_cycle_anchor cannot be later than next natural billing date
See original GitHub issueHi 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:
- Created 6 years ago
- Comments:12 (5 by maintainers)
@mjain1990 did you find a resolution to this? I have been using it with similar context for awhile.
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.