#nukesforbreakfast_docs

1 messages ยท Page 1 of 1 (latest)

hazy shoalBOT
#

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

๐Ÿ“ 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.

lusty mural
#

Hello

#

Really best thing to do is to test it out to get the best understanding on how it works here! So glad to hear you are doing that.

#

Overall you control proration via proration_behavior as stated in the docs you shared. If you set it to none then the user won't be charged for the backdated time.

rain bear
#

so why is there a proration at all when a subscription is backdated? Is the subscription billing interval not set to the first of every month if I backdate to Sept 1?

lusty mural
#

Yeah that is dependent on whether you also set billing_cycle_anchor

#

If you don't then the billing anchor will be the backdate which is the 1st of the month in your scenario.

rain bear
#

ok, and does the pending_invoice_item_interval align based on the billing_cycle_anchor?

lusty mural
rain bear
#

working on that now. I just need to update my test fixtures so I can set an backdated time.

hazy shoalBOT
rain bear
#

I have a question about auto_advance behavior on subscription invoices

#

if I later turn auto_advance back on in the API, does the invoice finalization happen immediately if it's been more than an hour since the draft invoice was originally created, or does it instead restart the timer?

#

also, it looks like I'm not allowed to backdate in billing mode flexible?

stripe._error.InvalidRequestError: Request req_ii6jUhZlvenaOD: You cannot create a schedule with billing_mode.type=flexible with start_date in the past.

unique wasp
#

Hi ๐Ÿ‘‹ changing of the guard here, i'll be taking over the thread. Getting caught up

rain bear
unique wasp
#

Correct, setting a date in the past wouldn't not be possible in that context.

Regarding auto_advance, if you turn it back on the invoice won't finalize immediately but will finalize after the grace period starting from when auto_advance was turned on. If you want to finalize it immediately you can use the api finalize it without delay. https://docs.stripe.com/api/invoices/finalize

rain bear
#

Why is a date in the past not possible in a schedule? Is it different than setting a backdated start date on a subscription?

unique wasp
#

Schedules are designed with automating future changes in mind. It's not the same thing as backdating the start of a subscription.

rain bear
#

Oh

#

So if I want to backdate a subscription, I should create it first, then create the schedule from the subscription and add on the next phase?

#

In the case going from $50 first year to $25 every year thereafter.

unique wasp
#

That is correct!

rain bear
#

Ok, when creating the subscription schedule from the subscription, can I include the next phase or does that need to come in a later update call?

unique wasp
rain bear
#

is there an implicit first phase that is always based off the subscription the schedule is being created from?

unique wasp
#

Good catch, in that case a seperate call would be needed

rain bear
#

is there something going on with stripe?

#
stripe._error.APIConnectionError: Unexpected error communicating with Stripe.  If this problem persists,
let us know at support@stripe.com.

(Network error: ReadTimeout: HTTPSConnectionPool(host='api.stripe.com', port=443): Read timed out. (read timeout=80))
unique wasp
#

Checking if there are any incidents

#

Are you still having this issue?

hazy shoalBOT