With an average latency of just two seconds, webhooks are the best way for your connected applications to get real-time notification of events within ReCharge. In addition to significant performance improvements, ReCharge now offers two new webhook topics to keep systems in sync.
- charge/refunded - When a charge is refunded from within the ReCharge Admin Portal or via API, a charge/refunded webhook will be dispatched to the subscribed URL. The webhook will contain the standard payload of a charge, included a total_refunds parameter to indicate the total refunded amount (in dollars) associated with the charge.
- order/cancelled - when an order is cancelled from within the ReCharge Admin Portal or via API, an order/cancelled webhook will be dispatched to the subscribed URL. The webhook will contain the standard payload of an order webhook, including a status indicator denoting that the order has been cancelled.
Learn more about using ReCharge webhooks, including a comprehensive list of available topics, by checking out the ReCharge API Reference.