Create a new billable metric for a merchant organization. A Billable Metric represents a metric that can be used to measure the usage of a Product. It contains information about the metric, such as its name, description, and units.
API key authentication
Aggregation calculation method for metric values. Sample values: 'SUM' totals all consumption values within the billing period
SUM Explanatory text describing what the metric tracks and how it's used for billing. Sample values: 'Total tokens consumed by Claude language model interactions', 'Gigabytes of cloud storage utilized', 'Count of machine learning inference requests processed', 'Quantity of AI-generated images created', 'Compute hours spent training neural networks', 'Terabytes of data transferred'
The unique identifier of the merchant organization associated with the billable metric.
Human-readable label identifying what this metric measures. Sample values: 'Claude Tokens', 'Storage Capacity', 'Model Inference Calls', 'Generated Images', 'Training Compute Hours', 'Data Transfer Volume'
The unique identifier of the product associated with the billable metric.
Measurement unit used when aggregating this metric's values. Common examples: 'tokens', 'GB', 'calls', 'images', 'hours', 'TB', 'queries', 'requests'
Billable metric created successfully
Unique identifier for a billable metric
billableMetric SUM, MAX, COUNT, COUNT_UNIQUE Unique identifier for an organization
Unique identifier for a product