Stripe.Services.V2.Billing.MeterEventService (tiger_stripe v0.4.0)

Copy Markdown View Source

Meter Event

A Meter Event is a usage record that captures billable activity for usage-based billing. Meter Events contain an event name, timestamp, and payload with customer mapping and usage value, enabling accurate usage tracking and billing.

Summary

Functions

Create a Meter Event with synchronous validation

Functions

create(client, params \\ %{}, opts \\ [])

@spec create(Stripe.Client.t(), map(), keyword()) ::
  {:ok, Stripe.Resources.V2.Billing.MeterEvent.t()} | {:error, Stripe.Error.t()}

Create a Meter Event with synchronous validation

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.