#Ashrith-invoices
1 messages · Page 1 of 1 (latest)
how much an invoice has collected
how do you define that? as in how many actual charges it's processed?
I'm not sure there's a good way beyond grabbing invoice.payment_intent, then getting all the successful charges involved(https://stripe.com/docs/api/charges/list#list_charges-payment_intent), and summing their amounts, that should work I believe
Using a field already existing on the invoice, how do we determine how much did we collect from a customer on an invoice?
Do we have any fields like amount_paid, amount_remaining etc.., which i can use to say the amou t collected on an invoice, instead of listening to another entity other than invoice.
hmm ,no
if there was I would have told you it.
that's why I suggested the other way.
Ok, When I moved an invoice to paid status manually. Will that also create a payment_intent?
a PaymentIntent is created when an invoice with an amount due > our minimum charge amount is finalized