Setup
For every billable metric you define, you need to put a track event API or SDK call in your backend with the associated. Events are defined as the following:event_name should correspond to what the event is and match what you
define in your metrics.
The time_created is an RFC3339 format date in UTC.
The idempotency_id is a unique identifier for the specific event being passed
in. Passing in a unique id allows Lotus to make sure no double counting occurs.
The properties object is how you can extend your event information. In your
metrics, you can define properties to filter or aggregate over.
Therefore, you should include as many important characteristics in your
properties as possible.
The customer_id is the id you defined in your backend for the corresponding
customer and the same id that you passed into Lotus when creating the customer.