#ninja-invoice-attemptcount

1 messages · Page 1 of 1 (latest)

cunning jettyBOT
cursive knot
#

attempt_count is about automatic retries

#

ninja-invoice-attemptcount

echo veldt
#

interesting, how can I get the number of failed payment attepmts on an invoice then?

#

this invoice has also not been auto retried, so should that number for attempt count not be 0?

cursive knot
#

You can use the List Charges API and pass invoice: 'in_123'

echo veldt
#

intesting, thanks

#

am i missing the list charges docs that allow you to pass in an invoice time/intent??

cursive knot
echo veldt
#

I assume the exandable charges object on the invoice would only return the most recent, not all charges correct?

cursive knot
#

correct

echo veldt
#

so my hunch here is my best bet is to listen for charge.failed if I want to not have to list and filter charges, I just want to know when an invoice payment fails