#Tassaduq Hussain-refunds
1 messages · Page 1 of 1 (latest)
Hey! What's a 'draft'?
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 cancelled the subscription and stripe created a draft of unused time
now I need to refund that
You mean an invoice with prorated credit?
maybe an invoice but stripe is calling it a draft
Taking a look
Can you share a screenshot of what 'draft' you're referring to?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This is the invoice that was generated upon cancel for the prorated unused time
The credit was applied to the balance for the customer: https://dashboard.stripe.com/customers/cus_KunASyvAHlESlj
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
What is it you want to refund?
ok so draft is a type of invoice, I can use invoice id to refund the amount
got it, one other thing, I also need to send some amount back to customer card without having any pre-generated invoice
No, you can't. You need to ID of the underlying Charge/Payment Intent
But I'm not sure what it is you're actually looking to refund.
one time custom amount
The subscription was cancelled mid billing cycle, we generated a credit invoice for the prorated unused time (which is applied to the customer balance) – is this what you want to refund?
in this case yes, but I need to also send back some amount to other customer which don't have any draft invoice
Ok, got it. You can't refund a customer credit balance, but you can create an 'unlinked' refund (which is what you need in this instance)
Then you can debit the customer credit balance back to 0: https://stripe.com/docs/invoicing/customer/balance#modifying
thanks