Meter events
The billing.meter_event object
One usage event recorded for a customer against a meter, the same as Stripe's billing meter event. You send events with POST /meter_events, and GET /meters/{id}/events lists them.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
event_namestringRequiredName of the event; it matches the meter's
event_name.identifierstringRequiredYour unique identifier for the event, used to refuse duplicates and to cancel the event with a meter event adjustment. Empty when you sent none.
payloadobjectRequiredThe key-value pairs sent with the event, all as strings, as you sent them: the customer's ID under the meter's
customer_mapping.event_payload_keyand the value under itsvalue_settings.event_payload_key.timestamptimestampRequiredTime the usage happened.
customer_idstringRequiredID of the customer the usage belongs to.
meter_idstringRequiredID of the meter that records the event.