Create usage event
lago_create_eventRecords a usage/metering event in Lago. This WILL be counted toward the customer's usage and affects billing. Idempotent via transaction_id. Lago API: POST /events with body { "event": { ... } }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The billable metric code this event targets (required). | |
| timestamp | No | Unix timestamp in seconds (or ISO); defaults to event reception time. | |
| properties | No | Additional event properties used to compute the fee (required for sum/max/unique aggregations). | |
| transaction_id | Yes | Unique identifier for the event — the idempotency key (required). | |
| external_subscription_id | Yes | The subscription external id to link the event to (required). | |
| precise_total_amount_cents | No | Precise total amount in cents, used by the dynamic pricing model. |