#dai_api
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/1217099119332692008
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ I believe you're referring to canceling a Subscription, which does not void existing Invoices. Is that different from the behavior you're seeing when you're testing this in testmode?
Hello! This is different behavior in live mode, if you're able to view that invoice ID I provided above. You can see the invoice.voided event was sourced a subscription cancellation API request
Hm, I'm thinking this happened because it was the first Invoice for the Subscription, and was never paid which prevented the Subscription from ever becoming active.
I see - I can evaluate other instances to confirm if this is specific behavior to this scenario.
But to confirm a few things:
- outside of this scenario, subscriptions should never be voiding invoices when deleted (automatically that is)
- if this is a specific edge case, what are the signals from the subscription cancellation we can pick up to avoid attempting to void the invoice and cause the error?
For this Subscription, I think the indicator is that the status would have gone from incomplete to incomplete_expired.
I'm working on standing up a test to confirm that Invoices aren't voided when an active Subscription is canclled, but if the server gets busy that may take me some time to complete.
No worries, as always appreciate you and rest of the team's assistance! I'll be confirming these invoices in the meantime
Yup, in my test I'm seeing that the open Invoice had auto-advance turned off, but it was not voided.
To clarify this just confirms this specific edge case?
Yup, when I canceled an incomplete Subscription where the first Invoice hadn't been paid, the first Invoice (which was open) was voided.
Okay! Thanks for checking and will work with the team
Any time!