#ivan-portal-invoices

1 messages · Page 1 of 1 (latest)

sour ermineBOT
#

Hello! We'll be with you shortly. 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.

hoary rune
#

No, I don't have any other discussion related with this.

iron badge
#

ivan-portal-invoices

hoary rune
#

I see, so I could get the customer.subscription.deleted event, check the invoice_id and the void it.

iron badge
#

yep!

#

try it in Test mode to confirm!

hoary rune
#

Sure.
However, is there way to set up that once the susbcription is deleted also delete or void the invoice?

iron badge
#

no

#

but you can do it easily with code

  1. Cancel the Subscription
  2. Immediately void their latest Invoice from latest_invoice: 'in_123' if it's not voided/paid already
hoary rune
#

I see , ok I am going to test it. Thank you.