Skip to Content
Paycose Docs
Meter events

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

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • livemodebooleanRequired

    true when the object exists in live mode, false in test mode.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • event_namestringRequired

    Name of the event; it matches the meter's event_name.

  • identifierstringRequired

    Your unique identifier for the event, used to refuse duplicates and to cancel the event with a meter event adjustment. Empty when you sent none.

  • payloadobjectRequired

    The 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_key and the value under its value_settings.event_payload_key.

  • timestamptimestampRequired

    Time the usage happened.

  • customer_idstringRequired

    ID of the customer the usage belongs to.

  • meter_idstringRequired

    ID of the meter that records the event.