Preview Metric Results
Executes a metric calculation on the fly without saving it to the database. Useful for testing parameters or ad-hoc analysis.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Request to preview a metric calculation without saving
Metric template name
GROSS_VOLUME, TRANSACTION_COUNT, NEW_USERS Metric parameters. Structure varies by template, but common fields include:
- Date range filters
- Calculation interval
- Breakdown dimensions
- Template-specific filters
Additional properties may be present based on the metric template. Each template may define template-specific parameters.
Response
Metric calculation results
Response from metric calculation endpoints. The structure of data array items
varies based on the breakdowns parameter in the request.
Base structure (no breakdowns):
- Each item has:
periodStart, plus metric-specific fields (e.g.,grossVolume,transactionCount)
With breakdowns:
- Each item includes breakdown dimension fields (e.g.,
transactionType,transactionStatus,userId) - Field names match the breakdown dimension names from the request
Example without breakdowns:
Example with breakdowns: ["transactionType"]: