---
title: "Get customer's analytics report"
method: GET
path: "/v1/applications/{applicationId}/customers/{customerId}/analytics"
tags: ["Customer data"]
---

# Get customer's analytics report

`GET /v1/applications/{applicationId}/customers/{customerId}/analytics`

## Request

- Base URL: `https://yourbaseurl.talon.one`
- URL: `https://yourbaseurl.talon.one/v1/applications/{applicationId}/customers/{customerId}/analytics`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/talon/apis/management-api/docs/v1/applications/:applicationId/customers/:customerId/analytics/get.ts> (a function with typed inputs; its response is checked against the schema)

> [!note] Management API endpoints are **not** meant to be used in real-time integrations that directly serve your end users. Rate limit: 3 requests per second.

Fetch analytics for a given customer in the given application.

## Path parameters

- `applicationId` integer, required
- `customerId` integer, required

## Query parameters

- `pageSize` integer
- `skip` integer
- `sort` string

## Response `200`

OK

- CustomerAnalytics: A summary report of customer activity for a given time range.
  - `acceptedCoupons` integer, required: Total accepted coupons for this customer.
  - `createdCoupons` integer, required: Total created coupons for this customer.
  - `freeItems` integer, required: Total free items given to this customer.
  - `totalOrders` integer, required: Total orders made by this customer.
  - `totalDiscountedOrders` integer, required: Total orders made by this customer that had a discount.
  - `totalRevenue` number, required: Total Revenue across all closed sessions.
  - `totalDiscounts` number, required: The sum of discounts that were given across all closed sessions.

---

[API](https://skmtc.dev/talon/apis/management-api.md) - [All operations](https://skmtc.dev/talon/apis/management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talon/apis/management-api/revisions/7ef1b9504c3a?raw)
