Adds created, updated, and failed events for all refund types
What’s new
The following events now apply to all types of refunds, including those without a corresponding charge.
- refund.created
- refund.updated
- refund.failed
Previously, these events were only sent for refunds without a corresponding charge.
Impact
Previously, you couldn’t find refund details in the charge.refunded event, which was sent after you created a refund. You can now listen to the refund.created event to get details about the refund, and don’t need to make an extra API call to get the refund ID.
This change also improves the consistency of event types created for all refunds. You don’t need to listen to separate refund-related events (for example, charge.refunded) depending on whether the refund has a charge or not.
Changes
| Values | Change | Enums |
|---|---|---|
| refund. created refund. updated refund. failed | Added | Event. type WebhookEndpoint#create. enabled_events[] WebhookEndpoint#update. enabled_events[] |
Upgrade
- View your current API version in Workbench.
- If you use an SDK, upgrade to the corresponding SDK version for this API version.
- If you don’t use an SDK, update your API requests to include Stripe-Version: 2024-10-28. acacia
- Upgrade the API version used for webhook endpoints .
- Test your integration against the new version.
- If you use Connect, test your Connect integration .
- In Workbench, perform the upgrade . You can roll back the version for 72 hours.
Learn more about Stripe API upgrades.
