# Adds support for filtering by event type to Events v2

## What’s new

[Events v2](https://docs.stripe.com/api/v2/core/events.md?api-version=2025-10-29.clover) now supports filtering events by type using the [types](https://docs.stripe.com/api/v2/core/events/list.md?api-version=2025-10-29.clover#v2_list_events-types) parameter. The [object_id](https://docs.stripe.com/api/v2/core/events/list.md?api-version=2025-10-29.clover#v2_list_events-object_id) parameter is now optional.

## Impact

You can now filter events by specific event types using the `types` parameter and by time ranges using [created.gt](https://docs.stripe.com/api/v2/core/events/list.md?api-version=2025-10-29.clover#v2_list_events-created-gt), [created.gte](https://docs.stripe.com/api/v2/core/events/list.md?api-version=2025-10-29.clover#v2_list_events-created-gte), [created.lt](https://docs.stripe.com/api/v2/core/events/list.md?api-version=2025-10-29.clover#v2_list_events-created-lt), and [created.lte](https://docs.stripe.com/api/v2/core/events/list.md?api-version=2025-10-29.clover#v2_list_events-created-lte) parameters. The `object_id` parameter is now optional, allowing you to list events without specifying a particular object.

## Changes

#### REST API

| Parameters         | Change | Resources or endpoints |
| ------------------ | ------ | ---------------------- |
| `created`, `types` | Added  | `V2.Event#list`        |

| Field                     | Change  | From → to             |
| ------------------------- | ------- | --------------------- |
| `V2.Event#list.object_id` | Changed | `required → optional` |

#### Ruby

| Parameters         | Change | Resources or methods    |
| ------------------ | ------ | ----------------------- |
| `created`, `types` | Added  | `V2::Event::ListParams` |

| Field                             | Change  | From → to             |
| --------------------------------- | ------- | --------------------- |
| `V2::Event::ListParams.object_id` | Changed | `required → optional` |

#### Python

| Parameters         | Change | Resources or methods  |
| ------------------ | ------ | --------------------- |
| `created`, `types` | Added  | `v2.Event.ListParams` |

| Field                           | Change  | From → to             |
| ------------------------------- | ------- | --------------------- |
| `v2.Event.ListParams.object_id` | Changed | `required → optional` |

#### PHP

| Parameters         | Change | Resources or methods     |
| ------------------ | ------ | ------------------------ |
| `created`, `types` | Added  | `V2\Event.all().$params` |

| Field                              | Change  | From → to             |
| ---------------------------------- | ------- | --------------------- |
| `V2\Event.all().$params.object_id` | Changed | `required → optional` |

#### Java

| Parameters         | Change | Resources or methods |
| ------------------ | ------ | -------------------- |
| `created`, `types` | Added  | `v2.EventListParams` |

| Field                         | Change  | From → to             |
| ----------------------------- | ------- | --------------------- |
| `v2.EventListParams.objectId` | Changed | `required → optional` |

#### Node.js

| Parameters         | Change | Resources or methods |
| ------------------ | ------ | -------------------- |
| `created`, `types` | Added  | `V2.EventListParams` |

| Field                          | Change  | From → to             |
| ------------------------------ | ------- | --------------------- |
| `V2.EventListParams.object_id` | Changed | `required → optional` |

#### Go

| Parameters         | Change | Resources or methods |
| ------------------ | ------ | -------------------- |
| `Created`, `Types` | Added  | `V2EventListParams`  |

#### .NET

| Parameters         | Change | Resources or methods  |
| ------------------ | ------ | --------------------- |
| `Created`, `Types` | Added  | `V2.EventListOptions` |

## Upgrade

#### REST API

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. 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](https://docs.stripe.com/api/versioning.md) to include `Stripe-Version: 2025-10-29.clover`
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Ruby

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your Ruby SDK to [v17.1.0](https://github.com/stripe/stripe-ruby/releases/tag/v17.1.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Python

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your Python SDK to [v13.1.0](https://github.com/stripe/stripe-python/releases/tag/v13.1.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### PHP

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your PHP SDK to [v18.1.0](https://github.com/stripe/stripe-php/releases/tag/v18.1.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Java

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your Java SDK to [v30.1.0](https://github.com/stripe/stripe-java/releases/tag/v30.1.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Node.js

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your Node SDK to [v19.2.0](https://github.com/stripe/stripe-node/releases/tag/v19.2.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Go

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your Go SDK to [v83.1.0](https://github.com/stripe/stripe-go/releases/tag/v83.1.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### .NET

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your .NET SDK to [v49.1.0](https://github.com/stripe/stripe-dotnet/releases/tag/v49.1.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).
