We recommend syncing refunds processed via Recharge with your external system to avoid conflicting order information.
Your application can listen for the
charge/refunded webhook which alerts a refund occurred. There are two statuses for this hook:
STATUS== "refunded" indicates the order was entirely refunded
STATUS== "partially_refunded" indicates the order was only partially refunded
charge/refunded payload contains an order
id, allowing you to retrieve the order record.
Using the order data you derived from step two, you can update the order record in your external system — adjusting line items or taxes, for example — as necessary
Updated 11 months ago