Send Usage Event
Send a usage event to Autumn
This endpoint is for sending usage events to Autumn, required for tracking your usage-based features.
If the customer_id
you send doesn’t already exist, Autumn will automatically
create a new customer. You can optionally set the properties of this new customer
through the customer_data
field.
Authorizations
Your secret key must be used as the Bearer token for this endpoint.
Body
ID of the feature to track usage for.
ID which you provided when creating the customer
How much of the event should be counted towards the balance. Default is 1.
For use in place of the feature_id. This should be used if multiple features are tracked in the same event.
Unique identifier for the event. If the same event is sent multiple times, it will be ignored.
Event properties.
Properties to create a new customer. If a customer with the provided customer_id
already exists, this object is ignored. Alternatively, use the /customers endpoint.
Response
Event sent