The AggregateMetric object
Rutter performs various computations over your commerce data. The results of these computations are called aggregate metrics.
You can find the metrics we support, their corresponding metric name, and the formula used to compute them here.
Properties
start_date
stringThe starting date from which we start aggregating activity (revenue, expenses, etc).
end_date
stringThe date at which we stop aggregating activity (revenue, expenses, etc).
currency
stringIf applicable, the currency used for the value returned.
value
stringThe value of the requested metric for the time range described by the start and end date.
{
"start_date": "2022-05-01T00:00:00.000Z",
"end_date": "2022-05-31T23:59:59.999Z",
"currency": "USD",
"value": "-1149613.2900"
}
Fetch a Metric
GET /metrics/commerce/:metricNameThe object returned will use a key matching the value of the parameter "Metric Name". It will also have a connection and checkpoint key. All other keys will be undefined.
For example, if you send a request to '/metrics/commerce/total_revenue', you will receive an object with values for the keys "total_revenue", "connection", and "checkpoint", nothing else.
Request Parameters
access_token
stringqueryThe access token of the connection.
force_fetch
enumoptionalqueryForce a response even if the underlying connection hasn't finished the initial sync.
Response Body
checkpoint
stringThe ISO 8601 timestamp for the date at which the metric was last updated.
connection
objectconnection
attributesactive_customers
arrayoptionalThe metric value and important metadata that defines the method of calculation.
active_customers
attributesamortization_expense
arrayoptionalThe metric value and important metadata that defines the method of calculation.
amortization_expense
attributescapital_expenditure
arrayoptionalThe metric value and important metadata that defines the method of calculation.
capital_expenditure
attributeschange_in_working_capital
arrayoptionalThe metric value and important metadata that defines the method of calculation.
change_in_working_capital
attributescost_of_goods_sold
arrayoptionalThe metric value and important metadata that defines the method of calculation.
cost_of_goods_sold
attributescurrent_assets
arrayoptionalThe metric value and important metadata that defines the method of calculation.
current_assets
attributescurrent_liabilities
arrayoptionalThe metric value and important metadata that defines the method of calculation.
current_liabilities
attributescurrent_ratio
arrayoptionalThe metric value and important metadata that defines the method of calculation.
current_ratio
attributesdebt_service
arrayoptionalThe metric value and important metadata that defines the method of calculation.
debt_service
attributesdebt_service_coverage_ratio
arrayoptionalThe metric value and important metadata that defines the method of calculation.
debt_service_coverage_ratio
attributesdebt_service_from_income_statement
arrayoptionalThe metric value and important metadata that defines the method of calculation.
debt_service_from_income_statement
attributesdebt_service_from_principal_paid
arrayoptionalThe metric value and important metadata that defines the method of calculation.
debt_service_from_principal_paid
attributesdepreciation_expense
arrayoptionalThe metric value and important metadata that defines the method of calculation.
depreciation_expense
attributesebitda
arrayoptionalThe metric value and important metadata that defines the method of calculation.
ebitda
attributesebitda_margin
arrayoptionalThe metric value and important metadata that defines the method of calculation.
ebitda_margin
attributesenterprise_free_cash_flow
arrayoptionalThe metric value and important metadata that defines the method of calculation.
enterprise_free_cash_flow
attributesenterprise_free_cash_flow_formula_two
arrayoptionalThe metric value and important metadata that defines the method of calculation.
enterprise_free_cash_flow_formula_two
attributesgross_profit_margin
arrayoptionalThe metric value and important metadata that defines the method of calculation.
gross_profit_margin
attributesinterest_expense
arrayoptionalThe metric value and important metadata that defines the method of calculation.
interest_expense
attributesinventory
arrayoptionalThe metric value and important metadata that defines the method of calculation.
inventory
attributesnet_income
arrayoptionalThe metric value and important metadata that defines the method of calculation.
net_income
attributesnet_operating_income
arrayoptionalThe metric value and important metadata that defines the method of calculation.
net_operating_income
attributesprepaid_expenses
arrayoptionalThe metric value and important metadata that defines the method of calculation.
prepaid_expenses
attributesprincipal_paid
arrayoptionalThe metric value and important metadata that defines the method of calculation.
principal_paid
attributesquick_ratio
arrayoptionalThe metric value and important metadata that defines the method of calculation.
quick_ratio
attributesrefund_rate
arrayoptionalThe metric value and important metadata that defines the method of calculation.
refund_rate
attributesrental_expense
arrayoptionalThe metric value and important metadata that defines the method of calculation.
rental_expense
attributestotal_expenses
arrayoptionalThe metric value and important metadata that defines the method of calculation.
total_expenses
attributestotal_income
arrayoptionalThe metric value and important metadata that defines the method of calculation.
total_income
attributestotal_orders
arrayoptionalThe metric value and important metadata that defines the method of calculation.
total_orders
attributestotal_revenue
arrayoptionalThe metric value and important metadata that defines the method of calculation.
total_revenue
attributesunearned_revenues
arrayoptionalThe metric value and important metadata that defines the method of calculation.
unearned_revenues
attributesworking_capital
arrayoptionalThe metric value and important metadata that defines the method of calculation.
working_capital
attributes