#rogerc-balance
1 messages · Page 1 of 1 (latest)
Hi, have you tried the Balance Transaction List API? https://stripe.com/docs/api/balance_transactions/list Filter by refund and check the result object's source
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Customer Balance Transaction
a cutom has balance
i want refund this balance
but this last invoice paid amount is zero
i can't use REFUND API with invoice to refund it
Oh, this is the customer's owning balance. Do you mean you want to decrease it?
This balance is generated by the customer changing the subscription
Now the customer wants a refund, and I need to refund it
hello?
create refund need charge or payment_intent
but i can‘t get charge number or payment_intent with subscription
Ah I know this. Refund always requires a Charge or a Payment Intent objects. This is not automatically done by Stripe, but we can help you do it manually
So here is how Customer Balance works. You can increase or decrease it as you want. Eventually you want to decease this $329.18 to $0, but refund your customer somewhere else $329.18
i see this in dashboard
That "somewhere else" is: from the Subscription, list all its Invoices, expanding the associate charges in each Invoice
i want do this with api
Then you try to refund each of them until you reach the amount of $329.18
Yes, the challenging part is, you need to find Invoices, then Charges associated to Invoices, then refund each of them until you reach $329.18
👋 Taking over from Orakaro, catching up now
Do you mean how $329.18 is calculated after subscription cancellation?
yes