#Min.K
1 messages · Page 1 of 1 (latest)
Hello Min.K, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• Min.K, 6 days ago, 7 messages
As I understand it, canceling a subscription immediately via the Stripe Subscription Cancel API will charge the customer's balance, which will then be credited to the
For subscription cancellation, the prorated unused amount will be credit to customer's balance.
I was wondering how to officially refund a Stripe Subscription?
After the subscription is cancelled, the refunding steps will be:
- Look at the credit in the customer balance
- Use the List Invoices API and pass the subscription id in the subscription parameter to only view Invoices for that subscription. Also expand the associated charge if any. For each invoice:
- Check if there’s an associated charge
- If so, create a refund for up to the amount of the account balance: https://stripe.com/docs/api/refunds/create
- If the charge amount is smaller than the credit, refund fully and subtract the charge amount from the credit
- Move to the next invoice in the list until the full credit has been refunded
- Update the customer’s balance back to 0 via the API and/or delete the pending invoice items.
I think there should be a separate Stripe Subscription Refund API.
Thanks for sharing the feedback. Can I suggest you writing to our Support https://support.stripe.com/contact, so that they can share with relevant team?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can I check PaymentIntent instead of Charge?
Yes, that will work too
Thank you river.
I think the Balance will be charged when I call the Subscription Cancel API.
At this time, I think I just need to change the balance to 0, but I don't understand why I have to delete pending invoice items separately and perform the complicated actions described in number 2.
Is there any code or other reference material for simple usage of these?
It is too complicated to connect through the API, so I would appreciate it if you could tell me how to use it in the console.
At this time, I think I just need to change the balance to 0, but I don't understand why I have to delete pending invoice items separately and perform the complicated actions described in number 2.
Where did you see that deleting pending invoice items are required to perform refund in Step 2. It shouldn't be required
Is there any code or other reference material for simple usage of these?
I'm afraid this is the only way via API
Where did you see that deleting pending invoice items are required to perform refund in Step 2. It shouldn't be required
=> I checked your comment
=> #1168383696999555142 message
That's step 3 if there is any pending invoice items after refunding and you don't need it on the subscription anymore
It's not a pre-requisite of refunding
Then I would like to ask you a question again.
If you perform the Subscription Cancel API, the balance will be filled, so why do you need to call the List Invoice API and then call the Refund API?
Can’t we just update the Customer’s Balance to 0?
I guess updating the customer's balance to 0 will automatically result in a refund?
Updating the customer balance doesn't perform any refund. It's just an number update.
Step 2 mentioned above should be used for the refund
However, since the customer can use the balance next time, I think step 3 of setting the customer balance to 0 is essential.
If this happens, problems will definitely arise because the transactions are divided.
If payment or other actions are made in the process of performing actions 1, 2, and 3, the balance may change and unexpected results may occur.
It seems that actions 1 to 3 should be guaranteed through one transaction through a single request called the Subscription Refund API.
Thanks for sharing the feedback and it has been passed on to the product team. I'm afraid single request to cancel and refund a Subscription via API is supported as of now.
Updating the customer balance to 0 in step 3 is required, but deleting pending items is optional.