#wendy-invoices-subscriptions
1 messages · Page 1 of 1 (latest)
single
How many invoices have been issued for the subscription? Can you just check the charges in the Stripe dashboard?
i am coding the algorithm and hence we need to fully refund all invoices paid that have not been refunded
if i have stripe invoiceId, how can i query if it's been refunded?
You would make a retrieve API call to get the Invoice and expand the Charge object (https://stripe.com/docs/api/invoices/object#invoice_object-charge) to see if invoice.charge[refunded] is true
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.