Commerce Layer Metrics API
Analytics surface over Commerce Layer's ecommerce history. Five query types (breakdown, date_breakdown, stats, search, export) across four domains (orders, carts, returns, usage) plus frequently-bought-together (FBT) analysis helpers. Useful for KPI dashboards, cohort and funnel reporting, catalog merchandising signals, and feeding downstream warehouses. Commerce Layer also publishes a local MCP server that exposes the Metrics API to AI agents.
Documentation
Documentation
https://docs.commercelayer.io/metrics/welcome
Documentation
https://docs.commercelayer.io/metrics/getting-started/api-specification
Specifications
OpenAPI
https://data.commercelayer.app/schemas/metrics/openapi.json
OpenAPI
https://raw.githubusercontent.com/api-evangelist/commerce-layer/refs/heads/main/openapi/commerce-layer-metrics-api-openapi.json