> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chataigne.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Order analytics

> Retrieve order volume, failures, daily evolution, and location time distributions.

```text Location theme={null}
GET /v1/locations/{location_id}/analytics/orders
```

```text Business organization theme={null}
GET /v1/organizations/{organization_id}/analytics/orders
```

## Statistics

| Field                                      | Scope    | Meaning                                                                        |
| ------------------------------------------ | -------- | ------------------------------------------------------------------------------ |
| `summary.order_count`                      | Both     | Confirmed or in-progress Chataigne orders during the period.                   |
| `summary.failed_order_count`               | Location | Orders cancelled or rejected during the period.                                |
| `daily[].order_count`                      | Both     | Eligible orders for one local calendar date.                                   |
| `average_by_weekday[].average_order_count` | Location | Average orders for that weekday, including matching weekdays with zero orders. |
| `average_by_hour[].average_order_count`    | Location | Average orders in that local hour across every calendar day in the period.     |

`weekday` uses the stable English identifiers `monday` through `sunday`. `hour` is an integer from `0` to `23` in the location's timezone.

```json Location response theme={null}
{
  "object": "location_order_analytics",
  "location_id": "loc_8sKq2bXt9mZ1",
  "period": {
    "from": "2026-06-01T00:00:00.000Z",
    "to": "2026-06-30T23:59:59.000Z",
    "service_type": "delivery"
  },
  "summary": {
    "order_count": 320,
    "failed_order_count": 6
  },
  "daily": [{ "date": "2026-06-01", "order_count": 12 }],
  "average_by_weekday": [{ "weekday": "monday", "average_order_count": 11.5 }],
  "average_by_hour": [{ "hour": 12, "average_order_count": 1.4 }]
}
```

Use `service_type=delivery` or `service_type=collection` to compare fulfillment modes. For a channel comparison, use [Channel and location breakdowns](/analytics/breakdowns).
