#dev-josue_docs

1 messages ¡ Page 1 of 1 (latest)

winter pendantBOT
#

👋 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/1310889400321708103

📝 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.

lone gulch
#

correction: days_until_due set = 7

blazing meadow
#

Hi there, so are you using collection_method = charge_automatially or send_invoice?

lone gulch
#

apologies:
collection_method = send_invoice

blazing meadow
#

Got it. Yes you can do that. have you tested out?

winter pendantBOT
lone gulch
#

have you tested out?
I have trouble in testing it. The renewal date is still set to the the time when subscription is created. @blazing meadow

#

Not on the date the payment is completed.

gleaming adder
#

what API field is the 'renewal date'? Do you have an example Subscription ID sub_xxx I can look at?

#

but yes overall if you mean billing_cycle_anchor that's normal

#

it's the date the subscription is created, the payment of the invoice does not influence it

lone gulch
#

here @gleaming adder
sub_1QPKhKKvdDIK064PzhRvnFJC

#

what API field is the 'renewal date'?

@gleaming adder I've assumed renewal date refers to the next invoice date. Please correct me if I misused the terms on this one.

gleaming adder
#

I meant more what field in the API you're referring to rather than the Dashboard but yes seems like we're talking about billing_cycle_anchor (which is what determines the current_period_end of the Subscription which is when its next invoice will be)

#

I don't think there's any easy solution to what you're asking for, it's just not how our Subscriptions product is designed. One option might be that when you handle the webhook for the successful initial invoice payment, reset the anchor to now as described in the docs above, to align the billing date. That will generate an extra invoice though so you'd probably also have to do something like apply a 100% off one-time coupon to cancel it out, would need some testing.