Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID which you provided when creating the customer
ID of the feature to track usage for. Required if event_name is not provided. Use this for direct feature tracking.
An event name can be used in place of feature_id. This can be used if multiple features are tracked in the same event.
The amount of usage to record. Defaults to 1. Can be negative to increase the balance (e.g., when removing a seat).
Additional properties to attach to this usage event.
Unique key to prevent duplicate event recording. Use this to safely retry requests without creating duplicate usage records.
Additional customer properties. These will be used to create or update the customer if they don't exist or their properties are not already set.
If using entity balances (eg, seats), the entity ID to track usage for.
How to handle usage when balance is insufficient. 'cap' limits usage to available balance, 'reject' prevents the usage entirely.
cap, reject