#satvik-techie_api

1 messages ยท Page 1 of 1 (latest)

restive voidBOT
#

๐Ÿ‘‹ 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.

formal lion
#

req_NTSDZe9us9d4KA

#

can you please see the error i am getting

#

?

willow forum
#

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?

formal lion
#

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 ?

willow forum
#

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
formal lion
#

i got the error, but how i am passing bill_cycle_anchor = 2024-11-14

#

and want to create subscription

willow forum
#

but why do you need bill_cycle_anchor? the default billing cycle (in exactly one month) doesn't work for you?

formal lion
#

billing_cycke_anchor is not fix in our case

#

thats why

#

sometime billing_cycle_anchor may be in 15 days

#

from first payment

willow forum
#

then use billing_cycle_anchor, but make sure it's in less than one month, otherwise it can't work

formal lion
#

but i also checked from dashboard, it is working

#

if i pass billing_anchor_date > 1 month

#

*dashboard - stripe dashboard

willow forum
#

can you share a request ID where it worked?

formal lion
#

yeah let me share

restive voidBOT
formal lion
#

req_PlxiNKvDkl19Y9

#

plz chk

willow forum
#

that's a Subscriptoin Schedule

teal grove
#

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.

willow forum
formal lion
#

okay

teal grove
formal lion
#

thanks