#thule_41493
1 messages ยท Page 1 of 1 (latest)
Unfortunately not. They can only be applied indicriminantly to future invoices
๐ซ
Do you know if is there any way to charge the customer the amount that less than the invoice.total, without using the customer balance or discount?
charge the customer the amount that less than the invoice.total
Do you mean charge an amount less than the invoice total? If so, you can create a negative Invoice Item and add it to the invoice to decrease the total: https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But with this case, we cant do line item refund later on this invoice ๐ฆ
I don't understand. Can you elaborate on what you're actually trying to do? What's the point of the refund?
I am hitting deadend in the scenario where the customer changes their tax exemption status before upgrade. Stripe update subscription API calculate refund amount wrongly when invoicing upgrade. To fix this, I need to create an invoice manually, calculate the refund amount, and only want to charge the customer only the difference amount. But I found out that after that, if I do refund, the some amount will go back to the customer balance instead of the customer's card
When doing the refund on the invoice which has negative amount line item, Stripe does not allow to do invoice_line_item refund, it has to be custom_line_item refund
Why do you need to do the refund if you're calculating the exact amount that they need to be charged?
No, I mean when new action coming after invoicing.
Let me explain more in details
I have a taxable customer buy a sub with package A, he then wants to upgrade to package B and provide valid VAT when upgrading. So, I want to:
- Create an invoice with package B, e.g, total $300
- Calculate the prorated unused time of package A, e.g $ 100
- And I want to charge the customer the different, $200
After the customer is upgraded, he may come back and want to get refund for 1 seat in package B, in this case, with negative line item invoice, I cant create invoice_line_item credit note for refunding 1 seat for the customer
Do you want to create a credit note for the refund for 1 seat? Or do you want to just reduce the price of the next invoice? Why not just do a partial refund to their payment method on file instead?
I want to create a credit note for refunding 1 seat
I want money sent to the customer's card
Wait, do you mean I can create a Refund with any amount I want, without depending on any invoice?
Okay, those are 2 different things. A credit note will not send money to the customer's card. In order to do that you need to create a partial refund by getting the Payment Intent ID from the Invoice and creating a refund for the amount you want to send to the customer's card
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I currently create credit note with refund_amount, so Stripe auto create Refund object after the credit note is created
Even with creating a refund, from the above scenario for the upgrade invoice with balance applied, can I create a refund with $300, and Stripe sends $300 to the customer's card? Just do a quick reading, I dont see that it is doable
yup, that's doable as long as the amount of the original charge was $300 or more
So, for my case, it is not, since after applying balance, the charge is only $200.
And Stripe does not refund money for the credit balance
Yeah, you can only refund up to the original charge amount
So Stripe only allow to refund for any invoice is charged by Stripe, right? Let say, for a customer that pays the invoice using check, can I use Stripe to refund/send money to his new added card?