#coryschires_api

1 messages ¡ Page 1 of 1 (latest)

quiet stoneBOT
#

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

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

spice parcel
#

TLDR
I am trying to determine if I can change the payment method for an open invoice, and would like to fully understand the behavior.

Problem

  1. Customer has an open invoice where the collection_method is set to autopay.
  2. Later, the customer changes their collection_method to send_invoice.
    • This means any newly created invoices will be send_invoice (Good, that's what I want)
    • But the collection_method for previous, open invoices will not change (Sensible but not what I want)

When our customers chang their collection_method, they assume it will effect all invoices (i.e. existing, open invoices and new invoices as they're created). So I'm looking to achieve this behavior.

Solution?
Seems like I could achieve this by using webhooks (and I think I can figure that out without your help).

Here's my question:

  1. When I change the collection_method to send_invoice for an open invoice, will Stripe automatically send an invoice email to the customer? Or do I need to manage this step as well in my webhook code?
  2. Are there any other gotchas / tips I should be aware of?
#

The bot turncated my question text. Here's the full write up ^^^

analog barn
spice parcel
#

And, to be sure, that means stripe will send the invoice email even if the invoice has already been open for several weeks?

quiet stoneBOT
lofty linden
#

Hello
Taking over here and catching up..

Once the invoice has been finalized, you can't change it's collection method - https://docs.stripe.com/api/invoices/update#update_invoice-collection_method

So I don't believe you can update an open invoice's collection method using the API.

Can you share more context around how you're letting customers choose their collection method and what exactly are you updating?