Stripe API client for creating meter events.
// Source: https://github.com/stripe/stripe-node | License: MIT | Copyright 2011 Ask Bjørn Hansen
// Provided via justclaw.it.com; keep this notice with the code.
// File generated from our OpenAPI spec
import {StripeResource} from '../../../StripeResource.js';
import {RequestOptions, Response} from '../../../lib.js';
export class MeterEventResource extends StripeResource {
/**
* Creates a meter event. Events are validated synchronously, but are processed asynchronously. Supports up to 1,000 events per second in livemode. For higher rate-limits, please use meter event streams instead.
*/
create(
params: V2.Billing.MeterEventCreateParams,
options?: RequestOptions
): Promise<Response<MeterEvent>> {
return this._makeRequest(
'POST',
'/v2/billing/meter_eve
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key