> ## 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.

# Discount analytics

> Retrieve discount redemptions and granted amounts with a named breakdown.

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

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

## Statistics

| Field                          | Meaning                                                                                                    |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------- |
| `summary.redemption_count`     | Number of discount applications. If one order uses multiple discounts, each application counts separately. |
| `summary.amount`               | Total value granted through discounts.                                                                     |
| `discounts[].name`             | Discount name stored on the orders.                                                                        |
| `discounts[].redemption_count` | Applications of this named discount.                                                                       |
| `discounts[].amount`           | Value granted through this named discount.                                                                 |

A location response includes `currency`. An organization response groups the summary and named breakdown in `by_currency`; the same discount name may therefore appear in more than one currency bucket.

```json Organization response excerpt theme={null}
{
  "by_currency": [
    {
      "currency": "EUR",
      "summary": {
        "redemption_count": 180,
        "amount": 620.5
      },
      "discounts": [
        {
          "name": "WELCOME10",
          "redemption_count": 72,
          "amount": 260
        }
      ]
    }
  ]
}
```

Names are historical order snapshots rather than current discount identifiers. Treat two entries with the same exact name and currency as the same reporting label.
