#satvik-techie_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1295361366000926781
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- satvik-techie_code, 5 days ago, 25 messages
- satvik-techie_code, 5 days ago, 45 messages
hi there!
yep, the error seems pretty clear:
billing_cycle_anchor cannot be later than next natural billing date (1731586619) for plan
what's your question?
i am creating a subscription ( montly )
and taking 1 st payment instantly
and taking remaining payments using subscription
let say i am taking 1st payment on 14-10-2024
and remaining 11 payment schedule on 11-11-2024 onwards on same customer id
every month
but after taking 1st payment , and creating subscription sequentially generating error
as mentioned
can you please lookout why i am getting that error ?
in the request you shared:
- you created the monthly Subscription on 2024-10-14 at 12:16:58 UTC
- and you set billing_cycle_anchor: "1731586911" (2024-11-14 at 12:21:51)
as you can see, the difference between the two dates is more than one month, which is not possible as explained in the error message
i got the error, but how i am passing bill_cycle_anchor = 2024-11-14
and want to create subscription
but why do you need bill_cycle_anchor? the default billing cycle (in exactly one month) doesn't work for you?
billing_cycke_anchor is not fix in our case
thats why
sometime billing_cycle_anchor may be in 15 days
from first payment
then use billing_cycle_anchor, but make sure it's in less than one month, otherwise it can't work
but i also checked from dashboard, it is working
if i pass billing_anchor_date > 1 month
*dashboard - stripe dashboard
can you share a request ID where it worked?
yeah let me share
that's a Subscriptoin Schedule
Hi there ๐ jumping in as my teammate needs to step away soon.
As you can see in the log for the request you shared:
https://dashboard.stripe.com/test/logs/req_PlxiNKvDkl19Y9
the dashboard is making a pretty different request from what your integration is, because it's not possible to set the billing_cycle_anchor for a Subscription beyond the next billing period.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
you can create one with the API: https://docs.stripe.com/billing/subscriptions/subscription-schedules
okay
That's why the dashboard is creating a Subscription Schedule instead, which is set up to create a Subscription later in the future. It doesn't immediately create the Subscription object.
https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases#start-subscription-future
thanks