Creates a billing meter event adjustment.
Parameters
- event_
namestringRequired The name of the meter event. Corresponds with the
event_
field on a meter.name - typeenumRequired
Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
Possible enum valuescancel
Cancel a single meter event by identifier.
- cancelobject
Specifies which event to cancel.
- cancel.
identifierstring Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them.
Returns
Returns a billing meter event adjustment.
Response
{ "object": "billing.meter_event_adjustment", "livemode": false, "status": "pending", "event_name": "ai_search_api", "type": "cancel", "cancel": { "identifier": "identifier_123" }}