#bruno - subscription prorate

1 messages ยท Page 1 of 1 (latest)

noble berry
#

Okay so you want to issue a refund rather than a credit note?

gaunt zenith
#

No, that's a subscription invoice.

#

The API is returning this message "You can't delete invoices created by subscriptions"

#

Yes, I want to issue a refund, not a credit to customer's balance.

noble berry
gaunt zenith
#

So, that invoice is in "draft" status. When I try to "mark it uncollectible", I'm getting this error "You can only pass in open invoices. This invoice isn't open".

#

So, I try to get the invoice to "open" status by finalizing it, but then it automatically moves to "paid" status...

noble berry
#

Right and you don't want it open because..that

#

Okay so let's step back a second

gaunt zenith
#

Ok

noble berry
#

You want to cancel the sub and refund the user. You do not want to use the default flow provided by subscriptions.

gaunt zenith
#

Yes, that's right.

noble berry
#

You can preview the invoice that would be generated with those changes, use the prorated amount to generate the refund, then cancel the sub without proration and avoid the credit invoice

gaunt zenith
#

Hmm.. ok

#

That's a good idea actually.

noble berry
gaunt zenith
#

Ah, perfect

#

Thanks a lot!

noble berry
#

Happy to help ๐Ÿ™‚