provider POST /v1/billing/meters
@utdk/stripe /v1/billing/meters
Create a billing meter
<p>Creates a billing meter.</p>

Try it

Authentication
Configure credentials for Stripe API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

postbillingmeters
POST/v1/billing/meters
<p>Creates a billing meter.</p>

Input

Fields that specify how to map a meter event to a customer.

required

The default settings to aggregate a meter's events with.

required

The meter’s name. Not visible to the customer.

required

The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.

The time window which meter events have been pre-aggregated for, if any.

Specifies which fields in the response should be expanded.

Fields that specify how to calculate a meter event's value.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stripe from '@utdk/stripe';

await stripe.postbillingmeters()