#jscripts_invoice-advancement
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/1238591243915886613
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, are you asking if disabling retries per invoice is possible? Although you've enabled it on the account, you want to be able to control which invoices are retriable?
yes exactly. we have some invoices that we want retried, and some that we want not retried
so i was initially looking for a way to pass a retry: false param when creating the invoice:
customer: customerId,
collection_method: "charge_automatically",
description: description,
});```
There is not a retry parameter on the Create Invoices API. I think you can disable it with auto_advance, https://docs.stripe.com/api/invoices/create#create_invoice-auto_advance in these cases. We document what setting this to false/ true means here: https://docs.stripe.com/invoicing/integration/automatic-advancement-collection#toggle-auto-advance. This functionally though does have other side effects that you may not want.
i think this makes sense. so if i do create invoice with auto advance false, and then create invoice items, then finalize, then stripe.invoices.pay, that will work in that flow right? since i am explicitly calling stripe.invoices.pay?
Yes, I recommend that you test in test mode to ensure that it exactly the behavior you want and see any other side effects you might need to consider.
thank you this seems like the right path. and yes will do right now, because i have a few variations of that flow