#achadee

1 messages · Page 1 of 1 (latest)

covert joltBOT
mint urchin
#

Hi! Let me help you with this.

#

Could you please share the PaymentIntent ID pi_xxx?

north cargo
#

sure: pi_3NixUi8gJxUUDLe61MvzqjKT

#

here is the webhook id

we_1NQsegGBaeX1nia1yZp6iAeY

mint urchin
north cargo
#

I can see that one, but I need refunded.created

#

for a few reasons, first, if the charge has multiple refunds, i can track them individually rather than using the refundAmount, which is the sum, secondly, it keeps it consistent in the database when creating refunds, because I can link the refundId "re_...."

mint urchin
#

refund.created is generated only when a refund from a customer’s cash balance is created.

#

If you are not using that functionality you won't receive this event.

#

It's not for normal refunds.

north cargo
#

ah I see

#

so ill likely have to make an additional request to stripe when the charge.refunded comes through

mint urchin
#

For what exactly?

north cargo
#

because the charge.refunded doesnt break down the inidividual refunds, or return the ids, ill likely need to list the refunds via GET /refunds and create any new ones that dont exist

mint urchin
north cargo
#

yup but if someone in the team creates a refund via the stripe dashboard, ill need to query your API

mint urchin
#

Yes, that's correct.