Adds Meter Event v2 API endpoints
What’s new
Introduces the Meter Event Stream /v2 resource to support high-throughput usage reporting. You can send up to 10k events per second to a meter event stream. Contact sales for higher rate-limits.
First, you must create a Meter Event Session to get a short-lived authentication token. You can then use the session authentication token to report usage to the Meter Event Stream.
Learn more about API v2.
Impact
This meter event stream endpoint supports up to 100,000 events per second for a single business, an increase compared to the current /v1 endpoint.
Changes
| Change | Resources | |
|---|---|---|
| Added | V2. Billing. MeterEvents V2. Billing. MeterEventSession V2. Billing. MeterEventStream + 1 more V2. Billing. MeterEventAdjustments | |
| Endpoints | Change | Resources |
| create | Added | V2. Billing. MeterEvents |
| create | Added | V2. Billing. MeterEventSession |
| create | Added | V2. Billing. MeterEventStream |
| create | Added | V2. Billing. MeterEventAdjustments |
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-09-30. 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.
