#dai_api

1 messages ยท Page 1 of 1 (latest)

exotic pecanBOT
#

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

wide hazelBOT
naive radish
#

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?

glossy leaf
#

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

naive radish
#

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.

glossy leaf
#

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?
naive radish
#

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.

glossy leaf
#

No worries, as always appreciate you and rest of the team's assistance! I'll be confirming these invoices in the meantime

naive radish
#

Yup, in my test I'm seeing that the open Invoice had auto-advance turned off, but it was not voided.

glossy leaf
#

To clarify this just confirms this specific edge case?

naive radish
#

Yup, when I canceled an incomplete Subscription where the first Invoice hadn't been paid, the first Invoice (which was open) was voided.

glossy leaf
#

Okay! Thanks for checking and will work with the team

naive radish
#

Any time!