Hi,
I'm still a bit confused with the refund/cancel subscription flow in killbill. I've tried different ways but never really got it working they way I expect so there is probably something I don't fully understand :-).
Now I have an account where I've canceled a subscription and an invoice with negative amount has been generated. Now I would like to trigger a refund through stripe for that invoice. Actually I would have expected the credit of the user's card to happen automatically and that credit transaction to be connected to the negative invoice?
Now the invoice looks like this:
Adjustment (subscription change) 2015-08-20 2016-08-16 $-100 (USD) Adjust Delete
Adjustment (account credit) 2015-08-20 2015-08-20 $100 (USD)
And the customer now has a positive balance of USD 100. How do I make a refund of USD 100 using the customer’s payment method and ideally also connecting that refund to the invoice above? Is that possible through kaui or API?
Let me try to explain:* Cancellation and credits are related to each other: In the IN_ADVANCE billing mode, the customer is invoiced for the upcoming period and so cancellation of a subscription prior we reached the end of the period will generate a pro-ration credit for the part that was not used (if you want to avoid the pro-ration, you can cancel using the EOT policy).* Now refund, is a different thing: Refunds are not directly related to subscriptions, they are tied to an existing payment (the payment itself could be associated with an invoice where we invoiced a subscription)If you want your customer to be refunded (instead of credited), you should be able to refund the payment. As a result, the invoice balance would become positive again and the credit that was previously generated would be consumed. Could you give it a try and tell me if that works?
Now I have an account where I've canceled a subscription and an invoice with negative amount has been generated. Now I would like to trigger a refund through stripe for that invoice. Actually I would have expected the credit of the user's card to happen automatically and that credit transaction to be connected to the negative invoice?
Now the invoice looks like this:
Adjustment (subscription change) 2015-08-20 2016-08-16 $-100 (USD) Adjust Delete
Adjustment (account credit) 2015-08-20 2015-08-20 $100 (USD)
And the customer now has a positive balance of USD 100. How do I make a refund of USD 100 using the customer’s payment method and ideally also connecting that refund to the invoice above? Is that possible through kaui or API?Both API and KAUI allow you to create a refund (you will have a do a simple refund with no invoice item adjustments to make sure you consume the credit that was previously generated.In the future i would suggest to start doing the refund first and then cancel the subscription (but the reverse operations, which you did should lead to the same result).
Hi again,Quick update:I found the refund button in KAUI in the billing timeline next to a payment, which I tried.
I selected "No invoice adjustment" but still the invoice got adjusted with the amount I refunded. So the balance of the invoice is now 0 resulting in that the customer still has the same balance on his account since I had canceled the subscription.
What does the different options mean:"No invoice adjustment"
"Invoice adjustment"
"Invoice item adjustment"
Is it possible to do a refund without modifying the invoice as you indicated in your response?
Thanks!Kind regardsHenric
Quick update:I found the refund button in KAUI in the billing timeline next to a payment, which I tried.Great (by the way, we are redesigning our UI, so hopefully in the next version, this will be easier to find the refund button).
I selected "No invoice adjustment" but still the invoice got adjusted with the amount I refunded. So the balance of the invoice is now 0 resulting in that the customer still has the same balance on his account since I had canceled the subscription.You did the right thing, 'No Invoice Adjustment' as its name indicates should NOT adjust the invoice (only refund the payment). As a result the balance should either become positive (or if your customer has some credit, the credit should be consumed).
Quick update:I found the refund button in KAUI in the billing timeline next to a payment, which I tried.Great (by the way, we are redesigning our UI, so hopefully in the next version, this will be easier to find the refund button).Sounds good!I selected "No invoice adjustment" but still the invoice got adjusted with the amount I refunded. So the balance of the invoice is now 0 resulting in that the customer still has the same balance on his account since I had canceled the subscription.You did the right thing, 'No Invoice Adjustment' as its name indicates should NOT adjust the invoice (only refund the payment). As a result the balance should either become positive (or if your customer has some credit, the credit should be consumed).There was a REFUND_ADJ invoice item added to the invoice and the account balance of the customer wasn't touched according to the "balance" info in KAUI. Is this expected would you say given that I choose "No invoice adjustment"?
Not sure if this is what you mean by customer balance though - as I understand it there are no balance field on the account, but you rather sum the invoice items to get the account balance?