---
search:
  tags:
    - Orders
    - GET
seo:
  description: >-
    Retrieves aggregated sales metrics for a specified date… Reference for the
    GET /api/v1/{team_slug}/{app_slug}/orders/metrics endpoint in the Management
    API.
sidebar:
  label: Get sales metrics
  badge: GET
title: Get sales metrics
type: openapi-operation
---
Retrieves aggregated sales metrics for a specified date range. Returns hourly or daily granularity with order counts and sales totals grouped by currency.

`GET /api/v1/{team_slug}/{app_slug}/orders/metrics`

**Responses**

- `200` — Sales metrics with order counts retrieved successfully
- `400` — Invalid date format or missing parameters
- `401` — Unauthorized access
- `500` — Internal server error

Response example, 200:

```json
{
  "data": {
    "daily_metrics": [
      {
        "day": "string",
        "order_count": 0,
        "sales_by_currency": [
          {
            "currency_code": "string",
            "total_compensated_sales": 0,
            "total_sales_amount": 0
          }
        ]
      }
    ],
    "hourly_metrics": [
      {
        "hour": "string",
        "order_count": 0,
        "sales_by_currency": [
          {
            "currency_code": "string",
            "total_compensated_sales": 0,
            "total_sales_amount": 0
          }
        ]
      }
    ],
    "total_order_count": 0,
    "total_sales_by_currency": [
      {
        "currency_code": "string",
        "total_compensated_sales": 0,
        "total_sales_amount": 0
      }
    ]
  },
  "details": [
    "string"
  ],
  "success": true
}
```
