#Muhammad Awais

1 messages · Page 1 of 1 (latest)

sharp hatchBOT
versed gyro
ancient snow
#

This is the log of a subscription.
The subscription was canceled still invoice was paid.
should this not change the subscription status?

versed gyro
#

No those things are separate -- the invoice payment failed, but the invoice was still open and payable. The subscription was cancelled.

#

If you used "cancel at period end" this could be resumed by unsetting that

#

But if cancelled immediately, thats irreversible

#

The open invoice can still be paid -- depending on the nature of your business that might be something you wish to refund, or not.

#

eg, if you shipped a subscription box of goods already, you probably do not want to refund

#

If you offer a digital service you might want to

ancient snow
#

I think the subscription was automatically canceled because the invoice payment failed.

versed gyro
#

Thats possible - do you have your settings configured to do that?

ancient snow
#

Where I can check that?

versed gyro
#

yea, manage failed payments

#

Ok that makes sense, and seems to be what happened here

ancient snow
#

what should I do so that if the subscription is canceled then its invoice should not be payable?

versed gyro
#

You can void the invoice, if you want to block it from being paid

ancient snow
#

How?

versed gyro
ancient snow
#

Can we do it from settings or via API call?

versed gyro
#

You would need to make an API call for that

ancient snow
#

on subscription cancel webhook event I will find the invoice id?

versed gyro
#

then you can receive those, and set your endpoint to void the invoice

versed gyro
ancient snow
#

anytime there will be only one invoice against one subscription right?

versed gyro
#

What do you mean? Subscriptions get a new invoice every cycle, so they can have many. But only one is mapped as the latest_invoice

ancient snow
#

ok