Track usage
track_usageMUTATES Autumn billing data — records a usage event (deducts/credits a feature balance). Provide EITHER feature_id OR event_name. Autumn API: POST /v1/balances.track.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Amount of usage to record. Defaults to 1. Negative values credit the balance. | |
| entity_id | No | Entity id for entity-scoped balances. | |
| timestamp | No | Unix timestamp (ms) for the event. Defaults to now. | |
| event_name | No | Event name to track usage for. Provide this OR feature_id. | |
| feature_id | No | The feature to track usage for. Provide this OR event_name. | |
| properties | No | Additional properties to attach to the usage event. | |
| customer_id | Yes | The ID of the customer. | |
| idempotencyKey | No | Optional key to dedupe retried events. |