#achadee
1 messages · Page 1 of 1 (latest)
sure: pi_3NixUi8gJxUUDLe61MvzqjKT
here is the webhook id
we_1NQsegGBaeX1nia1yZp6iAeY
You should be looking for charge.refunded instead: https://dashboard.stripe.com/test/events/evt_3NixUi8gJxUUDLe61mWE901K
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_...."
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.
ah I see
so ill likely have to make an additional request to stripe when the charge.refunded comes through
For what exactly?
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
You also get the ID when you create the refund: https://stripe.com/docs/api/refunds/create
yup but if someone in the team creates a refund via the stripe dashboard, ill need to query your API
Yes, that's correct.