Create a Meter Feature
A meter defines what usage you want to track. Create your first meter feature through Dashboard or use the API.
- Dashboard
- API
- Go to Dashboard > Features
- Select Meter feature
- Define the Meter, Type, Unit and Aggregation
- Add Filters (Optional)
Note the
meter_name from the feature info page, you’ll need it to send usage events.Create a Plan
Plans define what customers pay and entitlements. Create a usage-based plan that charges per API call:
- Dashboard
- API
- Go to Dashboard > Plans
- Create Plan and define the Charges and Features
- Charges have 2 options Recurring (Fixed charges) and Usage based charges
- Set the charge in different duration with various currency
- Features are where you define the plan** entitlements**
Create a Customer
Here you manage you customer and see their usage and current subscription.
- Dashboard
- API
- Go to Dashboard > Customers
- Create customer with basic information
- Use our SDK for realtime customer sync
Subscribe the Customer
In the subscriptions you can assign the plan to selected customer.
- Dashboard
- API
- Go to Dashboard > Subscriptions
- Select the Customer and Plan
- Set the Subscription Duration and Trial period (Optional)
Generate an API Key
- Go to Dashboard > API Keys
- Create a key with scope (write, read or both)
- Copy the API keys - it is shown only once and store it in secured place
Send Usage Events
Send usage events from your backend using the API or SDK.Verify Event on Dashboard > Usage log